Simple Question (Direct)
Simple Question
Q5947475
P106
Q12737077
USER
Which occupation is the profession of Juan Antonio Viedma ?
(Q5947475,P106,c(Q12737077))
action filter_type
action find
entity Q5947475
relation P106
type Q12737077
['Q5947475', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q5947475 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
Juan Antonio Viedma
action filter_type
action find
entity Juan Antonio Viedma
relation occupation
type occupation
['Juan Antonio Viedma', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Juan_Antonio_Viedma property:occupation ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q36180
SYSTEM
writer
Q36180
(Q5947475,P106,c(Q12737077))
action filter_type
action find
entity Q5947475
relation P106
type Q12737077
[ANSWER] is the profession of Juan Antonio Viedma
['Q5947475', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q5947475 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
writer
Writer is the profession of Juan Antonio Viedma
writer
action filter_type
action find
entity Juan Antonio Viedma
relation occupation
type occupation
['Juan Antonio Viedma', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Juan_Antonio_Viedma property:occupation ?c . ?c rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5947475
P20
Q56061
USER
Where did that person die ?
(Q36180,P20,c(Q56061))
action filter_type
action find
entity Q5947475
relation P20
type Q56061
['Q36180', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q5947475 property:P20 ?b . ?b rdf:type ontology:Q56061 }
Juan Antonio Viedma
action filter_type
action find
entity Juan Antonio Viedma
relation place of death
type administrative territorial entity
['writer', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Juan_Antonio_Viedma property:place_of_death ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1563
SYSTEM
Havana
Q1563
(Q36180,P20,c(Q56061))
action filter_type
action find
entity Q5947475
relation P20
type Q56061
That person died in [ANSWER]
['Q36180', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?b WHERE { resource:Q5947475 property:P20 ?b . ?b rdf:type ontology:Q56061 }
Havana
That person died in Havana
Havana
action filter_type
action find
entity Juan Antonio Viedma
relation place of death
type administrative territorial entity
['writer', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { resource:Juan_Antonio_Viedma property:place_of_death ?b . ?b rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q12709 Q5947475
P47 P27
Q15617994
USER
Which administrative territories do Juan Antonio Viedma belong to or are bordered by Pyrénées-Orientales ?
OR((Q5947475,P27,c(Q15617994)), (Q12709,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q5947475
relation P27
action find
entity Q12709
relation P47
type Q15617994
{'OR': [['Q5947475', 'P27', {'concept': 'Q15617994'}], ['Q12709', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q12709 property:P47 ?g } UNION { resource:Q5947475 property:P27 ?g } } . ?g rdf:type ontology:Q15617994 }
Pyrénées-Orientales Juan Antonio Viedma
action filter_type
action union
action find
entity Juan Antonio Viedma
relation country of citizenship
action find
entity Pyrénées-Orientales
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Juan Antonio Viedma', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Pyrénées-Orientales', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Pyrénées-Orientales property:shares_border_with ?g } UNION { resource:Juan_Antonio_Viedma property:country_of_citizenship ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q3207 Q3509886 Q1090678 Q1090691 Q3184 Q29
SYSTEM
Aude, Sègre-Ter, Sègre, Ter, Ariège, Spain
Q3207 Q3509886 Q1090678 Q1090691 Q3184 Q29
OR((Q5947475,P27,c(Q15617994)), (Q12709,P47,c(Q15617994)))
action filter_type
action union
action find
entity Q5947475
relation P27
action find
entity Q12709
relation P47
type Q15617994
Juan Antonio Viedma belong to the [ANSWERS]
{'OR': [['Q5947475', 'P27', {'concept': 'Q15617994'}], ['Q12709', 'P47', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q12709 property:P47 ?g } UNION { resource:Q5947475 property:P27 ?g } } . ?g rdf:type ontology:Q15617994 }
Aude Sègre-Ter Sègre Ter Ariège Spain
Juan Antonio Viedma belong to the Aude, Sègre-Ter, Sègre, Ter, Ariège and Spain
Aude Sègre-Ter Sègre Ter Ariège Spain
action filter_type
action union
action find
entity Juan Antonio Viedma
relation country of citizenship
action find
entity Pyrénées-Orientales
relation shares border with
type designation for an administrative territorial entity
{'OR': [['Juan Antonio Viedma', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Pyrénées-Orientales', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Pyrénées-Orientales property:shares_border_with ?g } UNION { resource:Juan_Antonio_Viedma property:country_of_citizenship ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P206
Q355304 Q15324 Q15617994
USER
How many administrative territories are located in the neighbourhood of atmost 2 watercourses and bodies of water ?
(c(Q15617994),P206,c(Q355304)|c(Q15324))
action count
action atmost
action union
action find_tuple_counts
relation P206
type Q15617994
type Q355304
action find_tuple_counts
relation P206
type Q15617994
type Q15324
value 2
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { FILTER ( ?o <= 2 ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) ?v WHERE { { ?v property:P206 ?d . ?v rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q355304 } UNION { ?v property:P206 ?d . ?d rdf:type ontology:Q15324 . ?v rdf:type ontology:Q15617994 } } GROUP BY ?v } }
action count
action atmost
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type watercourse
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type body of water
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { FILTER ( ?o <= 2 ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) ?v WHERE { { ?v property:located_next_to_body_of_water ?d . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:watercourse } UNION { ?v property:located_next_to_body_of_water ?d . ?d rdf:type ontology:body_of_water . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?v } }
[]
watercourse body of water designation for an administrative territorial entity
SYSTEM
126
Q21111 Q505785 Q104577 Q446425 Q3066319 Q31872 Q668 Q525879 Q572949 Q267993 Q525864 Q55 Q487328 Q47585 Q1604782 Q241358 Q6237 Q2316529 Q525945 Q14859 Q508863 Q568926 Q1650693 Q1009384 Q657 Q622487 Q4628 Q503693 Q4391124 Q664950 Q528579 Q493924 Q555609 Q161258 Q491751 Q10903 Q11343 Q263451 Q442666 Q14825 Q3111694 Q216422 Q244095 Q532046 Q7566251 Q7496670 Q307508 Q34 Q38 Q6685 Q3352704 Q252772 Q769680 Q104192 Q519663 Q2360428 Q255698 Q236 Q681329 Q1984541 Q560870 Q20 Q621469 Q29 Q3088406 Q690219 Q917406 Q511806 Q548982 Q3038 Q2043234 Q42265 Q225 Q224 Q222 Q14889 Q229 Q347 Q17 Q338094 Q3939 Q1577 Q525889 Q622456 Q154322 Q509998 Q539787 Q7042 Q525900 Q516567 Q507258 Q547059 Q215 Q269010 Q262684 Q573230 Q1604772 Q174307 Q522992 Q1009 Q1438 Q20267 Q522677 Q194136 Q257859 Q251778 Q895413 Q53742 Q567984 Q526087 Q1604766 Q7561974 Q948 Q2758 Q1974 Q573454 Q509536 Q4077862 Q1984544 Q494305 Q304745 Q542837 Q12056 Q4149191 Q7942378 Q47612
(c(Q15617994),P206,c(Q355304)|c(Q15324))
action count
action atmost
action union
action find_tuple_counts
relation P206
type Q15617994
type Q355304
action find_tuple_counts
relation P206
type Q15617994
type Q15324
value 2
[ANSWER]
[{'concept': 'Q15617994'}, 'P206', [{'concept': 'Q355304'}, {'concept': 'Q15324'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { FILTER ( ?o <= 2 ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) ?v WHERE { { ?v property:P206 ?d . ?v rdf:type ontology:Q15617994 . ?d rdf:type ontology:Q355304 } UNION { ?v property:P206 ?d . ?d rdf:type ontology:Q15324 . ?v rdf:type ontology:Q15617994 } } GROUP BY ?v } }
Corn Islands Pförring Desenzano del Garda Altwarp Fala-Beguets Moosburg an der Isar India Haundorf Solnhofen Muhr am See Höttingen Netherlands Marktl Garda Ulul Schleiden Lecco Noordpolderzijl Pfofeld Ansbach Mindelstetten Maasholm Niamey III Weno Chad Päwesin Faroe Islands Riedenburg Rakhlitsy Loddin Wörth an der Isar Pasewalk Magdala Clipperton Island Pfatter Finnentrop Wetter (Ruhr) Oberdolling Altmannstein Memmingen Gouraya, Tipaza Samsø Bellagio Fischen South Bay Shillingford Yepifan Sweden Italy Dorfhain Oneop Eichstätt Bornholm Kleinmachnow Kösching Tijuana Municipality Abensberg Montenegro Dümmer Niamey II Owschlag Norway Wennigsen Spain Front de Seine Perlin Niamey V North Slope Borough Heidenheim Helgoland Almere Buiten Abbadia Lariana Bosnia and Herzegovina Croatia Albania Schwabach Cyprus Liechtenstein Japan Polsingen Dinslaken Neuwerk Westheim Lage South Bank Wellheim Markt Berolzheim Amberg Meinheim Kappeln Kipfenberg Gnotzheim Slovenia Neustadt an der Donau Füssen Beilngries Moch Essing Braunlage Cameroon Campania Schwarz Nassenfels Riva del Garda Cham Vohburg Bowen Island Donauwörth Woleai Nennslingen Pisaras Sonning Eye Tunisia Mönchengladbach British Columbia Hedersleben Landau an der Isar Baranovskiy Niamey I Kelheim Niamey IV Ettenstatt Oschatz Grigorovo Voxna Domaso
126
action count
action atmost
action union
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type watercourse
action find_tuple_counts
relation located next to body of water
type designation for an administrative territorial entity
type body of water
value 2
[{'concept': 'designation for an administrative territorial entity'}, 'located next to body of water', [{'concept': 'watercourse'}, {'concept': 'body of water'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?n ) WHERE { FILTER ( ?o <= 2 ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) ?v WHERE { { ?v property:located_next_to_body_of_water ?d . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . ?d rdf:type ontology:watercourse } UNION { ?v property:located_next_to_body_of_water ?d . ?d rdf:type ontology:body_of_water . ?v rdf:type ontology:designation_for_an_administrative_territorial_entity } } GROUP BY ?v } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1563
P931
Q62447
USER
Which aerodromes serve Havana ?
(c(Q62447),P931,Q1563)
action filter_type
action find_reverse
entity Q1563
relation P931
type Q62447
[{'concept': 'Q62447'}, 'P931', 'Q1563']
SELECT DISTINCT ?h WHERE { ?h property:P931 resource:Q1563 . ?h rdf:type ontology:Q62447 }
Havana
action filter_type
action find_reverse
entity Havana
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Havana']
SELECT DISTINCT ?h WHERE { ?h property:place_served_by_airport resource:Havana . ?h rdf:type ontology:aerodrome }
[]
aerodrome
Q381677 Q3274501
SYSTEM
José Martí International Airport, Ciudad Libertad Airport
Q381677 Q3274501
(c(Q62447),P931,Q1563)
action filter_type
action find_reverse
entity Q1563
relation P931
type Q62447
Airport [ANSWERS] serve Havana
[{'concept': 'Q62447'}, 'P931', 'Q1563']
SELECT DISTINCT ?h WHERE { ?h property:P931 resource:Q1563 . ?h rdf:type ontology:Q62447 }
José Martí International Airport Ciudad Libertad Airport
Airport José Martí International Airport and Ciudad Libertad Airport serve Havana
José Martí International Airport Ciudad Libertad Airport
action filter_type
action find_reverse
entity Havana
relation place served by airport
type aerodrome
[{'concept': 'aerodrome'}, 'place served by airport', 'Havana']
SELECT DISTINCT ?h WHERE { ?h property:place_served_by_airport resource:Havana . ?h rdf:type ontology:aerodrome }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1563
P237
Q17335294
USER
Which coat of arms serves as the heraldic design for Havana ?
(Q1563,P237,c(Q17335294))
action filter_type
action find
entity Q1563
relation P237
type Q17335294
['Q1563', 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ?j WHERE { resource:Q1563 property:P237 ?j . ?j rdf:type ontology:Q17335294 }
Havana
action filter_type
action find
entity Havana
relation coat of arms
type flag or coat of arms
['Havana', 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?j WHERE { resource:Havana property:coat_of_arms ?j . ?j rdf:type ontology:flag_or_coat_of_arms }
[]
flag or coat of arms
Q5138451
SYSTEM
Coat of arms of Havana
Q5138451
(Q1563,P237,c(Q17335294))
action filter_type
action find
entity Q1563
relation P237
type Q17335294
[ANSWER] serves as the heraldic design for Havana
['Q1563', 'P237', {'concept': 'Q17335294'}]
SELECT DISTINCT ?j WHERE { resource:Q1563 property:P237 ?j . ?j rdf:type ontology:Q17335294 }
Coat of arms of Havana
Coat of arms of Havana serves as the heraldic design for Havana
Coat of arms of Havana
action filter_type
action find
entity Havana
relation coat of arms
type flag or coat of arms
['Havana', 'coat of arms', {'concept': 'flag or coat of arms'}]
SELECT DISTINCT ?j WHERE { resource:Havana property:coat_of_arms ?j . ?j rdf:type ontology:flag_or_coat_of_arms }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P530
Q1048835 Q15617994 Q15617994
USER
How many administrative territories have diplomatic associations with approximately 1 political territories and administrative territories ?
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action count
action approx
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 1
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) ?v WHERE { VALUES ( ?p ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?e rdf:type ?p } GROUP BY ?v } . FILTER ( ?o = 1 ) }
action count
action approx
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) ?v WHERE { VALUES ( ?p ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?e rdf:type ?p } GROUP BY ?v } . FILTER ( ?o = 1 ) }
[]
political territorial entity designation for an administrative territorial entity designation for an administrative territorial entity
SYSTEM
147
Q702 Q804 Q800 Q419 Q668 Q414 Q55 Q145 Q262 Q148 Q783 Q265 Q37 Q712 Q711 Q717 Q837 Q252 Q399 Q398 Q403 Q657 Q258 Q45 Q43 Q41 Q792 Q790 Q796 Q794 Q954 Q889 Q884 Q958 Q881 Q986 Q822 Q241 Q242 Q244 Q811 Q33 Q32 Q31 Q924 Q36 Q34 Q928 Q39 Q739 Q423 Q983 Q851 Q733 Q29999 Q854 Q734 Q819 Q424 Q730 Q736 Q236 Q232 Q233 Q238 Q20 Q1045 Q1041 Q27 Q28 Q921 Q1049 Q1027 Q1020 Q189 Q843 Q842 Q1029 Q1028 Q786 Q228 Q227 Q225 Q224 Q222 Q221 Q96 Q229 Q347 Q902 Q1036 Q1037 Q974 Q1032 Q1033 Q1030 Q191 Q965 Q967 Q962 Q963 Q697 Q298 Q695 Q115 Q117 Q754 Q750 Q212 Q213 Q211 Q217 Q214 Q215 Q218 Q219 Q912 Q917 Q916 Q1007 Q1006 Q1005 Q833 Q977 Q1009 Q1008 Q971 Q683 Q34020 Q686 Q836 Q574 Q79 Q77 Q878 Q774 Q948 Q817 Q810 Q1019 Q1016 Q1011 Q945 Q678 Q29 Q33788 Q869
(c(Q15617994),P530,c(Q1048835)|c(Q15617994))
action count
action approx
action union
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
value 1
[ANSWER]
[{'concept': 'Q15617994'}, 'P530', [{'concept': 'Q1048835'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) ?v WHERE { VALUES ( ?p ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } . ?e rdf:type ?p } GROUP BY ?v } . FILTER ( ?o = 1 ) }
Federated States of Micronesia Panama Costa Rica Peru India Argentina Netherlands United Kingdom Algeria People's Republic of China Honduras Uzbekistan Lithuania Fiji Mongolia Venezuela Nepal Indonesia Armenia Bahrain Serbia Chad South Africa Portugal Turkey Greece El Salvador Haiti Iraq Iran Zimbabwe Afghanistan South Korea South Sudan Vietnam Eritrea Lebanon Cuba Belize Barbados Nicaragua Finland Luxembourg Belgium Tanzania Poland Sweden Philippines Switzerland Colombia North Korea Equatorial Guinea Saudi Arabia Paraguay Kingdom of the Netherlands Sri Lanka Guyana Laos Cambodia Suriname Ecuador Montenegro Kazakhstan Malta San Marino Norway Somalia Senegal Ireland Hungary Brunei Sudan Mauritius Malawi Iceland Pakistan Oman Mozambique Morocco Dominican Republic Andorra Azerbaijan Bosnia and Herzegovina Croatia Albania Republic of Macedonia Mexico Cyprus Liechtenstein Bangladesh Uganda Rwanda Democratic Republic of the Congo Niger Nigeria Namibia Estonia Burkina Faso Burundi Benin Botswana Nauru Chile Palau Ethiopia Ghana Trinidad and Tobago Bolivia Ukraine Czech Republic Latvia Republic of Moldova Slovakia Slovenia Romania Bulgaria Mali Bhutan Angola Guinea-Bissau Guinea Gambia Malaysia Djibouti Cameroon Côte d'Ivoire Republic of the Congo Samoa Niue Vanuatu Myanmar East Timor Egypt Uruguay United Arab Emirates Guatemala Tunisia Kuwait Jordan Madagascar Libya Cape Verde Togo Tonga Spain New Caledonia Thailand
147
action count
action approx
action union
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', [{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ( COUNT ( ?v ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?e ) AS ?o ) ?v WHERE { VALUES ( ?p ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } . ?e rdf:type ?p } GROUP BY ?v } . FILTER ( ?o = 1 ) }
[]