Simple Question (Direct)
Simple Question
Q1391982
P119
Q39614
USER
Which cemetery is the place of burial of Robbie Ross ?
(Q1391982,P119,c(Q39614))
action filter_type
action find
entity Q1391982
relation P119
type Q39614
['Q1391982', 'P119', {'concept': 'Q39614'}]
SELECT DISTINCT ?a WHERE { resource:Q1391982 property:P119 ?a . ?a rdf:type ontology:Q39614 }
Robbie Ross
action filter_type
action find
entity Robbie Ross
relation place of burial
type cemetery
['Robbie Ross', 'place of burial', {'concept': 'cemetery'}]
SELECT DISTINCT ?a WHERE { resource:Robbie_Ross property:place_of_burial ?a . ?a rdf:type ontology:cemetery }
[]
cemetery
Q311
SYSTEM
Père Lachaise Cemetery
Q311
(Q1391982,P119,c(Q39614))
action filter_type
action find
entity Q1391982
relation P119
type Q39614
The [ANSWER] the place of burial of Robbie Ross
['Q1391982', 'P119', {'concept': 'Q39614'}]
SELECT DISTINCT ?a WHERE { resource:Q1391982 property:P119 ?a . ?a rdf:type ontology:Q39614 }
Père Lachaise Cemetery
The Père Lachaise Cemetery the place of burial of Robbie Ross
Père Lachaise Cemetery
action filter_type
action find
entity Robbie Ross
relation place of burial
type cemetery
['Robbie Ross', 'place of burial', {'concept': 'cemetery'}]
SELECT DISTINCT ?a WHERE { resource:Robbie_Ross property:place_of_burial ?a . ?a rdf:type ontology:cemetery }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q311
P84
Q502895
USER
Who is the designer of that cemetery ?
(Q311,P84,c(Q502895))
action filter_type
action find
entity Q311
relation P84
type Q502895
['Q311', 'P84', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q311 property:P84 ?p . ?p rdf:type ontology:Q502895 }
Père Lachaise Cemetery
action filter_type
action find
entity Père Lachaise Cemetery
relation architect
type common name
['Père Lachaise Cemetery', 'architect', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Père_Lachaise_Cemetery property:architect ?p . ?p rdf:type ontology:common_name }
[]
common name
Q1342645
SYSTEM
Alexandre-Théodore Brongniart
Q1342645
(Q311,P84,c(Q502895))
action filter_type
action find
entity Q311
relation P84
type Q502895
The designer of that cemetery is Monsieur [ANSWER]
['Q311', 'P84', {'concept': 'Q502895'}]
SELECT DISTINCT ?p WHERE { resource:Q311 property:P84 ?p . ?p rdf:type ontology:Q502895 }
Alexandre-Théodore Brongniart
The designer of that cemetery is Monsieur Alexandre-Théodore Brongniart
Alexandre-Théodore Brongniart
action filter_type
action find
entity Père Lachaise Cemetery
relation architect
type common name
['Père Lachaise Cemetery', 'architect', {'concept': 'common name'}]
SELECT DISTINCT ?p WHERE { resource:Père_Lachaise_Cemetery property:architect ?p . ?p rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q14704859
Q502895
USER
And also tell me about Garden County Courthouse?
(Q14704859,P84,c(Q502895))
action filter_type
action find
entity Q14704859
relation P84
type Q502895
['Q14704859', 'P84', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . resource:Q14704859 property:P84 ?j }
Garden County Courthouse
action filter_type
action find
entity Garden County Courthouse
relation architect
type common name
['Garden County Courthouse', 'architect', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . resource:Garden_County_Courthouse property:architect ?j }
[]
common name
Q6241102
SYSTEM
John J. Huddart
Q6241102
(Q14704859,P84,c(Q502895))
action filter_type
action find
entity Q14704859
relation P84
type Q502895
[ANSWER]
['Q14704859', 'P84', {'concept': 'Q502895'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q502895 . resource:Q14704859 property:P84 ?j }
John J. Huddart
John J. Huddart
action filter_type
action find
entity Garden County Courthouse
relation architect
type common name
['Garden County Courthouse', 'architect', {'concept': 'common name'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:common_name . resource:Garden_County_Courthouse property:architect ?j }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q3880850 Q14704859
P19 P17
Q15617994
USER
Which administrative territories are Garden County Courthouse present in or were Oderisio di Montecassino born in ?
OR((Q14704859,P17,c(Q15617994)), (Q3880850,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q14704859
relation P17
action find
entity Q3880850
relation P19
type Q15617994
{'OR': [['Q14704859', 'P17', {'concept': 'Q15617994'}], ['Q3880850', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q3880850 property:P19 ?z } UNION { resource:Q14704859 property:P17 ?z } } . ?z rdf:type ontology:Q15617994 }
Oderisio di Montecassino Garden County Courthouse
action filter_type
action union
action find
entity Garden County Courthouse
relation country
action find
entity Oderisio di Montecassino
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Garden County Courthouse', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Oderisio di Montecassino', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Oderisio_di_Montecassino property:place_of_birth ?z } UNION { resource:Garden_County_Courthouse property:country ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q1284
SYSTEM
United States of America, Abruzzo
Q30 Q1284
OR((Q14704859,P17,c(Q15617994)), (Q3880850,P19,c(Q15617994)))
action filter_type
action union
action find
entity Q14704859
relation P17
action find
entity Q3880850
relation P19
type Q15617994
In [ANSWERS] are Garden County Courthouse present in or were Oderisio di Montecassino born in
{'OR': [['Q14704859', 'P17', {'concept': 'Q15617994'}], ['Q3880850', 'P19', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Q3880850 property:P19 ?z } UNION { resource:Q14704859 property:P17 ?z } } . ?z rdf:type ontology:Q15617994 }
United States of America Abruzzo
In United States of America and Abruzzo are Garden County Courthouse present in or were Oderisio di Montecassino born in
United States of America Abruzzo
action filter_type
action union
action find
entity Garden County Courthouse
relation country
action find
entity Oderisio di Montecassino
relation place of birth
type designation for an administrative territorial entity
{'OR': [['Garden County Courthouse', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Oderisio di Montecassino', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?z WHERE { { { resource:Oderisio_di_Montecassino property:place_of_birth ?z } UNION { resource:Garden_County_Courthouse property:country ?z } } . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1128112 Q14704859
P17
Q15617994
USER
Which administrative territories are Garden County Courthouse or history of Mozambique a part of ?
OR((Q14704859,P17,c(Q15617994)), (Q1128112,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q14704859
relation P17
action find
entity Q1128112
relation P17
type Q15617994
{'OR': [['Q14704859', 'P17', {'concept': 'Q15617994'}], ['Q1128112', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?s ) { ( resource:Q14704859 ) ( resource:Q1128112 ) } . ?s property:P17 ?x } . ?x rdf:type ontology:Q15617994 }
history of Mozambique Garden County Courthouse
action filter_type
action union
action find
entity Garden County Courthouse
relation country
action find
entity history of Mozambique
relation country
type designation for an administrative territorial entity
{'OR': [['Garden County Courthouse', 'country', {'concept': 'designation for an administrative territorial entity'}], ['history of Mozambique', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?s ) { ( resource:Garden_County_Courthouse ) ( resource:history_of_Mozambique ) } . ?s property:country ?x } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q1029
SYSTEM
United States of America, Mozambique
Q30 Q1029
OR((Q14704859,P17,c(Q15617994)), (Q1128112,P17,c(Q15617994)))
action filter_type
action union
action find
entity Q14704859
relation P17
action find
entity Q1128112
relation P17
type Q15617994
[ANSWERS] are Garden County Courthouse or history of Mozambique a part of
{'OR': [['Q14704859', 'P17', {'concept': 'Q15617994'}], ['Q1128112', 'P17', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?s ) { ( resource:Q14704859 ) ( resource:Q1128112 ) } . ?s property:P17 ?x } . ?x rdf:type ontology:Q15617994 }
United States of America Mozambique
United States of America and Mozambique are Garden County Courthouse or history of Mozambique a part of
United States of America Mozambique
action filter_type
action union
action find
entity Garden County Courthouse
relation country
action find
entity history of Mozambique
relation country
type designation for an administrative territorial entity
{'OR': [['Garden County Courthouse', 'country', {'concept': 'designation for an administrative territorial entity'}], ['history of Mozambique', 'country', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?x WHERE { { VALUES ( ?s ) { ( resource:Garden_County_Courthouse ) ( resource:history_of_Mozambique ) } . ?s property:country ?x } . ?x rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q665614
P530
Q15617994
USER
Do Gerbershausen have ambassadorial relations with those ones ?
(Q665614,P530,Q30) (Q665614,P530,Q1029)
action is_in
entity prev_answer
action find
entity Q665614
relation P530
['Q665614', 'P530', 'Q30'] ['Q665614', 'P530', 'Q1029']
ASK WHERE { VALUES ( ?y ) { ( resource:Q30 ) ( resource:Q1029 ) } . resource:Q665614 property:P530 ?y }
Gerbershausen
action is_in
entity prev_answer
action find
entity Gerbershausen
relation diplomatic relation
['Gerbershausen', 'diplomatic relation', 'United States of America'] ['Gerbershausen', 'diplomatic relation', 'Mozambique']
ASK WHERE { VALUES ( ?y ) { ( resource:United_States_of_America ) ( resource:Mozambique ) } . resource:Gerbershausen property:diplomatic_relation ?y }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q665614,P530,Q30) (Q665614,P530,Q1029)
action is_in
entity prev_answer
action find
entity Q665614
relation P530
[ANSWER]
['Q665614', 'P530', 'Q30'] ['Q665614', 'P530', 'Q1029']
ASK WHERE { VALUES ( ?y ) { ( resource:Q30 ) ( resource:Q1029 ) } . resource:Q665614 property:P530 ?y }
No
action is_in
entity prev_answer
action find
entity Gerbershausen
relation diplomatic relation
['Gerbershausen', 'diplomatic relation', 'United States of America'] ['Gerbershausen', 'diplomatic relation', 'Mozambique']
ASK WHERE { VALUES ( ?y ) { ( resource:United_States_of_America ) ( resource:Mozambique ) } . resource:Gerbershausen property:diplomatic_relation ?y }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q25129
P706
Q15324 Q473972 Q15617994
USER
Which administrative territories have their location as lesser number of bodies of water or protected areas than Langeoog ?
(c(Q15617994),P706,c(Q15324)|c(Q473972))
action less
action union
action find_tuple_counts
relation P706
type Q15617994
type Q15324
action find_tuple_counts
relation P706
type Q15617994
type Q473972
action count
action filter_multi_types
action find
entity Q25129
relation P706
type Q15324
type Q473972
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q15324'}, {'concept': 'Q473972'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) ?i WHERE { { ?i rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15324 . ?i property:P706 ?k } UNION { ?i property:P706 ?k . ?i rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q473972 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { VALUES ( ?b ) { ( ontology:Q15324 ) ( ontology:Q473972 ) } . ?y rdf:type ?b } . resource:Q25129 property:P706 ?y } } . FILTER ( ?t < ?d ) }
Langeoog
action less
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type protected area
action count
action filter_multi_types
action find
entity Langeoog
relation located on terrain feature
type body of water
type protected area
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'body of water'}, {'concept': 'protected area'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) ?i WHERE { { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:body_of_water . ?i property:located_on_terrain_feature ?k } UNION { ?i property:located_on_terrain_feature ?k . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:protected_area } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { VALUES ( ?b ) { ( ontology:body_of_water ) ( ontology:protected_area ) } . ?y rdf:type ?b } . resource:Langeoog property:located_on_terrain_feature ?y } } . FILTER ( ?t < ?d ) }
[]
body of water protected area designation for an administrative territorial entity
Q148 Q145 Q805
SYSTEM
People's Republic of China, United Kingdom, Yemen
Q805 Q1070686 Q695445 Q2712111 Q489215 Q5101419 Q682072 Q6685870 Q4692591 Q525879 Q267993 Q922342 Q637400 Q21042 Q632868 Q148 Q784 Q21049 Q786 Q7042 Q312335 Q21160 Q525945 Q5382040 Q252320 Q3003231 Q505665 Q1462 Q15744129 Q4692611 Q521132 Q790 Q508054 Q1721440 Q5517964 Q555609 Q267005 Q27332 Q1619957 Q1093572 Q6350324 Q244 Q4789577 Q501683 Q582690 Q216422 Q5000224 Q20789 Q16642582 Q33 Q921 Q633162 Q520347 Q851 Q845396 Q15213143 Q598754 Q252772 Q21074475 Q104192 Q81306 Q771971 Q1778088 Q3942 Q145 Q333149 Q27 Q494305 Q565749 Q5420482 Q19906291 Q502662 Q47821 Q20019215 Q503693 Q4692647 Q3068 Q331886 Q15244035 Q6472577 Q588957 Q229 Q4769813 Q112019 Q704288 Q21008 Q7916724 Q660806 Q28091 Q754 Q507258 Q5275507 Q28013 Q558787 Q14892 Q180271 Q262684 Q6353095 Q628095 Q3923 Q27649869 Q5283827 Q522992 Q15744111 Q760 Q6835962 Q518171 Q2119591 Q46870 Q7561974 Q504134 Q625747 Q2585085 Q8147649 Q153969 Q481758 Q8043694 Q31640 Q3559483 Q376823 Q3559279 Q3559271
(c(Q15617994),P706,c(Q15324)|c(Q473972))
action less
action union
action find_tuple_counts
relation P706
type Q15617994
type Q15324
action find_tuple_counts
relation P706
type Q15617994
type Q473972
action count
action filter_multi_types
action find
entity Q25129
relation P706
type Q15324
type Q473972
[ANSWERS] have their location as lesser number of bodies of water or protected areas than Langeoog
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q15324'}, {'concept': 'Q473972'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) ?i WHERE { { ?i rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q15324 . ?i property:P706 ?k } UNION { ?i property:P706 ?k . ?i rdf:type ontology:Q15617994 . ?k rdf:type ontology:Q473972 } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { VALUES ( ?b ) { ( ontology:Q15324 ) ( ontology:Q473972 ) } . ?y rdf:type ?b } . resource:Q25129 property:P706 ?y } } . FILTER ( ?t < ?d ) }
Yemen Leivathos Langen Zagori Oberhof Chionata Rankwitz Loucha Agioi Pantes Haundorf Muhr am See Sithonia Hohenwarte Nebel Sasbach People's Republic of China Dominica Norddorf auf Amrum Dominican Republic Amberg Spalt List auf Sylt Pfofeld Epanochori, Cephalonia Pleinfeld Croisset Bergen Sardinia Oberscheuren Agios Dimitrios, Cephalonia Hilpoltstein Haiti Neu Wulmstorf Kaimig Galaro Magdala Moneglia Kampen Hippelsbach Trøllanes Kalamaki, Zakynthos Barbados Arginia Rosengarten Neuenhagen bei Berlin Samsø Burnt River, Ontario Wenningstedt-Braderup Hydra Finland Brunei Drestedt Röttenbach, Roth Saudi Arabia Pyramiden Davgata Undeloh Eichstätt Nenndorf Kleinmachnow Forbach Avlida Kochenbach Aschaffenburg United Kingdom Abstatt Ireland Kelheim Erden Exo Chora Western New Guinea Bad Salzungen Malcesine Natal Riedenburg Agios Nikolaos, Cephalonia Loire-Atlantique Absberg Makryotika Lagopodo Allersberg Cyprus Ano Gerakari Sirmione Duchy of Holstein Sylt Vasilikades Karlshagen Wittdün auf Amrum Trinidad and Tobago Kipfenberg Digaleto Hörnum Südeichsfeld Buchholz in der Nordheide Vetralla Füssen Kalipado Nürburg Bayreuth Teglkås Divarata Braunlage Niederscheuren Saint Lucia Michata Ellhofen Pylaros Bardolino Sonning Eye Kirchlinteln Rangsdorf Wintersberg Ba District Lindau Pantelleria Xenopoulo Unterschwaningen Elatia Wenzendorf Artemisia Arkadioi
People's Republic of China, United Kingdom and Yemen have their location as lesser number of bodies of water or protected areas than Langeoog
People's Republic of China United Kingdom Yemen
action less
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type protected area
action count
action filter_multi_types
action find
entity Langeoog
relation located on terrain feature
type body of water
type protected area
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'body of water'}, {'concept': 'protected area'}]]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?t ) ?i WHERE { { ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:body_of_water . ?i property:located_on_terrain_feature ?k } UNION { ?i property:located_on_terrain_feature ?k . ?i rdf:type ontology:designation_for_an_administrative_territorial_entity . ?k rdf:type ontology:protected_area } } GROUP BY ?i } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?d ) WHERE { { VALUES ( ?b ) { ( ontology:body_of_water ) ( ontology:protected_area ) } . ?y rdf:type ?b } . resource:Langeoog property:located_on_terrain_feature ?y } } . FILTER ( ?t < ?d ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q25135
P706
Q15324 Q473972 Q15617994
USER
And also tell me about Wangerooge?
(c(Q15617994),P706,c(Q15324)|c(Q473972))
action less
action union
action find_tuple_counts
relation P706
type Q15617994
type Q15324
action find_tuple_counts
relation P706
type Q15617994
type Q473972
action count
action filter_multi_types
action find
entity Q25135
relation P706
type Q15324
type Q473972
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q15324'}, {'concept': 'Q473972'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) ?a WHERE { { ?a property:P706 ?l . ?a rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15324 } UNION { ?a rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q473972 . ?a property:P706 ?l } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { { { ?u rdf:type ontology:Q15324 } UNION { ?u rdf:type ontology:Q473972 } } . resource:Q25135 property:P706 ?u } } . FILTER ( ?f < ?b ) }
Wangerooge
action less
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type protected area
action count
action filter_multi_types
action find
entity Wangerooge
relation located on terrain feature
type body of water
type protected area
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'body of water'}, {'concept': 'protected area'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) ?a WHERE { { ?a property:located_on_terrain_feature ?l . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:body_of_water } UNION { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:protected_area . ?a property:located_on_terrain_feature ?l } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { { { ?u rdf:type ontology:body_of_water } UNION { ?u rdf:type ontology:protected_area } } . resource:Wangerooge property:located_on_terrain_feature ?u } } . FILTER ( ?f < ?b ) }
[]
body of water protected area designation for an administrative territorial entity
Q148 Q145 Q805
SYSTEM
People's Republic of China, United Kingdom, Yemen
Q805 Q1070686 Q695445 Q2712111 Q489215 Q5101419 Q682072 Q6685870 Q4692591 Q525879 Q267993 Q922342 Q637400 Q21042 Q632868 Q148 Q784 Q21049 Q786 Q7042 Q312335 Q21160 Q525945 Q5382040 Q252320 Q3003231 Q505665 Q1462 Q15744129 Q4692611 Q521132 Q790 Q508054 Q1721440 Q5517964 Q555609 Q267005 Q27332 Q1619957 Q1093572 Q6350324 Q244 Q4789577 Q501683 Q582690 Q216422 Q5000224 Q20789 Q16642582 Q33 Q921 Q633162 Q520347 Q851 Q845396 Q15213143 Q598754 Q252772 Q21074475 Q104192 Q81306 Q771971 Q1778088 Q3942 Q145 Q333149 Q27 Q494305 Q565749 Q5420482 Q19906291 Q502662 Q47821 Q20019215 Q503693 Q4692647 Q3068 Q331886 Q15244035 Q6472577 Q588957 Q229 Q4769813 Q112019 Q704288 Q21008 Q7916724 Q660806 Q28091 Q754 Q507258 Q5275507 Q28013 Q558787 Q14892 Q180271 Q262684 Q6353095 Q628095 Q3923 Q27649869 Q5283827 Q522992 Q15744111 Q760 Q6835962 Q518171 Q2119591 Q46870 Q7561974 Q504134 Q625747 Q2585085 Q8147649 Q153969 Q481758 Q8043694 Q31640 Q3559483 Q376823 Q3559279 Q3559271
(c(Q15617994),P706,c(Q15324)|c(Q473972))
action less
action union
action find_tuple_counts
relation P706
type Q15617994
type Q15324
action find_tuple_counts
relation P706
type Q15617994
type Q473972
action count
action filter_multi_types
action find
entity Q25135
relation P706
type Q15324
type Q473972
[ANSWERS]
[{'concept': 'Q15617994'}, 'P706', [{'concept': 'Q15324'}, {'concept': 'Q473972'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) ?a WHERE { { ?a property:P706 ?l . ?a rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q15324 } UNION { ?a rdf:type ontology:Q15617994 . ?l rdf:type ontology:Q473972 . ?a property:P706 ?l } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { { { ?u rdf:type ontology:Q15324 } UNION { ?u rdf:type ontology:Q473972 } } . resource:Q25135 property:P706 ?u } } . FILTER ( ?f < ?b ) }
Yemen Leivathos Langen Zagori Oberhof Chionata Rankwitz Loucha Agioi Pantes Haundorf Muhr am See Sithonia Hohenwarte Nebel Sasbach People's Republic of China Dominica Norddorf auf Amrum Dominican Republic Amberg Spalt List auf Sylt Pfofeld Epanochori, Cephalonia Pleinfeld Croisset Bergen Sardinia Oberscheuren Agios Dimitrios, Cephalonia Hilpoltstein Haiti Neu Wulmstorf Kaimig Galaro Magdala Moneglia Kampen Hippelsbach Trøllanes Kalamaki, Zakynthos Barbados Arginia Rosengarten Neuenhagen bei Berlin Samsø Burnt River, Ontario Wenningstedt-Braderup Hydra Finland Brunei Drestedt Röttenbach, Roth Saudi Arabia Pyramiden Davgata Undeloh Eichstätt Nenndorf Kleinmachnow Forbach Avlida Kochenbach Aschaffenburg United Kingdom Abstatt Ireland Kelheim Erden Exo Chora Western New Guinea Bad Salzungen Malcesine Natal Riedenburg Agios Nikolaos, Cephalonia Loire-Atlantique Absberg Makryotika Lagopodo Allersberg Cyprus Ano Gerakari Sirmione Duchy of Holstein Sylt Vasilikades Karlshagen Wittdün auf Amrum Trinidad and Tobago Kipfenberg Digaleto Hörnum Südeichsfeld Buchholz in der Nordheide Vetralla Füssen Kalipado Nürburg Bayreuth Teglkås Divarata Braunlage Niederscheuren Saint Lucia Michata Ellhofen Pylaros Bardolino Sonning Eye Kirchlinteln Rangsdorf Wintersberg Ba District Lindau Pantelleria Xenopoulo Unterschwaningen Elatia Wenzendorf Artemisia Arkadioi
People's Republic of China United Kingdom Yemen
action less
action union
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type body of water
action find_tuple_counts
relation located on terrain feature
type designation for an administrative territorial entity
type protected area
action count
action filter_multi_types
action find
entity Wangerooge
relation located on terrain feature
type body of water
type protected area
[{'concept': 'designation for an administrative territorial entity'}, 'located on terrain feature', [{'concept': 'body of water'}, {'concept': 'protected area'}]]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?l ) AS ?f ) ?a WHERE { { ?a property:located_on_terrain_feature ?l . ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:body_of_water } UNION { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?l rdf:type ontology:protected_area . ?a property:located_on_terrain_feature ?l } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?u ) AS ?b ) WHERE { { { ?u rdf:type ontology:body_of_water } UNION { ?u rdf:type ontology:protected_area } } . resource:Wangerooge property:located_on_terrain_feature ?u } } . FILTER ( ?f < ?b ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with min number of administrative territories ?
(c(Q15617994),P530,Q953)
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?c ) { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?v ) WHERE { ?a rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 . ?a property:P530 ?q } GROUP BY ?a } } . { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?w ) WHERE { ?p rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 . ?p property:P530 ?y } GROUP BY ?p } . FILTER ( ?w = ?c ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?c ) { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?v ) WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a property:diplomatic_relation ?q } GROUP BY ?a } } . { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?w ) WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p property:diplomatic_relation ?y } GROUP BY ?p } . FILTER ( ?w = ?c ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q929 Q29999 Q232
SYSTEM
Central African Republic, Kingdom of the Netherlands, Kazakhstan
Q702 Q804 Q265 Q712 Q837 Q242 Q811 Q929 Q29999 Q854 Q730 Q232 Q1027 Q1032 Q697 Q695 Q754 Q912 Q683 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,Q953)
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWERS] have diplomatic relationships with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?c ) { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?v ) WHERE { ?a rdf:type ontology:Q15617994 . ?q rdf:type ontology:Q15617994 . ?a property:P530 ?q } GROUP BY ?a } } . { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?w ) WHERE { ?p rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 . ?p property:P530 ?y } GROUP BY ?p } . FILTER ( ?w = ?c ) }
Federated States of Micronesia Panama Uzbekistan Fiji Nepal Belize Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Suriname Kazakhstan Mauritius Niger Nauru Palau Trinidad and Tobago Mali Samoa Myanmar Kuwait Madagascar Togo Tonga New Caledonia
Central African Republic, Kingdom of the Netherlands and Kazakhstan have diplomatic relationships with min number of administrative territories
Central African Republic Kingdom of the Netherlands Kazakhstan
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MIN ( ?v ) AS ?c ) { SELECT DISTINCT ?a ( COUNT ( ?q ) AS ?v ) WHERE { ?a rdf:type ontology:designation_for_an_administrative_territorial_entity . ?q rdf:type ontology:designation_for_an_administrative_territorial_entity . ?a property:diplomatic_relation ?q } GROUP BY ?a } } . { SELECT DISTINCT ?p ( COUNT ( ?y ) AS ?w ) WHERE { ?p rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p property:diplomatic_relation ?y } GROUP BY ?p } . FILTER ( ?w = ?c ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P6
Q502895
USER
Which people do United States of America serve as the head of government for ?
(Q30,P6,c(Q502895))
action filter_type
action find
entity Q30
relation P6
type Q502895
['Q30', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q30 property:P6 ?w . ?w rdf:type ontology:Q502895 }
United States of America
action filter_type
action find
entity United States of America
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:United_States_of_America property:head_of_government ?w . ?w rdf:type ontology:common_name }
[]
common name
Q76 Q9916 Q22686
SYSTEM
Barack Obama, Dwight D. Eisenhower, Donald Trump
Q35171 Q11815 Q11816 Q11817 Q35498 Q11812 Q12306 Q35236 Q12325 Q33866 Q35648 Q9588 Q9582 Q35041 Q207 Q11813 Q91 Q23685 Q9696 Q22686 Q34597 Q36023 Q11881 Q9916 Q12312 Q11806 Q35286 Q9640 Q35686 Q11820 Q35678 Q11869 Q34296 Q76 Q8612 Q34836 Q23505 Q23 Q1124 Q11613 Q11896 Q8007 Q9960 Q11891
(Q30,P6,c(Q502895))
action filter_type
action find
entity Q30
relation P6
type Q502895
United States of America serve as the head of government for [ANSWERS]
['Q30', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q30 property:P6 ?w . ?w rdf:type ontology:Q502895 }
Grover Cleveland James Monroe John Quincy Adams Andrew Jackson Chester A. Arthur Thomas Jefferson Millard Fillmore Herbert Hoover James Buchanan Theodore Roosevelt William Howard Taft Richard Nixon Gerald Ford William McKinley George W. Bush James Madison Abraham Lincoln Jimmy Carter John F. Kennedy Donald Trump James A. Garfield Calvin Coolidge John Tyler Dwight D. Eisenhower Franklin Pierce John Adams Warren G. Harding Lyndon B. Johnson Rutherford B. Hayes Martin Van Buren Benjamin Harrison William Henry Harrison Woodrow Wilson Barack Obama Andrew Johnson Ulysses S. Grant George H. W. Bush George Washington Bill Clinton Harry S. Truman Zachary Taylor Franklin Delano Roosevelt Ronald Reagan James K. Polk
United States of America serve as the head of government for Barack Obama, Dwight D. Eisenhower and Donald Trump
Barack Obama Dwight D. Eisenhower Donald Trump
action filter_type
action find
entity United States of America
relation head of government
type common name
['United States of America', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:United_States_of_America property:head_of_government ?w . ?w rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q30
P6
Q15617994
USER
Do United States of America have a government lead by those people ?
(Q30,P6,Q76) (Q30,P6,Q9916) (Q30,P6,Q22686)
action is_in
entity prev_answer
action find
entity Q30
relation P6
['Q30', 'P6', 'Q76'] ['Q30', 'P6', 'Q9916'] ['Q30', 'P6', 'Q22686']
ASK WHERE { VALUES ( ?t ) { ( resource:Q35171 ) ( resource:Q11815 ) ( resource:Q11816 ) } . resource:Q30 property:P6 ?t }
United States of America
action is_in
entity prev_answer
action find
entity United States of America
relation head of government
['United States of America', 'head of government', 'Barack Obama'] ['United States of America', 'head of government', 'Dwight D. Eisenhower'] ['United States of America', 'head of government', 'Donald Trump']
ASK WHERE { VALUES ( ?t ) { ( resource:Grover_Cleveland ) ( resource:James_Monroe ) ( resource:John_Quincy_Adams ) } . resource:United_States_of_America property:head_of_government ?t }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q30,P6,Q76) (Q30,P6,Q9916) (Q30,P6,Q22686)
action is_in
entity prev_answer
action find
entity Q30
relation P6
[ANSWER]
['Q30', 'P6', 'Q76'] ['Q30', 'P6', 'Q9916'] ['Q30', 'P6', 'Q22686']
ASK WHERE { VALUES ( ?t ) { ( resource:Q35171 ) ( resource:Q11815 ) ( resource:Q11816 ) } . resource:Q30 property:P6 ?t }
Yes
action is_in
entity prev_answer
action find
entity United States of America
relation head of government
['United States of America', 'head of government', 'Barack Obama'] ['United States of America', 'head of government', 'Dwight D. Eisenhower'] ['United States of America', 'head of government', 'Donald Trump']
ASK WHERE { VALUES ( ?t ) { ( resource:Grover_Cleveland ) ( resource:James_Monroe ) ( resource:John_Quincy_Adams ) } . resource:United_States_of_America property:head_of_government ?t }
[]