Simple Question (Direct)
Simple Question
Q2856805
P27
Q15617994
USER
Which administrative territory is Antoine Wauters an inhabitant of ?
(Q2856805,P27,c(Q15617994))
action filter_type
action find
entity Q2856805
relation P27
type Q15617994
['Q2856805', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q2856805 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Antoine Wauters
action filter_type
action find
entity Antoine Wauters
relation country of citizenship
type designation for an administrative territorial entity
['Antoine Wauters', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Antoine_Wauters property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q31
SYSTEM
Belgium
Q31
(Q2856805,P27,c(Q15617994))
action filter_type
action find
entity Q2856805
relation P27
type Q15617994
[ANSWER] is Antoine Wauters an inhabitant of
['Q2856805', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { resource:Q2856805 property:P27 ?j . ?j rdf:type ontology:Q15617994 }
Belgium
Belgium is Antoine Wauters an inhabitant of
Belgium
action filter_type
action find
entity Antoine Wauters
relation country of citizenship
type designation for an administrative territorial entity
['Antoine Wauters', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { resource:Antoine_Wauters property:country_of_citizenship ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q31
P85
Q484692
USER
What is the national anthem of that administrative territory ?
(Q31,P85,c(Q484692))
action filter_type
action find
entity Q31
relation P85
type Q484692
['Q31', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?i WHERE { resource:Q31 property:P85 ?i . ?i rdf:type ontology:Q484692 }
Belgium
action filter_type
action find
entity Belgium
relation anthem
type hymn
['Belgium', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?i WHERE { resource:Belgium property:anthem ?i . ?i rdf:type ontology:hymn }
[]
hymn
Q161539
SYSTEM
The Brabançonne
Q161539
(Q31,P85,c(Q484692))
action filter_type
action find
entity Q31
relation P85
type Q484692
The national anthem of that administrative territory is [ANSWER]
['Q31', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?i WHERE { resource:Q31 property:P85 ?i . ?i rdf:type ontology:Q484692 }
The Brabançonne
The national anthem of that administrative territory is The Brabançonne
The Brabançonne
action filter_type
action find
entity Belgium
relation anthem
type hymn
['Belgium', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?i WHERE { resource:Belgium property:anthem ?i . ?i rdf:type ontology:hymn }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation|Incomplete
Q207162 Q31
P85
Q484692
USER
Or Bourbon Restoration?
OR((Q31,P85,c(Q484692)), (Q207162,P85,c(Q484692)))
action filter_type
action union
action find
entity Q31
relation P85
action find
entity Q207162
relation P85
type Q484692
{'OR': [['Q31', 'P85', {'concept': 'Q484692'}], ['Q207162', 'P85', {'concept': 'Q484692'}]]}
SELECT DISTINCT ?a WHERE { { ?f property:P85 ?a . VALUES ( ?f ) { ( resource:Q31 ) ( resource:Q207162 ) } } . ?a rdf:type ontology:Q484692 }
Bourbon Restoration Belgium
action filter_type
action union
action find
entity Belgium
relation anthem
action find
entity Bourbon Restoration
relation anthem
type hymn
{'OR': [['Belgium', 'anthem', {'concept': 'hymn'}], ['Bourbon Restoration', 'anthem', {'concept': 'hymn'}]]}
SELECT DISTINCT ?a WHERE { { ?f property:anthem ?a . VALUES ( ?f ) { ( resource:Belgium ) ( resource:Bourbon_Restoration ) } } . ?a rdf:type ontology:hymn }
[]
hymn
Q161539 Q1051855
SYSTEM
The Brabançonne, Le Retour des Princes français à Paris
Q161539 Q1051855
OR((Q31,P85,c(Q484692)), (Q207162,P85,c(Q484692)))
action filter_type
action union
action find
entity Q31
relation P85
action find
entity Q207162
relation P85
type Q484692
[ANSWERS]
{'OR': [['Q31', 'P85', {'concept': 'Q484692'}], ['Q207162', 'P85', {'concept': 'Q484692'}]]}
SELECT DISTINCT ?a WHERE { { ?f property:P85 ?a . VALUES ( ?f ) { ( resource:Q31 ) ( resource:Q207162 ) } } . ?a rdf:type ontology:Q484692 }
The Brabançonne Le Retour des Princes français à Paris
The Brabançonne Le Retour des Princes français à Paris
action filter_type
action union
action find
entity Belgium
relation anthem
action find
entity Bourbon Restoration
relation anthem
type hymn
{'OR': [['Belgium', 'anthem', {'concept': 'hymn'}], ['Bourbon Restoration', 'anthem', {'concept': 'hymn'}]]}
SELECT DISTINCT ?a WHERE { { ?f property:anthem ?a . VALUES ( ?f ) { ( resource:Belgium ) ( resource:Bourbon_Restoration ) } } . ?a rdf:type ontology:hymn }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q31
P36
Q56061
USER
Which administrative territory is called the capital of Belgium ?
(Q31,P36,c(Q56061))
action filter_type
action find
entity Q31
relation P36
type Q56061
['Q31', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q56061 . resource:Q31 property:P36 ?t }
Belgium
action filter_type
action find
entity Belgium
relation capital
type administrative territorial entity
['Belgium', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:administrative_territorial_entity . resource:Belgium property:capital ?t }
[]
administrative territorial entity
Q239
SYSTEM
Brussels
Q239
(Q31,P36,c(Q56061))
action filter_type
action find
entity Q31
relation P36
type Q56061
Be [ANSWER] is called the capital of Belgium
['Q31', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q56061 . resource:Q31 property:P36 ?t }
Brussels
Be Brussels is called the capital of Belgium
Brussels
action filter_type
action find
entity Belgium
relation capital
type administrative territorial entity
['Belgium', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:administrative_territorial_entity . resource:Belgium property:capital ?t }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1424427
Q56061
USER
And what about Punata Province?
(Q1424427,P36,c(Q56061))
action filter_type
action find
entity Q1424427
relation P36
type Q56061
['Q1424427', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q56061 . resource:Q1424427 property:P36 ?m }
Punata Province
action filter_type
action find
entity Punata Province
relation capital
type administrative territorial entity
['Punata Province', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Punata_Province property:capital ?m }
[]
administrative territorial entity
Q1026219
SYSTEM
Punata
Q1026219
(Q1424427,P36,c(Q56061))
action filter_type
action find
entity Q1424427
relation P36
type Q56061
[ANSWER]
['Q1424427', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q56061 . resource:Q1424427 property:P36 ?m }
Punata
Punata
action filter_type
action find
entity Punata Province
relation capital
type administrative territorial entity
['Punata Province', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:administrative_territorial_entity . resource:Punata_Province property:capital ?m }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P85
Q484692 Q1048835 Q7275
USER
How many hymns are the national anthems of atmost 3 political territories or states ?
(c(Q1048835)|c(Q7275),P85,c(Q484692))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P85
type Q484692
type Q1048835
action find_reverse_tuple_counts
relation P85
type Q484692
type Q7275
value 3
[[{'concept': 'Q1048835'}, {'concept': 'Q7275'}], 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) ?m WHERE { { ?v property:P85 ?m . ?m rdf:type ontology:Q484692 . ?v rdf:type ontology:Q1048835 } UNION { ?m rdf:type ontology:Q484692 . ?v rdf:type ontology:Q7275 . ?v property:P85 ?m } } GROUP BY ?m } . FILTER ( ?g <= 3 ) }
action count
action atmost
action union
action find_reverse_tuple_counts
relation anthem
type hymn
type political territorial entity
action find_reverse_tuple_counts
relation anthem
type hymn
type state
value 3
[[{'concept': 'political territorial entity'}, {'concept': 'state'}], 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) ?m WHERE { { ?v property:anthem ?m . ?m rdf:type ontology:hymn . ?v rdf:type ontology:political_territorial_entity } UNION { ?m rdf:type ontology:hymn . ?v rdf:type ontology:state . ?v property:anthem ?m } } GROUP BY ?m } . FILTER ( ?g <= 3 ) }
[]
hymn political territorial entity state
SYSTEM
280
Q209973 Q311367 Q200742 Q1193820 Q237878 Q192792 Q1334863 Q602974 Q660117 Q223537 Q190226 Q202137 Q336345 Q1330359 Q171602 Q176665 Q142260 Q147367 Q579160 Q179078 Q161744 Q4384 Q1199595 Q170601 Q1063994 Q752655 Q876594 Q126658 Q202635 Q699190 Q120143 Q2028103 Q1150982 Q648596 Q854853 Q1138705 Q185128 Q628682 Q833966 Q1378214 Q160036 Q1190532 Q213267 Q874542 Q179968 Q966075 Q756708 Q602433 Q1067084 Q162483 Q754928 Q495351 Q217535 Q549704 Q623034 Q2666285 Q156914 Q623039 Q1144009 Q471849 Q185190 Q169201 Q336299 Q48147 Q682679 Q581991 Q336291 Q403336 Q204643 Q1192863 Q273260 Q344452 Q4138464 Q242718 Q682613 Q4138462 Q271864 Q251918 Q690016 Q876575 Q161049 Q271052 Q1066716 Q505717 Q44696 Q273244 Q1146473 Q188662 Q721190 Q272751 Q631618 Q1064182 Q1740575 Q1928655 Q214449 Q503135 Q43978 Q133261 Q75543 Q1190343 Q211047 Q168731 Q908519 Q1377327 Q45788 Q580374 Q373510 Q1036517 Q1640665 Q4484804 Q324342 Q464551 Q640136 Q1209767 Q157999 Q1136402 Q1064003 Q233961 Q548242 Q1144355 Q1142935 Q212973 Q857605 Q309468 Q208153 Q949638 Q11993 Q905016 Q1051855 Q243996 Q15402214 Q745806 Q234655 Q81534 Q753873 Q1192911 Q211130 Q184540 Q1187971 Q327108 Q1191408 Q146502 Q1138695 Q665559 Q570327 Q212725 Q484161 Q237591 Q235316 Q483968 Q326886 Q156136 Q235441 Q131713 Q752650 Q1074993 Q327746 Q266593 Q182115 Q161539 Q503118 Q336306 Q154035 Q483590 Q26693 Q371559 Q716364 Q2641577 Q199739 Q230228 Q200079 Q273106 Q11178664 Q858680 Q463986 Q320708 Q172495 Q169215 Q231910 Q905777 Q130940 Q634111 Q271585 Q263089 Q1093864 Q242744 Q231725 Q745219 Q771255 Q215077 Q1072837 Q628417 Q646622 Q1522013 Q842503 Q182268 Q755676 Q413650 Q1060556 Q217987 Q463375 Q164259 Q459013 Q747890 Q221708 Q273110 Q336273 Q30562 Q166362 Q1147730 Q1061851 Q857953 Q845284 Q992460 Q849863 Q489607 Q704760 Q222294 Q1369729 Q491552 Q1346354 Q849850 Q3696299 Q202166 Q690008 Q423807 Q1148469 Q2058180 Q213733 Q110159 Q203048 Q1225991 Q238826 Q790300 Q1045701 Q845207 Q866223 Q170582 Q133198 Q206429 Q1353616 Q1075941 Q256615 Q1050025 Q283407 Q1209589 Q93359 Q684643 Q2080743 Q467988 Q3877793 Q214459 Q166944 Q45861 Q110193 Q165747 Q2666281 Q233391 Q1191090 Q242723 Q191802 Q3803622 Q207868 Q3347824 Q862755 Q1317821 Q1180760 Q160672 Q38878 Q1376659 Q182536 Q1133287 Q227866 Q209951 Q1149579 Q505728 Q3113768 Q858826 Q1063992 Q626220
(c(Q1048835)|c(Q7275),P85,c(Q484692))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P85
type Q484692
type Q1048835
action find_reverse_tuple_counts
relation P85
type Q484692
type Q7275
value 3
[ANSWER]
[[{'concept': 'Q1048835'}, {'concept': 'Q7275'}], 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) ?m WHERE { { ?v property:P85 ?m . ?m rdf:type ontology:Q484692 . ?v rdf:type ontology:Q1048835 } UNION { ?m rdf:type ontology:Q484692 . ?v rdf:type ontology:Q7275 . ?v property:P85 ?m } } GROUP BY ?m } . FILTER ( ?g <= 3 ) }
Majulah Singapura National Anthem of Kuwait Mexican National Anthem National Anthem of the Udmurt Republic Arise, O Compatriots L-Innu Malti Imperial Anthem of Iran Belau rekid Gaumii salaam Nunarput utoqqarsuanngoravit Inno e Marcia Pontificale God Defend New Zealand Land of the Free Tooruktug Dolgay Tangdym Bilady, Bilady, Bilady Hymn to Liberty Indonesia Raya Hey, Slavs Europe Ko e Iki he Lagi Shche ne vmerla Ukraina Anthem of the Byelorussian Soviet Socialist Republic National Anthem of the Republic of Tatarstan Advance Australia Fair National Anthem of the Republic of North Ossetia–Alania Hail Grenada De Vlaamse Leeuw Land der Berge, Land am Strome Ee Mungu Nguvu Yetu Isle of Man National Anthem National Anthem of Uzbekistan National Anthem of the Republic of Dagestan Yā Banīy As-Saharā Negaraku Jedna si jedina Anthem of the Republic of Adygea Denes nad Makedonija O Arise, All You Sons The Song to the Auspicious Cloud Sarnia Cherie Hen Wlad Fy Nhadau Anthem of the Lithuanian Soviet Socialist Republic Qaumi Taranah Walla Zaman Ya Selahy Afghan National Anthem state anthem of Chuvashia Tuvalu mo te Atua Independência total Anthem of the Latvian Soviet Socialist Republic Maamme Meniñ Qazaqstanım Grönnens Laid La Nigérienne High We Exalt Thee, Realm of the Free Pheng Xat Lao National Anthem of the Altai Republic Dievs, svētī Latviju! Salve, Oh Patria Anthem of the Republic of Buryatia Noble patria, tu hermosa bandera Bože Pravde Zdrobite cătuşe Pincez Tous vos Koras, Frappez les Balafons Auferstanden aus Ruinen Humat Al Hima National Anthem of the Mari El Republic Inno Nazionale della Repubblica Aiaaira Jamaica, Land We Love Imperial anthems of the Ottoman Empire God Bless Our Homeland Ghana İstiklâl Marşı National Anthem of Karachay-Cherkessia L'Abidjanaise Pátria Amada National Anthem of Ingushetia National anthem of Mongolia National Anthem of the Soviet Union National Anthem of Bolivia Sons and Daughters of Saint Lucia A Portuguesa Ålänningens sång Anthem of Transnistria National Anthem of Barbados The Star-Spangled Banner For The Gambia Our Homeland Anthem of the Ukrainian Soviet Socialist Republic Državna himna Bosne i Hercegovine Azat u ankakh Artsakh Yumi, Yumi Nokor Reach Ubavoj nam Crnoj Gori Worker's Marseillaise Preußenlied Kaba Ma Kyei Djibouti (anthem) Tautiška giesmė Du gamla, du fria Anthem of the Georgian Soviet Socialist Republic Anthem of the Moldavian Soviet Socialist Republic National Anthem of the Islamic Republic of Iran Himni i Flamurit Kong Christian stod ved højen mast Anthem of the Uzbek Soviet Socialist Republic Himnusz Nkulunkulu Mnikati wetibusiso temaSwati March Forward, Dear Mother Ethiopia Land of the Rising Sun Hymne National Voltaïque Qolobaa Calankeed All Hail, Liberia, Hail! Une Seule Nuit Ardulfurataini Watan Pitcairn Anthem Oj, svijetla majska zoro Rise, O Voices of Rhodesia Moja Republika Namibia, Land of the Brave Nahnu Jund Allah Jund Al-watan Dideba Gong Jin'ou Tú alfagra land mítt Ertra, Ertra, Ertra Humat ad-Diyar Gloria al Bravo Pueblo National anthem of the Orange Free State Anthem of Europe Wien Neêrlands Bloed Le Retour des Princes français à Paris Pour l'Afrique et pour toi National anthem of People's Republic of Kampuchea Sri Lanka Matha Bahrainona Kimi Ga Yo Himno Istmeño Anthem of the Republic of Karelia God Bless Fiji Deșteaptă-te, române! National anthem of the Transvaal God zij met ons Suriname Anthem of the Karelo-Finnish Soviet Socialist Republic Lijepa naša domovino Tera di Solo y suave biento Hawaiʻi Ponoʻī Patriots of Micronesia Lupang Hinirang National Anthem of Chile La Bayamesa National Anthem of Saudi Arabia Azərbaycan marşı Burundi Bwacu March of the Volunteers Druk tsendhen Wilhelmus Esta É a Nossa Pátria Bem Amada Himno di Kòrsou Pátria Himno Nacional de Guatemala Mila Rodino The Brabançonne Rwanda Nziza National Anthem of Uruguay Mungu ibariki Afrika Kde domov můj? National anthem of Turkmenistan Sayaun Thunga Phool Ka Aruba Dushi Tera Dap Prampi Mesa Chokchey Amar Shonar Bangla Kassaman Tavisupleba Ry Tanindrazanay malala ô! Czechoslovak anthem Dear Land of Guyana, of Rivers and Plains Lesotho Fatse La Bontata Rona La Congolaise Argentine National Anthem Zdravljica Aegukka Hino da Independência Marcha Real Nashid as-Salaam as-Sultani Els Segadors Für Danzig Inno al Re Limba noastră National anthem of South Africa Salve a ti, Nicaragua Ey Reqîb Mulungu dalitsa Malaŵi First Iranian national anthem National Anthem of Zimbabwe Stand Ye Guamanians Gi Talo Gi Halom Tasi National Anthem of Honduras Land of Hope and Glory Ko e fasi 'o e tu'i 'o e 'Otu Tonga National Anthem of the Kyrgyz Republic Anthem of the Azerbaijan Soviet Socialist Republic Mawtini Stand and Sing of Zambia, Proud and Free Mer Hayrenik Soomaaliyeey toosoo Liberté Fatshe leno la rona L'Aube Nouvelle Motherland Gott erhalte Franz den Kaiser Mu isamaa, mu õnn ja rõõm Te Atua Mou E The Banner of Freedom God Save Our Solomon Islands National anthem of Mauritania Himno de Riego Forged from the Love of Liberty And did those feet in ancient time National Anthem of Manchukuo Debout Congolais Hymn of Crimea Allah Peliharakan Sultan La Zaïroise Koste Seselwa Deg Tegh Fateh Ons Heemecht Udzima wa ya Masiwa Ishy Bilady Nkosi Sikelel' iAfrika Patrioticheskaya Pesnya La Tchadienne Cântico da Liberdade National anthem of Yemen National Anthem of Russia Cherifian Anthem Ave Crux Alba Teirake Kaini Kiribati Fida'i National Anthem of the Dominican Republic Lofsöngur Ja, vi elsker dette landet O Cameroon, Cradle of Our Forefathers Thanh Niên Hành Khúc La Borinqueña Bayernhymne O Land of Beauty! The Royal Anthem of Jordan Virgin Islands March O Canada Isle of Beauty, Isle of Splendour La bandera blanca y verde La Renaissance Noi vogliam Dio, Vergine Maria La Dessalinienne Nad Tatrou sa blýska Libya, Libya, Libya Oh Uganda, Land of Beauty Der er et yndigt land National Anthem of the Sakha Republic Himno Nacional de la República de Colombia Anthem of the Tajik Soviet Socialist Republic La Concorde Surudi Milli Khalmg Tanghchin chastr Thai National Anthem O Sweet Saint Martin's Land Salut à toi, pays de nos aïeux National Anthem of the Kingdom of Yugoslavia De Alde Friezen Amhrán na bhFiann National Anthem of the Republic of Mordovia National Anthem of the Republic of Bashkortostan Swiss Psalm Samo ku waar Angola Avante Nauru Bwiema Giải phóng miền Nam National Anthem of El Salvador Đăng đàn cung ఫరెవర్ మార్షల్ ఐలాండ్స్ National Anthem of South Ossetia national anthem of Paraguay
280
action count
action atmost
action union
action find_reverse_tuple_counts
relation anthem
type hymn
type political territorial entity
action find_reverse_tuple_counts
relation anthem
type hymn
type state
value 3
[[{'concept': 'political territorial entity'}, {'concept': 'state'}], 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?e ) WHERE { { SELECT DISTINCT ( COUNT ( ?v ) AS ?g ) ?m WHERE { { ?v property:anthem ?m . ?m rdf:type ontology:hymn . ?v rdf:type ontology:political_territorial_entity } UNION { ?m rdf:type ontology:hymn . ?v rdf:type ontology:state . ?v property:anthem ?m } } GROUP BY ?m } . FILTER ( ?g <= 3 ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P122
Q4164871 Q15617994 Q15617994
USER
Which administrative territories have min number of positions or administrative territories as government ?
(c(Q15617994),P122,c(Q4164871)|c(Q15617994))
action argmin
action union
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
action find_tuple_counts
relation P122
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q4164871'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?y ) { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?t ) WHERE { ?x rdf:type ?r . VALUES ( ?r ) { ( ontology:Q4164871 ) ( ontology:Q15617994 ) } } GROUP BY ?g } } . { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?s ) WHERE { { ?b property:P122 ?e . ?b rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q4164871 } UNION { ?b rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 . ?b property:P122 ?e } } GROUP BY ?b } . FILTER ( ?s = ?y ) }
action argmin
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'position'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?y ) { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?t ) WHERE { ?x rdf:type ?r . VALUES ( ?r ) { ( ontology:position ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?g } } . { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?s ) WHERE { { ?b property:basic_form_of_government ?e . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:position } UNION { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:basic_form_of_government ?e } } GROUP BY ?b } . FILTER ( ?s = ?y ) }
[]
position designation for an administrative territorial entity designation for an administrative territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q702 Q804 Q154547 Q801 Q805 Q419 Q668 Q414 Q142 Q165116 Q145 Q265 Q1130767 Q833 Q711 Q717 Q837 Q208500 Q541991 Q399 Q258 Q45 Q159 Q43 Q155 Q796 Q794 Q884 Q958 Q315667 Q158290 Q153136 Q33 Q32 Q31 Q30 Q37 Q34 Q1133252 Q39 Q38 Q423 Q953 Q29999 Q153091 Q280312 Q1130957 Q236 Q230 Q232 Q238 Q20 Q1045 Q27 Q28 Q29 Q189 Q843 Q184 Q876826 Q347 Q3462133 Q227 Q225 Q224 Q96 Q228 Q17 Q1989 Q902 Q725731 Q1033 Q115 Q754 Q212 Q213 Q215 Q917 Q970 Q760 Q574 Q694594 Q1132344 Q77 Q199688 Q878 Q948 Q811 Q1011 Q1013 Q1049
(c(Q15617994),P122,c(Q4164871)|c(Q15617994))
action argmin
action union
action find_tuple_counts
relation P122
type Q15617994
type Q4164871
action find_tuple_counts
relation P122
type Q15617994
type Q15617994
[ANSWERS] have min number of positions or administrative territories as government
[{'concept': 'Q15617994'}, 'P122', [{'concept': 'Q4164871'}, {'concept': 'Q15617994'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?y ) { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?t ) WHERE { ?x rdf:type ?r . VALUES ( ?r ) { ( ontology:Q4164871 ) ( ontology:Q15617994 ) } } GROUP BY ?g } } . { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?s ) WHERE { { ?b property:P122 ?e . ?b rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q4164871 } UNION { ?b rdf:type ontology:Q15617994 . ?e rdf:type ontology:Q15617994 . ?b property:P122 ?e } } GROUP BY ?b } . FILTER ( ?s = ?y ) }
Federated States of Micronesia Panama duchy Israel Yemen Peru India Argentina France grand duchy United Kingdom Uzbekistan Bear Creek Village Malaysia Mongolia Venezuela Nepal principality Hummelfeld Armenia South Africa Portugal Russia Turkey Brazil Iraq Iran South Korea South Sudan Saxe-Weimar Duchy of Lucca Habsburg Empire Finland Luxembourg Belgium United States of America Lithuania Sweden Conyngham Switzerland Italy North Korea Zambia Kingdom of the Netherlands Duchy of Prussia Principality of Lüneburg Courtdale Montenegro Georgia Kazakhstan San Marino Norway Somalia Ireland Hungary Spain Iceland Pakistan Belarus Ellwangen Abbey Liechtenstein Saxe-Coburg and Gotha Azerbaijan Bosnia and Herzegovina Croatia Mexico Andorra Japan Saskatchewan Bangladesh Ashley, Pennsylvania Nigeria Ethiopia Trinidad and Tobago Ukraine Czech Republic Slovenia Bhutan Comoros Saint Lucia East Timor Bremen-Verden Avoca Uruguay Almohad United Arab Emirates Tunisia Nicaragua Cape Verde Lesotho Sudan
Italy, Brazil and United States of America have min number of positions or administrative territories as government
Italy Brazil United States of America
action argmin
action union
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type position
action find_tuple_counts
relation basic form of government
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'basic form of government', [{'concept': 'position'}, {'concept': 'designation for an administrative territorial entity'}]]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?y ) { SELECT DISTINCT ?g ( COUNT ( ?x ) AS ?t ) WHERE { ?x rdf:type ?r . VALUES ( ?r ) { ( ontology:position ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?g } } . { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?s ) WHERE { { ?b property:basic_form_of_government ?e . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:position } UNION { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . ?b property:basic_form_of_government ?e } } GROUP BY ?b } . FILTER ( ?s = ?y ) }
[]