Simple Question (Direct)
Simple Question
Q1502988
P106
Q12737077
USER
Which occupations have Geoff Harcourt as his/her 's career ?
(Q1502988,P106,c(Q12737077))
action filter_type
action find
entity Q1502988
relation P106
type Q12737077
['Q1502988', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q1502988 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
Geoff Harcourt
action filter_type
action find
entity Geoff Harcourt
relation occupation
type occupation
['Geoff Harcourt', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Geoff_Harcourt property:occupation ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q188094 Q1622272 Q17488363
SYSTEM
economist, university teacher, economic historian
Q188094 Q1622272 Q17488363
(Q1502988,P106,c(Q12737077))
action filter_type
action find
entity Q1502988
relation P106
type Q12737077
[ANSWERS] have Geoff Harcourt as his/her 's career
['Q1502988', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q1502988 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
economist university teacher economic historian
Economist, university teacher and economic historian have Geoff Harcourt as his/her 's career
economist university teacher economic historian
action filter_type
action find
entity Geoff Harcourt
relation occupation
type occupation
['Geoff Harcourt', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Geoff_Harcourt property:occupation ?k . ?k rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1502988
P1412
Q34770
USER
Which language does that person speak in ?
(Q188094,P1412,c(Q34770)) (Q1622272,P1412,c(Q34770)) (Q17488363,P1412,c(Q34770))
action filter_type
action find
entity Q1502988
relation P1412
type Q34770
['Q188094', 'P1412', {'concept': 'Q34770'}] ['Q1622272', 'P1412', {'concept': 'Q34770'}] ['Q17488363', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q34770 . resource:Q1502988 property:P1412 ?u }
Geoff Harcourt
action filter_type
action find
entity Geoff Harcourt
relation languages spoken, written or signed
type language
['economist', 'languages spoken, written or signed', {'concept': 'language'}] ['university teacher', 'languages spoken, written or signed', {'concept': 'language'}] ['economic historian', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:language . resource:Geoff_Harcourt property:languages_spoken,_written_or_signed ?u }
[]
language
Q1860
SYSTEM
English
Q1860
(Q188094,P1412,c(Q34770)) (Q1622272,P1412,c(Q34770)) (Q17488363,P1412,c(Q34770))
action filter_type
action find
entity Q1502988
relation P1412
type Q34770
That person speaks the [ANSWER]
['Q188094', 'P1412', {'concept': 'Q34770'}] ['Q1622272', 'P1412', {'concept': 'Q34770'}] ['Q17488363', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q34770 . resource:Q1502988 property:P1412 ?u }
English
That person speaks the English
English
action filter_type
action find
entity Geoff Harcourt
relation languages spoken, written or signed
type language
['economist', 'languages spoken, written or signed', {'concept': 'language'}] ['university teacher', 'languages spoken, written or signed', {'concept': 'language'}] ['economic historian', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:language . resource:Geoff_Harcourt property:languages_spoken,_written_or_signed ?u }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q1624129 Q1502988
P47 P27
Q1048835
USER
Which political territories are the native countriesof Geoff Harcourt or are adjacent to Benamocarra ?
OR((Q1502988,P27,c(Q1048835)), (Q1624129,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1502988
relation P27
action find
entity Q1624129
relation P47
type Q1048835
{'OR': [['Q1502988', 'P27', {'concept': 'Q1048835'}], ['Q1624129', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q1502988 property:P27 ?h } UNION { resource:Q1624129 property:P47 ?h } } . ?h rdf:type ontology:Q1048835 }
Benamocarra Geoff Harcourt
action filter_type
action union
action find
entity Geoff Harcourt
relation country of citizenship
action find
entity Benamocarra
relation shares border with
type political territorial entity
{'OR': [['Geoff Harcourt', 'country of citizenship', {'concept': 'political territorial entity'}], ['Benamocarra', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Geoff_Harcourt property:country_of_citizenship ?h } UNION { resource:Benamocarra property:shares_border_with ?h } } . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q408 Q1630429 Q492741
SYSTEM
Australia, Iznate, Vélez-Málaga
Q408 Q1630429 Q492741
OR((Q1502988,P27,c(Q1048835)), (Q1624129,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q1502988
relation P27
action find
entity Q1624129
relation P47
type Q1048835
[ANSWERS] are the native countriesof Geoff Harcourt or are adjacent to Benamocarra
{'OR': [['Q1502988', 'P27', {'concept': 'Q1048835'}], ['Q1624129', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Q1502988 property:P27 ?h } UNION { resource:Q1624129 property:P47 ?h } } . ?h rdf:type ontology:Q1048835 }
Australia Iznate Vélez-Málaga
Australia, Iznate and Vélez-Málaga are the native countriesof Geoff Harcourt or are adjacent to Benamocarra
Australia Iznate Vélez-Málaga
action filter_type
action union
action find
entity Geoff Harcourt
relation country of citizenship
action find
entity Benamocarra
relation shares border with
type political territorial entity
{'OR': [['Geoff Harcourt', 'country of citizenship', {'concept': 'political territorial entity'}], ['Benamocarra', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?h WHERE { { { resource:Geoff_Harcourt property:country_of_citizenship ?h } UNION { resource:Benamocarra property:shares_border_with ?h } } . ?h rdf:type ontology:political_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1376
Q1048835 Q515 Q56061
USER
Which political territories have min number of cities and administrative territories have their first city ?
(c(Q515)|c(Q56061),P1376,c(Q1048835))
action argmin
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q56061
[[{'concept': 'Q515'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?g ) AS ?m ) WHERE { { ?g property:P1376 ?c . ?c rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q515 } UNION { ?g property:P1376 ?c . ?c rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q56061 } } GROUP BY ?c } . FILTER ( ?m = ?v ) . { SELECT DISTINCT ( MIN ( ?a ) AS ?v ) { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?a ) WHERE { ?b rdf:type ?h . VALUES ( ?h ) { ( ontology:Q515 ) ( ontology:Q56061 ) } } GROUP BY ?i } } }
action argmin
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type administrative territorial entity
[[{'concept': 'city'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?g ) AS ?m ) WHERE { { ?g property:capital_of ?c . ?c rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:city } UNION { ?g property:capital_of ?c . ?c rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:administrative_territorial_entity } } GROUP BY ?c } . FILTER ( ?m = ?v ) . { SELECT DISTINCT ( MIN ( ?a ) AS ?v ) { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?a ) WHERE { ?b rdf:type ?h . VALUES ( ?h ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?i } } }
[]
political territorial entity city administrative territorial entity
Q10453 Q104891 Q166709
SYSTEM
Weißenburg-Gunzenhausen, Västernorrland County, Vinnytsia Oblast
Q7130037 Q13885 Q13887 Q13728 Q13721 Q13723 Q13727 Q3321945 Q10500690 Q10453 Q10459 Q13902 Q3317759 Q43448 Q1122980 Q1382499 Q2026858 Q13769 Q13767 Q13763 Q7906 Q3312902 Q173407 Q2702993 Q6156 Q13867 Q13866 Q13864 Q13789 Q104257 Q10469 Q2485101 Q10462 Q10466 Q10465 Q104891 Q971457 Q6337 Q13730 Q2846059 Q13861 Q6319070 Q105075 Q34617 Q2718534 Q5455586 Q6319759 Q25228 Q692946 Q3313430 Q5088519 Q13778 Q90027 Q3656379 Q642314 Q6318695 Q6308 Q10461 Q170213 Q2917 Q5945 Q10896751 Q13812 Q13810 Q6061 Q707771 Q3826003 Q10471 Q170604 Q166709 Q5096 Q3653113 Q13740 Q168856 Q7258563 Q922842 Q8050384 Q3314201 Q106789 Q1468315 Q7414539 Q1769672 Q13845 Q13846 Q13841 Q13840 Q104746 Q1229942 Q103679 Q1232887 Q6313 Q6317 Q13893 Q13895 Q5444794 Q593806 Q3903 Q10551 Q13711 Q2761218 Q778266 Q201697 Q7827062 Q4694508 Q13807 Q170672 Q151938 Q104877 Q3824193 Q106915 Q315840 Q13751 Q13750 Q571947 Q48106 Q2307775 Q5856660 Q2697637 Q10480 Q10483 Q10485 Q10487 Q339637 Q13871 Q13873 Q13875 Q13877 Q13879 Q6013498 Q10554 Q5924968 Q468378 Q35086 Q2367188 Q104940
(c(Q515)|c(Q56061),P1376,c(Q1048835))
action argmin
action union
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q515
action find_reverse_tuple_counts
relation P1376
type Q1048835
type Q56061
[ANSWERS] have min number of cities and administrative territories have their first city
[[{'concept': 'Q515'}, {'concept': 'Q56061'}], 'P1376', {'concept': 'Q1048835'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?g ) AS ?m ) WHERE { { ?g property:P1376 ?c . ?c rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q515 } UNION { ?g property:P1376 ?c . ?c rdf:type ontology:Q1048835 . ?g rdf:type ontology:Q56061 } } GROUP BY ?c } . FILTER ( ?m = ?v ) . { SELECT DISTINCT ( MIN ( ?a ) AS ?v ) { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?a ) WHERE { ?b rdf:type ?h . VALUES ( ?h ) { ( ontology:Q515 ) ( ontology:Q56061 ) } } GROUP BY ?i } } }
Panao District Sultan Kudarat Sulu Apayao Agusan del Sur Aklan Antique Acarí District San Miguel District Weißenburg-Gunzenhausen Kitzingen Zamboanga Sibugay Putumayo District British Indian Ocean Territory Comtat Venaissin Hela Hudiksvall County Camiguin Camarines Sur Camarines Norte Limburg-Weilburg Coya District Ternopil Oblast Haquira District Oberspreewald-Lausitz Occidental Mindoro Nueva Vizcaya Northern Samar Compostela Valley Örebro County Main-Spessart County of Chiny Haßberge Bad Kissingen Rhön-Grabfeld Västernorrland County Lunahuaná District Vogtlandkreis Aurora Andahuaylillas District Mountain Province Magdalena de Cao District Västmanland County Saint Pierre and Miquelon Lurigancho Fitzcarrald Sicaya District Anguilla Gorizia and Gradisca Antioquia District Chavinillo District Catanduanes German-speaking Community of Belgium Davao Occidental County of Burgundy Pimentel Leipzig Schweinfurt Zakarpattia Oblast Vorpommern-Greifswald District Cloppenburg Llipa District Ifugao Guimaras Altmarkkreis Salzwedel County of Bentheim Chucuito District Aschaffenburg New France Vinnytsia Oblast West Papua Kingdom of Syunik Batanes Chernivtsi Oblast Puerto Inca District Skaraborg County Yavari District Achoma District Värmland County Pozuzo District San José de Sisa District La Sotonera Maguindanao Marinduque Lanao del Norte Laguna Kronoberg County La Jalca District Jämtland County County of Savoy Meissen Görlitz Tawi-Tawi Zambales Fernando Lores District Llata District North Kalimantan Middle Franconia Abra Jesús District County of Artois Leimebamba District Torres Causana District Aguas Verdes Dinagat Islands Dnipropetrovsk Oblast Neutral Moresnet Västerbotten county Querobamba District Södermanland County County of Veldenz Biliran Benguet Bautzen Suhl District Sepahua Mito District San Marcos District Dingolfing-Landau Regen Deggendorf Freyung-Grafenau Kristianstad County Pangasinan Quirino Romblon Sarangani Siquijor Inambari Upper Franconia Huacaybamba County of Hoya South Georgia and the South Sandwich Islands Härnösand County Östergötland County
Weißenburg-Gunzenhausen, Västernorrland County and Vinnytsia Oblast have min number of cities and administrative territories have their first city
Weißenburg-Gunzenhausen Västernorrland County Vinnytsia Oblast
action argmin
action union
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type city
action find_reverse_tuple_counts
relation capital of
type political territorial entity
type administrative territorial entity
[[{'concept': 'city'}, {'concept': 'administrative territorial entity'}], 'capital of', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ?c ( COUNT ( ?g ) AS ?m ) WHERE { { ?g property:capital_of ?c . ?c rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:city } UNION { ?g property:capital_of ?c . ?c rdf:type ontology:political_territorial_entity . ?g rdf:type ontology:administrative_territorial_entity } } GROUP BY ?c } . FILTER ( ?m = ?v ) . { SELECT DISTINCT ( MIN ( ?a ) AS ?v ) { SELECT DISTINCT ?i ( COUNT ( ?b ) AS ?a ) WHERE { ?b rdf:type ?h . VALUES ( ?h ) { ( ontology:city ) ( ontology:administrative_territorial_entity ) } } GROUP BY ?i } } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q408
P530
Q7188 Q183366
USER
How many governments and territories have a diplomatic relationship with Australia ?
(Q408,P530,c(Q7188)) (Q408,P530,c(Q183366))
action count
action union
action filter_type
action find
entity Q408
relation P530
type Q7188
action filter_type
action find
entity Q408
relation P530
type Q183366
['Q408', 'P530', {'concept': 'Q7188'}] ['Q408', 'P530', {'concept': 'Q183366'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?x ) WHERE { VALUES ( ?w ) { ( ontology:Q7188 ) ( ontology:Q183366 ) } . ?c rdf:type ?w }
Australia
action count
action union
action filter_type
action find
entity Australia
relation diplomatic relation
type government
action filter_type
action find
entity Australia
relation diplomatic relation
type territory
['Australia', 'diplomatic relation', {'concept': 'government'}] ['Australia', 'diplomatic relation', {'concept': 'territory'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?x ) WHERE { VALUES ( ?w ) { ( ontology:government ) ( ontology:territory ) } . ?c rdf:type ?w }
[]
government territory
SYSTEM
1 governments and 1 territories
Q846 Q42620
(Q408,P530,c(Q7188)) (Q408,P530,c(Q183366))
action count
action union
action filter_type
action find
entity Q408
relation P530
type Q7188
action filter_type
action find
entity Q408
relation P530
type Q183366
[ANSWER]
['Q408', 'P530', {'concept': 'Q7188'}] ['Q408', 'P530', {'concept': 'Q183366'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?x ) WHERE { VALUES ( ?w ) { ( ontology:Q7188 ) ( ontology:Q183366 ) } . ?c rdf:type ?w }
Qatar Palestinian National Authority
1 governments and 1 territories
action count
action union
action filter_type
action find
entity Australia
relation diplomatic relation
type government
action filter_type
action find
entity Australia
relation diplomatic relation
type territory
['Australia', 'diplomatic relation', {'concept': 'government'}] ['Australia', 'diplomatic relation', {'concept': 'territory'}]
SELECT DISTINCT ( COUNT ( ?c ) AS ?x ) WHERE { VALUES ( ?w ) { ( ontology:government ) ( ontology:territory ) } . ?c rdf:type ?w }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q769
P17
Q1048835 Q223557 Q3914
USER
Which political territories are less number of physical objects and schools located in than Grenada ?
(c(Q223557)|c(Q3914),P17,c(Q1048835))
action less
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q223557
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q3914
action count
action filter_multi_types
action find_reverse
entity Q769
relation P17
type Q223557
type Q3914
[[{'concept': 'Q223557'}, {'concept': 'Q3914'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:P17 resource:Q769 . { { ?r rdf:type ontology:Q223557 } UNION { ?r rdf:type ontology:Q3914 } } } } . FILTER ( ?p < ?j ) . { SELECT DISTINCT ?v ( COUNT ( ?l ) AS ?p ) WHERE { { ?l property:P17 ?v . ?l rdf:type ontology:Q223557 . ?v rdf:type ontology:Q1048835 } UNION { ?l property:P17 ?v . ?v rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q3914 } } GROUP BY ?v } }
Grenada
action less
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type physical object
action find_reverse_tuple_counts
relation country
type political territorial entity
type school
action count
action filter_multi_types
action find_reverse
entity Grenada
relation country
type physical object
type school
[[{'concept': 'physical object'}, {'concept': 'school'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:country resource:Grenada . { { ?r rdf:type ontology:physical_object } UNION { ?r rdf:type ontology:school } } } } . FILTER ( ?p < ?j ) . { SELECT DISTINCT ?v ( COUNT ( ?l ) AS ?p ) WHERE { { ?l property:country ?v . ?l rdf:type ontology:physical_object . ?v rdf:type ontology:political_territorial_entity } UNION { ?l property:country ?v . ?v rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:school } } GROUP BY ?v } }
[]
political territorial entity physical object school
Q5705 Q1000 Q691
SYSTEM
Catalonia, Gabon, Papua New Guinea
Q193714 Q1000 Q195972 Q21590062 Q746558 Q838261 Q193619 Q699964 Q13767 Q34617 Q22880 Q9676 Q641138 Q693551 Q13353 Q848383 Q5705 Q13726 Q953068 Q5785 Q38610 Q3405693 Q1054923 Q13862 Q79965 Q223793 Q319376 Q13869 Q407199 Q18221 Q2002138 Q3899 Q35672 Q25228 Q1747689 Q691 Q757 Q231 Q234 Q2991382 Q168651 Q399702 Q35086 Q23635 Q208279 Q192184 Q1615455 Q31747 Q25305 Q129286
(c(Q223557)|c(Q3914),P17,c(Q1048835))
action less
action union
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q223557
action find_reverse_tuple_counts
relation P17
type Q1048835
type Q3914
action count
action filter_multi_types
action find_reverse
entity Q769
relation P17
type Q223557
type Q3914
[ANSWERS] are less number of physical objects and schools located in than Grenada
[[{'concept': 'Q223557'}, {'concept': 'Q3914'}], 'P17', {'concept': 'Q1048835'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:P17 resource:Q769 . { { ?r rdf:type ontology:Q223557 } UNION { ?r rdf:type ontology:Q3914 } } } } . FILTER ( ?p < ?j ) . { SELECT DISTINCT ?v ( COUNT ( ?l ) AS ?p ) WHERE { { ?l property:P17 ?v . ?l rdf:type ontology:Q223557 . ?v rdf:type ontology:Q1048835 } UNION { ?l property:P17 ?v . ?v rdf:type ontology:Q1048835 . ?l rdf:type ontology:Q3914 } } GROUP BY ?v } }
Mandatory Palestine Gabon Kingdom of Kartli Antarctic Treaty area Emirate of Bukhara Federal Republic of Yugoslavia Union of South Africa Archduchy of Austria Camarines Sur Saint Pierre and Miquelon Electoral Palatinate Isle of Man Duchy of Cleves Landgraviate of Hesse-Darmstadt Montserrat Duchy of Rome Catalonia Albay South-West Africa Cayman Islands Dominion of Newfoundland Sark British Hong Kong Negros Occidental Golden Horde Kingdom of Etruria Hanau-Münzenberg Palawan Palestinian territories Turks and Caicos Islands Equador, Rio Grande do Norte Kalimantan Timur Pitcairn Islands Anguilla Ancient Rome Papua New Guinea Saint Vincent and the Grenadines Walloon Region Flemish Region County of Provence Landgraviate of Hesse-Kassel Agüimes, Las Palmas South Georgia and the South Sandwich Islands Bermuda Highland Saint Helena, Ascension and Tristan da Cunha Duchy of Mirandola Irish Free State British Virgin Islands British Raj
Catalonia, Gabon and Papua New Guinea are less number of physical objects and schools located in than Grenada
Catalonia Gabon Papua New Guinea
action less
action union
action find_reverse_tuple_counts
relation country
type political territorial entity
type physical object
action find_reverse_tuple_counts
relation country
type political territorial entity
type school
action count
action filter_multi_types
action find_reverse
entity Grenada
relation country
type physical object
type school
[[{'concept': 'physical object'}, {'concept': 'school'}], 'country', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?r ) AS ?j ) WHERE { ?r property:country resource:Grenada . { { ?r rdf:type ontology:physical_object } UNION { ?r rdf:type ontology:school } } } } . FILTER ( ?p < ?j ) . { SELECT DISTINCT ?v ( COUNT ( ?l ) AS ?p ) WHERE { { ?l property:country ?v . ?l rdf:type ontology:physical_object . ?v rdf:type ontology:political_territorial_entity } UNION { ?l property:country ?v . ?v rdf:type ontology:political_territorial_entity . ?l rdf:type ontology:school } } GROUP BY ?v } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q5705 Q1000 Q691
P17
Q1048835
USER
Which political territories are present in Catalonia, Gabon and Papua New Guinea ?
(c(Q1048835),P17,Q5705) (c(Q1048835),P17,Q1000) (c(Q1048835),P17,Q691)
action union
action filter_type
action find_reverse
entity Q1000
relation P17
type Q1048835
action filter_type
action find_reverse
entity Q691
relation P17
type Q1048835
action filter_type
action find_reverse
entity Q5705
relation P17
type Q1048835
[{'concept': 'Q1048835'}, 'P17', 'Q5705'] [{'concept': 'Q1048835'}, 'P17', 'Q1000'] [{'concept': 'Q1048835'}, 'P17', 'Q691']
SELECT DISTINCT ?l WHERE { VALUES ( ?a ) { ( resource:Q691 ) ( resource:Q1000 ) } . ?l property:P17 ?a }
Catalonia Gabon Papua New Guinea
action union
action filter_type
action find_reverse
entity Gabon
relation country
type political territorial entity
action filter_type
action find_reverse
entity Papua New Guinea
relation country
type political territorial entity
action filter_type
action find_reverse
entity Catalonia
relation country
type political territorial entity
[{'concept': 'political territorial entity'}, 'country', 'Catalonia'] [{'concept': 'political territorial entity'}, 'country', 'Gabon'] [{'concept': 'political territorial entity'}, 'country', 'Papua New Guinea']
SELECT DISTINCT ?l WHERE { VALUES ( ?a ) { ( resource:Papua_New_Guinea ) ( resource:Gabon ) } . ?l property:country ?a }
[]
political territorial entity
Q1000 Q691 Q13853
SYSTEM
Gabon, Papua New Guinea, Tona
Q13853 Q1000 Q753686 Q874980 Q1382499 Q690880 Q849807 Q849801 Q753689 Q849812 Q1378310 Q849790 Q667468 Q691 Q753702 Q853664 Q838690 Q862584 Q874935 Q874942 Q326254 Q1400625 Q599448 Q874962
(c(Q1048835),P17,Q5705) (c(Q1048835),P17,Q1000) (c(Q1048835),P17,Q691)
action union
action filter_type
action find_reverse
entity Q1000
relation P17
type Q1048835
action filter_type
action find_reverse
entity Q691
relation P17
type Q1048835
action filter_type
action find_reverse
entity Q5705
relation P17
type Q1048835
[ANSWERS] are present in Catalonia, Gabon and Papua New Guinea
[{'concept': 'Q1048835'}, 'P17', 'Q5705'] [{'concept': 'Q1048835'}, 'P17', 'Q1000'] [{'concept': 'Q1048835'}, 'P17', 'Q691']
SELECT DISTINCT ?l WHERE { VALUES ( ?a ) { ( resource:Q691 ) ( resource:Q1000 ) } . ?l property:P17 ?a }
Tona Gabon Oro Province Gulf Hela East Sepik Province Western Highlands Province Southern Highlands Province Sandaun Province Eastern Highlands Province National Capital District Western Province West New Britain Province Papua New Guinea East New Britain Morobe Province New Ireland Province Enga Province Manus Province Central Province Madang Province Jiwaka Province Chimbu Province Milne Bay Province
Gabon, Papua New Guinea and Tona are present in Catalonia, Gabon and Papua New Guinea
Gabon Papua New Guinea Tona
action union
action filter_type
action find_reverse
entity Gabon
relation country
type political territorial entity
action filter_type
action find_reverse
entity Papua New Guinea
relation country
type political territorial entity
action filter_type
action find_reverse
entity Catalonia
relation country
type political territorial entity
[{'concept': 'political territorial entity'}, 'country', 'Catalonia'] [{'concept': 'political territorial entity'}, 'country', 'Gabon'] [{'concept': 'political territorial entity'}, 'country', 'Papua New Guinea']
SELECT DISTINCT ?l WHERE { VALUES ( ?a ) { ( resource:Papua_New_Guinea ) ( resource:Gabon ) } . ?l property:country ?a }
[]
Clarification
Simple Question|Single Entity|Indirect
Q13853
P1313
Q12737077
USER
Which occupation is fulfilled by that political territory ?
(Q13853,P1313,c(Q12737077))
action filter_type
action find
entity Q13853
relation P1313
type Q12737077
['Q13853', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q13853 property:P1313 ?g . ?g rdf:type ontology:Q12737077 }
Tona
action filter_type
action find
entity Tona
relation office held by head of government
type occupation
['Tona', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Tona property:office_held_by_head_of_government ?g . ?g rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q1000
SYSTEM
Did you mean Gabon ?
Q1000 Q691 Q13853
(Q1000,P1313,c(Q12737077)) (Q691,P1313,c(Q12737077)) (Q13853,P1313,c(Q12737077))
[ANSWER]
['Q1000', 'P1313', {'concept': 'Q12737077'}] ['Q691', 'P1313', {'concept': 'Q12737077'}] ['Q13853', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q13853 property:P1313 ?g . ?g rdf:type ontology:Q12737077 }
Gabon Papua New Guinea Tona
Did you mean Gabon ?
Gabon
['Gabon', 'office held by head of government', {'concept': 'occupation'}] ['Papua New Guinea', 'office held by head of government', {'concept': 'occupation'}] ['Tona', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Tona property:office_held_by_head_of_government ?g . ?g rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
No, I meant Tona. Could you tell me the answer for that?
(Q13853,P1313,c(Q12737077))
Q13853
['Q13853', 'P1313', {'concept': 'Q12737077'}]
['Tona', 'office held by head of government', {'concept': 'occupation'}]
[]
Q26691139
SYSTEM
mayor of Tona
Q26691139
(Q13853,P1313,c(Q12737077))
action filter_type
action find
entity Q13853
relation P1313
type Q12737077
The [ANSWER] is fulfilled by that political territory
['Q13853', 'P1313', {'concept': 'Q12737077'}]
SELECT DISTINCT ?g WHERE { resource:Q13853 property:P1313 ?g . ?g rdf:type ontology:Q12737077 }
mayor of Tona
The mayor of Tona is fulfilled by that political territory
mayor of Tona
action filter_type
action find
entity Tona
relation office held by head of government
type occupation
['Tona', 'office held by head of government', {'concept': 'occupation'}]
SELECT DISTINCT ?g WHERE { resource:Tona property:office_held_by_head_of_government ?g . ?g rdf:type ontology:occupation }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1637015 Q492741
P47
Q1048835
USER
Which political territories are bordered by Vélez-Málaga or Cabredo ?
OR((Q492741,P47,c(Q1048835)), (Q1637015,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q492741
relation P47
action find
entity Q1637015
relation P47
type Q1048835
{'OR': [['Q492741', 'P47', {'concept': 'Q1048835'}], ['Q1637015', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?d ) { ( resource:Q492741 ) ( resource:Q1637015 ) } . ?d property:P47 ?r } . ?r rdf:type ontology:Q1048835 }
Cabredo Vélez-Málaga
action filter_type
action union
action find
entity Vélez-Málaga
relation shares border with
action find
entity Cabredo
relation shares border with
type political territorial entity
{'OR': [['Vélez-Málaga', 'shares border with', {'concept': 'political territorial entity'}], ['Cabredo', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?d ) { ( resource:Vélez-Málaga ) ( resource:Cabredo ) } . ?d property:shares_border_with ?r } . ?r rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q644914 Q1624129 Q1248474 Q13150 Q1368822 Q1751480 Q1647744 Q1630429 Q1630141 Q926410
SYSTEM
Some of them are Marañón, Benamocarra, Rincón de la Victoria, Torrox, Bernedo, Genevilla, Viñuela, Iznate, Sayalonga, Algarrobo
Q1630462 Q1624129 Q970721 Q644914 Q13150 Q1635769 Q1647744 Q926410 Q1751480 Q1630141 Q1368822 Q1647730 Q1630429 Q1248474 Q1641642
OR((Q492741,P47,c(Q1048835)), (Q1637015,P47,c(Q1048835)))
action filter_type
action union
action find
entity Q492741
relation P47
action find
entity Q1637015
relation P47
type Q1048835
[ANSWERS] are bordered by Vélez-Málaga or Cabredo
{'OR': [['Q492741', 'P47', {'concept': 'Q1048835'}], ['Q1637015', 'P47', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?d ) { ( resource:Q492741 ) ( resource:Q1637015 ) } . ?d property:P47 ?r } . ?r rdf:type ontology:Q1048835 }
Macharaviaya Benamocarra Benamargosa Marañón Torrox Aguilar de Codés Viñuela Algarrobo Genevilla Sayalonga Bernedo Almáchar Iznate Rincón de la Victoria Arenas
Marañón, Benamocarra, Rincón de la Victoria, Torrox, Bernedo, Genevilla, Viñuela, Iznate, Sayalonga and Algarrobo are bordered by Vélez-Málaga or Cabredo
Marañón Benamocarra Rincón de la Victoria Torrox Bernedo Genevilla Viñuela Iznate Sayalonga Algarrobo
action filter_type
action union
action find
entity Vélez-Málaga
relation shares border with
action find
entity Cabredo
relation shares border with
type political territorial entity
{'OR': [['Vélez-Málaga', 'shares border with', {'concept': 'political territorial entity'}], ['Cabredo', 'shares border with', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?r WHERE { { VALUES ( ?d ) { ( resource:Vélez-Málaga ) ( resource:Cabredo ) } . ?d property:shares_border_with ?r } . ?r rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q408
P122
Q1307214 Q151885 Q1048835
USER
Which political territories have lesser number of forms of government and concepts as the form of government than Australia ?
(c(Q1048835),P122,c(Q1307214)|c(Q151885))
action less
action union
action find_tuple_counts
relation P122
type Q1048835
type Q1307214
action find_tuple_counts
relation P122
type Q1048835
type Q151885
action count
action filter_multi_types
action find
entity Q408
relation P122
type Q1307214
type Q151885
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) ?f WHERE { { ?f property:P122 ?k . ?f rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q151885 } UNION { ?f property:P122 ?k . ?f rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q1307214 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { resource:Q408 property:P122 ?o . { ?o rdf:type ?s . VALUES ( ?s ) { ( ontology:Q1307214 ) ( ontology:Q151885 ) } } } } . FILTER ( ?m < ?l ) }
Australia
action less
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type form of government
action find_tuple_counts
relation basic form of government
type political territorial entity
type concept
action count
action filter_multi_types
action find
entity Australia
relation basic form of government
type form of government
type concept
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'concept'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) ?f WHERE { { ?f property:basic_form_of_government ?k . ?f rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:concept } UNION { ?f property:basic_form_of_government ?k . ?f rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:form_of_government } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { resource:Australia property:basic_form_of_government ?o . { ?o rdf:type ?s . VALUES ( ?s ) { ( ontology:form_of_government ) ( ontology:concept ) } } } } . FILTER ( ?m < ?l ) }
[]
form of government concept political territorial entity
Q183 Q35 Q40
SYSTEM
Germany, Denmark, Austria
Q183 Q601252 Q193619 Q1059046 Q763 Q664 Q641138 Q785 Q35 Q38610 Q79965 Q223793 Q2594990 Q757 Q468378 Q40 Q151938 Q31747 Q129286
(c(Q1048835),P122,c(Q1307214)|c(Q151885))
action less
action union
action find_tuple_counts
relation P122
type Q1048835
type Q1307214
action find_tuple_counts
relation P122
type Q1048835
type Q151885
action count
action filter_multi_types
action find
entity Q408
relation P122
type Q1307214
type Q151885
[ANSWERS] have lesser number of forms of government and concepts as the form of government than Australia
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) ?f WHERE { { ?f property:P122 ?k . ?f rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q151885 } UNION { ?f property:P122 ?k . ?f rdf:type ontology:Q1048835 . ?k rdf:type ontology:Q1307214 } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { resource:Q408 property:P122 ?o . { ?o rdf:type ?s . VALUES ( ?s ) { ( ontology:Q1307214 ) ( ontology:Q151885 ) } } } } . FILTER ( ?m < ?l ) }
Germany Banovina of Croatia Union of South Africa Merkit people Saint Kitts and Nevis New Zealand Duchy of Cleves Jersey Denmark Dominion of Newfoundland Golden Horde Kingdom of Etruria Dominion of New Zealand Saint Vincent and the Grenadines County of Hoya Austria Neutral Moresnet Irish Free State British Raj
Germany, Denmark and Austria have lesser number of forms of government and concepts as the form of government than Australia
Germany Denmark Austria
action less
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type form of government
action find_tuple_counts
relation basic form of government
type political territorial entity
type concept
action count
action filter_multi_types
action find
entity Australia
relation basic form of government
type form of government
type concept
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'concept'}]]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ( COUNT ( ?k ) AS ?m ) ?f WHERE { { ?f property:basic_form_of_government ?k . ?f rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:concept } UNION { ?f property:basic_form_of_government ?k . ?f rdf:type ontology:political_territorial_entity . ?k rdf:type ontology:form_of_government } } GROUP BY ?f } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?l ) WHERE { resource:Australia property:basic_form_of_government ?o . { ?o rdf:type ?s . VALUES ( ?s ) { ( ontology:form_of_government ) ( ontology:concept ) } } } } . FILTER ( ?m < ?l ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1250464
P122
Q1307214 Q151885 Q1048835
USER
And also tell me about realm?
(c(Q1048835),P122,c(Q1307214)|c(Q151885))
action less
action union
action find_tuple_counts
relation P122
type Q1048835
type Q1307214
action find_tuple_counts
relation P122
type Q1048835
type Q151885
action count
action filter_multi_types
action find
entity Q1250464
relation P122
type Q1307214
type Q151885
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) ?v WHERE { { ?v property:P122 ?n . ?v rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q1307214 } UNION { ?v property:P122 ?n . ?n rdf:type ontology:Q151885 . ?v rdf:type ontology:Q1048835 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { resource:Q1250464 property:P122 ?y . { VALUES ( ?m ) { ( ontology:Q1307214 ) ( ontology:Q151885 ) } . ?y rdf:type ?m } } } . FILTER ( ?a < ?s ) }
realm
action less
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type form of government
action find_tuple_counts
relation basic form of government
type political territorial entity
type concept
action count
action filter_multi_types
action find
entity realm
relation basic form of government
type form of government
type concept
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'concept'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) ?v WHERE { { ?v property:basic_form_of_government ?n . ?v rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:form_of_government } UNION { ?v property:basic_form_of_government ?n . ?n rdf:type ontology:concept . ?v rdf:type ontology:political_territorial_entity } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { resource:realm property:basic_form_of_government ?y . { VALUES ( ?m ) { ( ontology:form_of_government ) ( ontology:concept ) } . ?y rdf:type ?m } } } . FILTER ( ?a < ?s ) }
[]
form of government concept political territorial entity
Q183 Q35 Q40
SYSTEM
Germany, Denmark, Austria
Q183 Q601252 Q193619 Q1059046 Q763 Q664 Q641138 Q785 Q35 Q38610 Q79965 Q223793 Q2594990 Q757 Q468378 Q40 Q151938 Q31747 Q129286
(c(Q1048835),P122,c(Q1307214)|c(Q151885))
action less
action union
action find_tuple_counts
relation P122
type Q1048835
type Q1307214
action find_tuple_counts
relation P122
type Q1048835
type Q151885
action count
action filter_multi_types
action find
entity Q1250464
relation P122
type Q1307214
type Q151885
[ANSWERS]
[{'concept': 'Q1048835'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) ?v WHERE { { ?v property:P122 ?n . ?v rdf:type ontology:Q1048835 . ?n rdf:type ontology:Q1307214 } UNION { ?v property:P122 ?n . ?n rdf:type ontology:Q151885 . ?v rdf:type ontology:Q1048835 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { resource:Q1250464 property:P122 ?y . { VALUES ( ?m ) { ( ontology:Q1307214 ) ( ontology:Q151885 ) } . ?y rdf:type ?m } } } . FILTER ( ?a < ?s ) }
Germany Banovina of Croatia Union of South Africa Merkit people Saint Kitts and Nevis New Zealand Duchy of Cleves Jersey Denmark Dominion of Newfoundland Golden Horde Kingdom of Etruria Dominion of New Zealand Saint Vincent and the Grenadines County of Hoya Austria Neutral Moresnet Irish Free State British Raj
Germany Denmark Austria
action less
action union
action find_tuple_counts
relation basic form of government
type political territorial entity
type form of government
action find_tuple_counts
relation basic form of government
type political territorial entity
type concept
action count
action filter_multi_types
action find
entity realm
relation basic form of government
type form of government
type concept
[{'concept': 'political territorial entity'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'concept'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?a ) ?v WHERE { { ?v property:basic_form_of_government ?n . ?v rdf:type ontology:political_territorial_entity . ?n rdf:type ontology:form_of_government } UNION { ?v property:basic_form_of_government ?n . ?n rdf:type ontology:concept . ?v rdf:type ontology:political_territorial_entity } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?s ) WHERE { resource:realm property:basic_form_of_government ?y . { VALUES ( ?m ) { ( ontology:form_of_government ) ( ontology:concept ) } . ?y rdf:type ?m } } } . FILTER ( ?a < ?s ) }
[]