Simple Question (Direct)
Simple Question
Q5725696
P937
Q56061
USER
What is the location where Henry McGhee worked ?
(Q5725696,P937,c(Q56061))
action filter_type
action find
entity Q5725696
relation P937
type Q56061
['Q5725696', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q56061 . resource:Q5725696 property:P937 ?g }
Henry McGhee
action filter_type
action find
entity Henry McGhee
relation work location
type administrative territorial entity
['Henry McGhee', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:administrative_territorial_entity . resource:Henry_McGhee property:work_location ?g }
[]
administrative territorial entity
Q84
SYSTEM
London
Q84
(Q5725696,P937,c(Q56061))
action filter_type
action find
entity Q5725696
relation P937
type Q56061
The location Henry McGhee worked is in [ANSWER]
['Q5725696', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q56061 . resource:Q5725696 property:P937 ?g }
London
The location Henry McGhee worked is in London
London
action filter_type
action find
entity Henry McGhee
relation work location
type administrative territorial entity
['Henry McGhee', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:administrative_territorial_entity . resource:Henry_McGhee property:work_location ?g }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q84
P1376
Q7275
USER
Which states have that administrative territory have their center of administration ?
(Q84,P1376,c(Q7275))
action filter_type
action find
entity Q84
relation P1376
type Q7275
['Q84', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?j WHERE { resource:Q84 property:P1376 ?j . ?j rdf:type ontology:Q7275 }
London
action filter_type
action find
entity London
relation capital of
type state
['London', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?j WHERE { resource:London property:capital_of ?j . ?j rdf:type ontology:state }
[]
state
Q179876 Q174193 Q161885
SYSTEM
Kingdom of England, United Kingdom of Great Britain and Ireland, Kingdom of Great Britain
Q248452 Q161885 Q174193 Q110888 Q179876 Q330362
(Q84,P1376,c(Q7275))
action filter_type
action find
entity Q84
relation P1376
type Q7275
[ANSWERS] have that administrative territory have their center of administration
['Q84', 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?j WHERE { resource:Q84 property:P1376 ?j . ?j rdf:type ontology:Q7275 }
British North America Kingdom of Great Britain United Kingdom of Great Britain and Ireland Kingdom of Essex Kingdom of England Commonwealth of England
Kingdom of England, United Kingdom of Great Britain and Ireland and Kingdom of Great Britain have that administrative territory have their center of administration
Kingdom of England United Kingdom of Great Britain and Ireland Kingdom of Great Britain
action filter_type
action find
entity London
relation capital of
type state
['London', 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?j WHERE { resource:London property:capital_of ?j . ?j rdf:type ontology:state }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P194
Q1752346 Q11204 Q7275
USER
Which states have max number of assemblies or legislatures as their legislative body ?
(c(Q7275),P194,c(Q1752346)|c(Q11204))
action argmax
action union
action find_tuple_counts
relation P194
type Q7275
type Q1752346
action find_tuple_counts
relation P194
type Q7275
type Q11204
[{'concept': 'Q7275'}, 'P194', [{'concept': 'Q1752346'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) ?z WHERE { { ?z property:P194 ?g . ?z rdf:type ontology:Q7275 . ?g rdf:type ontology:Q11204 } UNION { ?g rdf:type ontology:Q1752346 . ?z rdf:type ontology:Q7275 . ?z property:P194 ?g } } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) ?w WHERE { { ?w property:P194 ?f . ?f rdf:type ontology:Q1752346 . ?w rdf:type ontology:Q7275 } UNION { ?w property:P194 ?f . ?w rdf:type ontology:Q7275 . ?f rdf:type ontology:Q11204 } } GROUP BY ?w } . FILTER ( ?s = ?v ) }
action argmax
action union
action find_tuple_counts
relation legislative body
type state
type assembly
action find_tuple_counts
relation legislative body
type state
type legislature
[{'concept': 'state'}, 'legislative body', [{'concept': 'assembly'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) ?z WHERE { { ?z property:legislative_body ?g . ?z rdf:type ontology:state . ?g rdf:type ontology:legislature } UNION { ?g rdf:type ontology:assembly . ?z rdf:type ontology:state . ?z property:legislative_body ?g } } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) ?w WHERE { { ?w property:legislative_body ?f . ?f rdf:type ontology:assembly . ?w rdf:type ontology:state } UNION { ?w property:legislative_body ?f . ?w rdf:type ontology:state . ?f rdf:type ontology:legislature } } GROUP BY ?w } . FILTER ( ?s = ?v ) }
[]
assembly legislature state
Q131964
SYSTEM
Austrian Empire
Q131964
(c(Q7275),P194,c(Q1752346)|c(Q11204))
action argmax
action union
action find_tuple_counts
relation P194
type Q7275
type Q1752346
action find_tuple_counts
relation P194
type Q7275
type Q11204
[ANSWER] have max number of assemblies or legislatures as their legislative body
[{'concept': 'Q7275'}, 'P194', [{'concept': 'Q1752346'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) ?z WHERE { { ?z property:P194 ?g . ?z rdf:type ontology:Q7275 . ?g rdf:type ontology:Q11204 } UNION { ?g rdf:type ontology:Q1752346 . ?z rdf:type ontology:Q7275 . ?z property:P194 ?g } } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) ?w WHERE { { ?w property:P194 ?f . ?f rdf:type ontology:Q1752346 . ?w rdf:type ontology:Q7275 } UNION { ?w property:P194 ?f . ?w rdf:type ontology:Q7275 . ?f rdf:type ontology:Q11204 } } GROUP BY ?w } . FILTER ( ?s = ?v ) }
Austrian Empire
Austrian Empire have max number of assemblies or legislatures as their legislative body
Austrian Empire
action argmax
action union
action find_tuple_counts
relation legislative body
type state
type assembly
action find_tuple_counts
relation legislative body
type state
type legislature
[{'concept': 'state'}, 'legislative body', [{'concept': 'assembly'}, {'concept': 'legislature'}]]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( MAX ( ?d ) AS ?v ) { SELECT DISTINCT ( COUNT ( ?g ) AS ?d ) ?z WHERE { { ?z property:legislative_body ?g . ?z rdf:type ontology:state . ?g rdf:type ontology:legislature } UNION { ?g rdf:type ontology:assembly . ?z rdf:type ontology:state . ?z property:legislative_body ?g } } GROUP BY ?z } } . { SELECT DISTINCT ( COUNT ( ?f ) AS ?s ) ?w WHERE { { ?w property:legislative_body ?f . ?f rdf:type ontology:assembly . ?w rdf:type ontology:state } UNION { ?w property:legislative_body ?f . ?w rdf:type ontology:state . ?f rdf:type ontology:legislature } } GROUP BY ?w } . FILTER ( ?s = ?v ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Indirect
P35
Q502895
USER
How many people are the heads of state of that state ?
(Q131964,P35,c(Q502895))
action count
action filter_type
action find
entity Q131964
relation P35
type Q502895
['Q131964', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { resource:Q131964 property:P35 ?q . ?q rdf:type ontology:Q502895 }
action count
action filter_type
action find
entity Austrian Empire
relation head of state
type common name
['Austrian Empire', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { resource:Austrian_Empire property:head_of_state ?q . ?q rdf:type ontology:common_name }
[]
common name
SYSTEM
1
Q130834
(Q131964,P35,c(Q502895))
action count
action filter_type
action find
entity Q131964
relation P35
type Q502895
[ANSWER]
['Q131964', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { resource:Q131964 property:P35 ?q . ?q rdf:type ontology:Q502895 }
Francis I of Austria
1
action count
action filter_type
action find
entity Austrian Empire
relation head of state
type common name
['Austrian Empire', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?g ) WHERE { resource:Austrian_Empire property:head_of_state ?q . ?q rdf:type ontology:common_name }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q858841
P1376
Q7275 Q56061 Q515
USER
Which states have around the same number of administrative territories and cities as their capital as Kingdom of Croatia ?
(c(Q56061)|c(Q515),P1376,c(Q7275))
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
action count
action filter_multi_types
action find_reverse
entity Q858841
relation P1376
type Q56061
type Q515
[[{'concept': 'Q56061'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) ?a WHERE { { ?u property:P1376 ?a . ?a rdf:type ontology:Q7275 . ?u rdf:type ontology:Q56061 } UNION { ?u property:P1376 ?a . ?a rdf:type ontology:Q7275 . ?u rdf:type ontology:Q515 } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { VALUES ( ?l ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?t rdf:type ?l } . ?t property:P1376 resource:Q858841 } } . FILTER ( ?f = ?b ) }
Kingdom of Croatia
action approx
action union
action find_reverse_tuple_counts
relation capital of
type state
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type state
type city
action count
action filter_multi_types
action find_reverse
entity Kingdom of Croatia
relation capital of
type administrative territorial entity
type city
[[{'concept': 'administrative territorial entity'}, {'concept': 'city'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) ?a WHERE { { ?u property:capital_of ?a . ?a rdf:type ontology:state . ?u rdf:type ontology:administrative_territorial_entity } UNION { ?u property:capital_of ?a . ?a rdf:type ontology:state . ?u rdf:type ontology:city } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { VALUES ( ?l ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?t rdf:type ?l } . ?t property:capital_of resource:Kingdom_of_Croatia } } . FILTER ( ?f = ?b ) }
[]
state administrative territorial entity city
Q33946 Q15180 Q980
SYSTEM
Czechoslovakia, Soviet Union, Bavaria
Q230791 Q178665 Q46652 Q7559152 Q568523 Q18285930 Q788071 Q207162 Q572222 Q1275158 Q174193 Q855044 Q466581 Q110888 Q1471995 Q1295806 Q457167 Q797527 Q190513 Q889374 Q2308237 Q486181 Q775550 Q210198 Q834486 Q186096 Q215530 Q912043 Q501684 Q164079 Q588672 Q62623 Q282475 Q1789596 Q184536 Q203493 Q523380 Q980 Q1574107 Q746443 Q252580 Q3446210 Q317078 Q332005 Q874954 Q172579 Q867782 Q188553 Q536476 Q1068408 Q1150344 Q330362 Q8146595 Q267584 Q310293 Q1362278 Q1269234 Q1067513 Q1468426 Q71092 Q15180 Q800236 Q698089 Q27260 Q249578 Q16410 Q215643 Q212278 Q223936 Q8735 Q8733 Q156038 Q7405 Q2114397 Q208404 Q467627 Q1796239 Q1152445 Q220110 Q2670639 Q2412900 Q1414395 Q756895 Q190025 Q229411 Q49697 Q1771831 Q105313 Q44642 Q6500954 Q38872 Q107299 Q546282 Q274488 Q11876909 Q541455 Q646374 Q241748 Q210163 Q842931 Q858841 Q476757 Q1274468 Q427703 Q2301372 Q216632 Q207272 Q889394 Q151148 Q1796198 Q234197 Q273025 Q149747 Q27306 Q1123960 Q617218 Q1132786 Q167360 Q1186434 Q954585 Q150069 Q1811029 Q762943 Q1998866 Q106577 Q1108445 Q153080 Q473433 Q651377 Q161885 Q191077 Q468814 Q174306 Q1617495 Q1194765 Q1154540 Q157367 Q760893 Q1539360 Q2305208 Q550374 Q1152126 Q652560 Q1639475 Q1636212 Q503623 Q124943 Q1311219 Q19831559 Q1048918 Q12548 Q25227 Q870517 Q19901436 Q623751 Q726798 Q783489 Q28428 Q1479952 Q303421 Q449639 Q1143524 Q2086556 Q26988 Q618399 Q180573 Q42585 Q170468 Q600018 Q323904 Q1117051 Q1477220 Q269864 Q199841 Q335088 Q325461 Q583038 Q860407 Q146761 Q200262 Q1296908 Q769782 Q216786 Q497777 Q878319 Q7251405 Q582861 Q206411 Q179293 Q158725 Q139315 Q26273 Q832554 Q3271735 Q160440 Q752662 Q1668970 Q320930 Q211853 Q213638 Q2340665 Q1538311 Q2657134 Q2414171 Q218023 Q2162698 Q1077630 Q849623 Q1149230 Q324470 Q551067 Q796583 Q139670 Q1136259 Q1138904 Q28456 Q1183649 Q209065 Q21203 Q631210 Q7352 Q2086608 Q733799 Q9903 Q178913 Q131964 Q83274 Q62589 Q4948 Q836169 Q234009 Q28208 Q903779 Q941881 Q55502 Q713750 Q2552742 Q220167 Q147909 Q319881 Q1709185 Q38060 Q37024 Q62519 Q668294 Q83286 Q210036 Q3755547 Q1255614 Q76048 Q844250 Q181254 Q738144 Q207521 Q2396442 Q1658411 Q142417 Q2428714 Q1406298 Q14934927 Q157734 Q1415585 Q170174 Q699871 Q175276 Q177076 Q7318 Q844910 Q146328 Q248452 Q552157 Q1508143 Q170770 Q30623 Q940821 Q248572 Q697084 Q225890 Q5157575 Q213586 Q3456373 Q217196 Q154195 Q266923 Q285658 Q150061 Q11196 Q70972 Q1143164 Q146713 Q1164500 Q427941 Q161036 Q2314907 Q2184 Q697837 Q774783 Q105092 Q178038 Q206279 Q1469100 Q25279 Q1078602 Q2378381 Q202775 Q1471373 Q374521 Q491507 Q1044536 Q1333032 Q940741 Q289577 Q150058 Q4461035 Q33946 Q762084 Q307069 Q28278 Q2579852 Q544630 Q180114 Q431731 Q36704 Q62454 Q889884 Q698239 Q1142179 Q1192067 Q4453003 Q2372248 Q4453007 Q829356 Q764697 Q853477 Q505503 Q1751495 Q738264 Q153015 Q846670 Q386496 Q696241 Q696242 Q152420 Q11774 Q4843701 Q1479726 Q467864 Q2712121 Q212056 Q964024 Q877155 Q2365048 Q4274522 Q230407 Q49683 Q1192936 Q2109946 Q71747 Q676184 Q128938 Q837136 Q3041595 Q146597 Q1072362 Q484104 Q93180 Q28573 Q949268 Q1986139 Q151536 Q211274 Q61292 Q6412664 Q671899 Q7314469 Q80211 Q12490507 Q862304 Q1029847 Q6415938 Q5148517 Q41304 Q648297 Q149805
(c(Q56061)|c(Q515),P1376,c(Q7275))
action approx
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q56061
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
action count
action filter_multi_types
action find_reverse
entity Q858841
relation P1376
type Q56061
type Q515
[ANSWERS] have around the same number of administrative territories and cities as their capital as Kingdom of Croatia
[[{'concept': 'Q56061'}, {'concept': 'Q515'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) ?a WHERE { { ?u property:P1376 ?a . ?a rdf:type ontology:Q7275 . ?u rdf:type ontology:Q56061 } UNION { ?u property:P1376 ?a . ?a rdf:type ontology:Q7275 . ?u rdf:type ontology:Q515 } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { VALUES ( ?l ) { ( ontology:Q56061 ) ( ontology:Q515 ) } . ?t rdf:type ?l } . ?t property:P1376 resource:Q858841 } } . FILTER ( ?f = ?b ) }
Kingdom of Scotland Mitanni Malacca sultanate Somali Republic Nobatia German Empire of 1848/1849 Talysh-Mughan Autonomous Republic Bourbon Restoration County of Horne Elymais United Kingdom of Great Britain and Ireland Bhopal State Hoysala Empire Kingdom of Essex Former Qin Lower Yafa West Ukrainian People's Republic British Togoland Khanate of Sibir Warsangali Sultanate Ahom kingdom Samanid dynasty Adamawa Emirate Erivan Khanate Federation of South Arabia Tsardom of Russia Kingdom of Ireland Jin Kingdom of Gomma Kingdom of Hanover Hammadid dynasty Kalmar Union Kingdom of Kartli-Kakheti Croatia in personal union with Hungary Mali Empire Kingdom of Romania Republic of Central Lithuania Bavaria Han Zhao Golden Ambrosian Republic Duchy of Modena and Reggio Kingdom of Pamplona Pskov Republic Principality of Achaea Principality of Theodoro Kingdom of Italy Kingdom of Funan Batavian Republic Toucouleur Empire Kuru Kingdom Johor Sultanate Commonwealth of England Upingtonia Yemen Arab Republic Saar Protectorate United States of Stellaland Stellaland Injuids Limmu-Ennarea Second French Empire Soviet Union Bahawalpur State Grand Duchy of Würzburg Samma dynasty Ghaznavid Empire People's Republic of Hungary Indo-Greek Kingdom Kingdom of Holland Kingdom of Italy Medes Qing dynasty Duchy of Courland and Semigallia Sui dynasty Yogyakarta Sultanate Kingdom of Armenia Durrani Empire Kingdom of Seville Aerican Empire Rohan Powys Wenwynwyn Republic of Salé Republic of South Maluku Kediri Federal Republic of Central America Delhi Sultanate Liu Song dynasty Kruševo Republic Kingdom of Wessex Federation of Arab Republics Zaire Prussia Kingdom of Northumbria Xia Eastern Wu State of Brazil Anglo-Egyptian Sudan French India Kingdom of Serbia Astrakhan Khanate East Pakistan Kingdom of Croatia Democratic Republic of Afghanistan Republic of Bosnia and Herzegovina Free State of Schaumburg-Lippe Kingdom of Toledo Mali Federation Second Polish Republic Portuguese Mozambique Chola dynasty Kingdom of Córdoba Srivijaya Gallic Empire Adiabene Kingdom of Prussia Conch Republic Yamhad Ouaddai Empire First Portuguese Republic Muang Phuan Kingdom of Brycheiniog United Suvadive Republic Finnish Socialist Workers' Republic County of Holland Czech and Slovak Federal Republic Neustria Kievan Rus' East Francia Ammon Shunga Empire Kingdom of Great Britain Kingdom of Yugoslavia Dahomey Republic of Genoa Kingdom of Jaén Kamarupa Later Jin Dynasty Brandenburg-Prussia Jolof Empire Northern Liang Soviet Russia South African Republic People's Republic of the Congo West Indies Federation Mountainous Republic of the Northern Caucasus Karabakh Khanate Gold Coast Kingdom of Egypt Jaffna kingdom Oldenburg Suebic Kingdom of Galicia Holy Roman Empire Netherlands Antilles Odrysian kingdom Suriname Kingdom of Bernicia Tulunids Later Liang dynasty Baekje Kadamba Dynasty Kingdom of Galicia Alodia Northern Qi Kakatiya dynasty Cook Islands Republic of the Congo South Vietnam Kingdom of Bohemia United Arab Republic Kingdom of Hungary Portuguese India Kingdom of Illyria Somali Democratic Republic Socialist Republic of Serbia South Yemen Armenian Kingdom of Cilicia Kingdom of Thessalonica Ostrogothic Kingdom Kahlur State Hatay State Kingdom of Navarre Kathiri Kingdom of Powys Champa First Spanish Republic Serbian Despotate Protectorate of Peru Marinid dynasty Democratic Republic of Azerbaijan Kingdom of Castile Tanganyika Territory Dʿmt Sint Maarten Argentine Confederation Kingdom of Arles Crimean Khanate Hafsid dynasty Western Qin Cao Wei Republic of Serbian Krajina Kingdom of Cyprus Basutoland Travancore-Cochin Kingdom of Albania First Brazilian Republic Orange Free State Duchy of Bohemia Septinsular Republic Oyo Empire Western Yan Kara Koyunlu Northern Zhou Kingdom of Kongo Democratic Republic of Armenia Southwestern Somalia Kingdom of Afghanistan Silla Deccan sultanates Kingdom of Greece Aruba Nogai Horde Jin dynasty Western Satraps Kingdom of the Hwicce Ming imperium empire of Trebizond Austrian Empire Hatay Union between Sweden and Norway Republic of Venice Qasim Khanate Magadha Goryeo United Kingdom of Portugal, Brazil and the Algarves Netherlands New Guinea Kingdom of Jerusalem West Germany Northland State Lydenburg Republic Kingdom of Bulgaria Republic of Taiwan Kingdom of Spain under Joseph Bonaparte Gaul Serbia and Montenegro Finnish Democratic Republic Kamerun Socialist Federal Republic of Yugoslavia Chechen Republic of Ichkeria Kingdom of Italy Indo-Parthian Kingdom Congo Free State Lordship of Ireland Empire of Nicea United Provinces of the Río de la Plata Abyssinia Kingdom of Galicia and Lodomeria Kingdom of Sarawak Kingdom of Valencia Sena dynasty Serbian Empire Murrawarri Republic Muscat and Oman Islamic State of Afghanistan Papal States Taebong Kingdom of León Caucasian Albania Nazi Germany Pandyan Dynasty Commonwealth of the Philippines British North America Nieuwe Republiek Ukrainian State Grand Duchy of Moscow Manchukuo People's Democratic Republic of Ethiopia Sultanate of Maguindanao Duchy of Oldenburg Kingdom of Strathclyde Griqualand East Gondor Republic of Brescia Crown of Castile Kingdom of Bavaria Kingdom of Mysore First Mexican Empire Republic of Ararat Republika Srpska Kingdom of France Western Wei Arab Federation Kingdom of Murcia Islamic Emirate of Afghanistan Free State of Prussia Later Zhao Russian Soviet Federative Socialist Republic Mengjiang Sovereign Principality of the United Netherlands Kingdom of Mercia Second Spanish Republic Waalo Karamanids Curaçao Kingdom of Nepal State of Aden Qu'aiti Saloum Bahmani Sultanate Egypt Eyalet Spain under the Restoration Elmet Republic of Hungary Himyarite Kingdom Travancore Akkadian empire Czechoslovakia Bamana Empire Eastern Wei Provisional Government of the Republic of Korea Taurida Soviet Socialist Republic Republic of Maryland Ayyubid dynasty Tanganyika Yugoslavia Chen dynasty Kingdom of Rwanda Hubaekje Orange River Colony Min Tashkent State Free State of Oldenburg Tashkent Khanate Kingdom of Makuria Taifa of Orihuela Lan Xang Cochinchina Slovak Socialist Republic Los Altos, Central America Kingdom of Saxony Danishmends Kingdom of Montenegro Khanate of Kokand Reorganized National Government of China Guelders Gupta Empire Libyan Arab Jamahiriya Federation of Malaya People's Socialist Republic of Albania Republic of Connaught Mongolian People's Republic Moldavian Democratic Republic Chera Dynasty Adal Sultanate Tyrconnell Kingdom of Israel Grand Duchy of Lithuania Kingdom of Burundi Principality of Galilee Duchy of Brittany Kingdom of Sussex Shang dynasty Kingdom of Deheubarth Republic of Iraq Zand dynasty Provisional Revolutionary Government of the Republic of South Vietnam United States Army Military Government in Korea Seleucid Empire Inca Nanda Empire Parthian Empire Novgorod Republic People's Republic of Poland Far Eastern Republic Realm of Stefan Dragutin Duchy of Teschen Republic of Georgia Lithuanian Soviet Socialist Republic Rashidun Caliphate Kara-Khitan Khanate Natalia Republic Emirate of Dhala Colony and Protectorate of Nigeria Weimar Republic Free State of Brunswick Kingdom of Iraq
Czechoslovakia, Soviet Union and Bavaria have around the same number of administrative territories and cities as their capital as Kingdom of Croatia
Czechoslovakia Soviet Union Bavaria
action approx
action union
action find_reverse_tuple_counts
relation capital of
type state
type administrative territorial entity
action find_reverse_tuple_counts
relation capital of
type state
type city
action count
action filter_multi_types
action find_reverse
entity Kingdom of Croatia
relation capital of
type administrative territorial entity
type city
[[{'concept': 'administrative territorial entity'}, {'concept': 'city'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?a WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?f ) ?a WHERE { { ?u property:capital_of ?a . ?a rdf:type ontology:state . ?u rdf:type ontology:administrative_territorial_entity } UNION { ?u property:capital_of ?a . ?a rdf:type ontology:state . ?u rdf:type ontology:city } } GROUP BY ?a } . { SELECT DISTINCT ( COUNT ( ?t ) AS ?b ) WHERE { { VALUES ( ?l ) { ( ontology:administrative_territorial_entity ) ( ontology:city ) } . ?t rdf:type ?l } . ?t property:capital_of resource:Kingdom_of_Croatia } } . FILTER ( ?f = ?b ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15180
P38
Q8142
USER
What is the currency of Soviet Union ?
(Q15180,P38,c(Q8142))
action filter_type
action find
entity Q15180
relation P38
type Q8142
['Q15180', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?i WHERE { resource:Q15180 property:P38 ?i . ?i rdf:type ontology:Q8142 }
Soviet Union
action filter_type
action find
entity Soviet Union
relation currency
type currency
['Soviet Union', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?i WHERE { resource:Soviet_Union property:currency ?i . ?i rdf:type ontology:currency }
[]
currency
Q615640
SYSTEM
Soviet ruble
Q615640
(Q15180,P38,c(Q8142))
action filter_type
action find
entity Q15180
relation P38
type Q8142
The currency of Soviet Union is the [ANSWER]
['Q15180', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?i WHERE { resource:Q15180 property:P38 ?i . ?i rdf:type ontology:Q8142 }
Soviet ruble
The currency of Soviet Union is the Soviet ruble
Soviet ruble
action filter_type
action find
entity Soviet Union
relation currency
type currency
['Soviet Union', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?i WHERE { resource:Soviet_Union property:currency ?i . ?i rdf:type ontology:currency }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15180
P112
Q7275
USER
Who were the founders of Soviet Union ?
(Q15180,P112,c(Q7275))
action filter_type
action find
entity Q15180
relation P112
type Q7275
['Q15180', 'P112', {'concept': 'Q7275'}]
SELECT DISTINCT ?e WHERE { resource:Q15180 property:P112 ?e . ?e rdf:type ontology:Q7275 }
Soviet Union
action filter_type
action find
entity Soviet Union
relation founder
type state
['Soviet Union', 'founder', {'concept': 'state'}]
SELECT DISTINCT ?e WHERE { resource:Soviet_Union property:founder ?e . ?e rdf:type ontology:state }
[]
state
Q133356 Q2184 Q545205
SYSTEM
Ukrainian Soviet Socialist Republic, Russian Soviet Federative Socialist Republic, Transcaucasian Socialist Federative Soviet Republic
Q133356 Q2184 Q545205
(Q15180,P112,c(Q7275))
action filter_type
action find
entity Q15180
relation P112
type Q7275
The founders of Soviet Union were the [ANSWERS]
['Q15180', 'P112', {'concept': 'Q7275'}]
SELECT DISTINCT ?e WHERE { resource:Q15180 property:P112 ?e . ?e rdf:type ontology:Q7275 }
Ukrainian Soviet Socialist Republic Russian Soviet Federative Socialist Republic Transcaucasian Socialist Federative Soviet Republic
The founders of Soviet Union were the Ukrainian Soviet Socialist Republic, Russian Soviet Federative Socialist Republic and Transcaucasian Socialist Federative Soviet Republic
Ukrainian Soviet Socialist Republic Russian Soviet Federative Socialist Republic Transcaucasian Socialist Federative Soviet Republic
action filter_type
action find
entity Soviet Union
relation founder
type state
['Soviet Union', 'founder', {'concept': 'state'}]
SELECT DISTINCT ?e WHERE { resource:Soviet_Union property:founder ?e . ?e rdf:type ontology:state }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2184
P361
Q7275
USER
What is that one a portion of ?
(Q2184,P361,c(Q7275))
action filter_type
action find
entity Q2184
relation P361
type Q7275
['Q2184', 'P361', {'concept': 'Q7275'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q7275 . resource:Q2184 property:P361 ?d }
Russian Soviet Federative Socialist Republic
action filter_type
action find
entity Russian Soviet Federative Socialist Republic
relation part of
type state
['Russian Soviet Federative Socialist Republic', 'part of', {'concept': 'state'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:state . resource:Russian_Soviet_Federative_Socialist_Republic property:part_of ?d }
[]
state
Clarification for simple ques.
Q2184
SYSTEM
Did you mean Russian Soviet Federative Socialist Republic ?
Q133356 Q2184 Q545205
(Q133356,P361,c(Q7275)) (Q2184,P361,c(Q7275)) (Q545205,P361,c(Q7275))
[ANSWER]
['Q133356', 'P361', {'concept': 'Q7275'}] ['Q2184', 'P361', {'concept': 'Q7275'}] ['Q545205', 'P361', {'concept': 'Q7275'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q7275 . resource:Q2184 property:P361 ?d }
Ukrainian Soviet Socialist Republic Russian Soviet Federative Socialist Republic Transcaucasian Socialist Federative Soviet Republic
Did you mean Russian Soviet Federative Socialist Republic ?
Russian Soviet Federative Socialist Republic
['Ukrainian Soviet Socialist Republic', 'part of', {'concept': 'state'}] ['Russian Soviet Federative Socialist Republic', 'part of', {'concept': 'state'}] ['Transcaucasian Socialist Federative Soviet Republic', 'part of', {'concept': 'state'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:state . resource:Russian_Soviet_Federative_Socialist_Republic property:part_of ?d }
[]
Simple Question (Coreferenced)
USER
Yes
(Q2184,P361,c(Q7275))
['Q2184', 'P361', {'concept': 'Q7275'}]
['Russian Soviet Federative Socialist Republic', 'part of', {'concept': 'state'}]
[]
Q15180
SYSTEM
Soviet Union
Q15180
(Q2184,P361,c(Q7275))
action filter_type
action find
entity Q2184
relation P361
type Q7275
That one a portion of is the [ANSWER]
['Q2184', 'P361', {'concept': 'Q7275'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q7275 . resource:Q2184 property:P361 ?d }
Soviet Union
That one a portion of is the Soviet Union
Soviet Union
action filter_type
action find
entity Russian Soviet Federative Socialist Republic
relation part of
type state
['Russian Soviet Federative Socialist Republic', 'part of', {'concept': 'state'}]
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:state . resource:Russian_Soviet_Federative_Socialist_Republic property:part_of ?d }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P1376
Q7275 Q515 Q20667921
USER
Which states have atmost 1 cities or french administrative divisions have their first city ?
(c(Q515)|c(Q20667921),P1376,c(Q7275))
action atmost
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
value 1
[[{'concept': 'Q515'}, {'concept': 'Q20667921'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?k ) AS ?f ) WHERE { { ?k property:P1376 ?w . ?w rdf:type ontology:Q7275 . ?k rdf:type ontology:Q515 } UNION { ?k property:P1376 ?w . ?w rdf:type ontology:Q7275 . ?k rdf:type ontology:Q20667921 } } GROUP BY ?w } . FILTER ( ?f <= 1 ) }
action atmost
action union
action find_reverse_tuple_counts
relation capital of
type state
type city
action find_reverse_tuple_counts
relation capital of
type state
type type of french administrative division
value 1
[[{'concept': 'city'}, {'concept': 'type of french administrative division'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?k ) AS ?f ) WHERE { { ?k property:capital_of ?w . ?w rdf:type ontology:state . ?k rdf:type ontology:city } UNION { ?k property:capital_of ?w . ?w rdf:type ontology:state . ?k rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?w } . FILTER ( ?f <= 1 ) }
[]
state city type of french administrative division
Q33946 Q15180 Q980
SYSTEM
Czechoslovakia, Soviet Union, Bavaria
Q230791 Q1193822 Q178665 Q46652 Q7559152 Q568523 Q18285930 Q788071 Q207162 Q572222 Q1275158 Q3456417 Q152855 Q174193 Q855044 Q466581 Q110888 Q1471995 Q1295806 Q975405 Q1688151 Q457167 Q1483643 Q827040 Q797527 Q190513 Q889374 Q2308237 Q486181 Q775550 Q210198 Q31454 Q834486 Q2006542 Q186096 Q133356 Q215530 Q912043 Q501684 Q164079 Q1649871 Q588672 Q2564694 Q62623 Q171150 Q282475 Q1789596 Q184536 Q203493 Q523380 Q980 Q1574107 Q746443 Q252580 Q3446210 Q317078 Q332005 Q874954 Q172579 Q867782 Q798431 Q1269910 Q188553 Q536476 Q877875 Q1068408 Q1150344 Q330362 Q8146595 Q267584 Q310293 Q15864 Q1362278 Q1269234 Q2361927 Q1067513 Q402145 Q255931 Q2342822 Q863279 Q1468426 Q71092 Q3177715 Q15180 Q800236 Q698089 Q83821 Q27260 Q249578 Q16410 Q953432 Q215643 Q212278 Q210542 Q223936 Q8735 Q13107370 Q8733 Q156038 Q7405 Q761370 Q2114397 Q208404 Q467627 Q1796239 Q321371 Q1152445 Q220110 Q2670639 Q2412900 Q1414395 Q756895 Q190025 Q229411 Q49697 Q153660 Q1771831 Q1069905 Q105313 Q44642 Q6500954 Q38872 Q107299 Q546282 Q274488 Q11876909 Q541455 Q216173 Q646374 Q241748 Q577867 Q210163 Q842931 Q858841 Q476757 Q1274468 Q427703 Q2301372 Q216632 Q202687 Q207272 Q889394 Q151148 Q1796198 Q2419932 Q234197 Q2668600 Q273025 Q149747 Q27306 Q1123960 Q617218 Q1132786 Q167360 Q1186434 Q954585 Q150069 Q1811029 Q551375 Q762943 Q1998866 Q106577 Q146246 Q1108445 Q153080 Q473433 Q651377 Q161885 Q526507 Q191077 Q468814 Q174306 Q16957 Q1617495 Q1194765 Q1154540 Q157367 Q28322 Q760893 Q1539360 Q2305208 Q550374 Q1152126 Q652560 Q1639475 Q1636212 Q503623 Q124943 Q1311219 Q19831559 Q172107 Q1048918 Q12548 Q25227 Q870517 Q19901436 Q623751 Q726798 Q736936 Q783489 Q2444884 Q28428 Q1479952 Q303421 Q449639 Q1143524 Q2086556 Q26988 Q16949002 Q618399 Q180573 Q1923401 Q42585 Q170468 Q600018 Q323904 Q1117051 Q1135255 Q1477220 Q624887 Q269864 Q199841 Q335088 Q325461 Q583038 Q199442 Q860407 Q13706 Q146761 Q200262 Q1296908 Q156020 Q431575 Q769782 Q216786 Q497777 Q878319 Q7251405 Q582861 Q206411 Q179293 Q26472 Q158725 Q139315 Q26273 Q139319 Q832554 Q870055 Q3271735 Q160440 Q752662 Q797422 Q235030 Q1668970 Q320930 Q211853 Q213638 Q2340665 Q1538311 Q2657134 Q2414171 Q218023 Q2162698 Q1077630 Q849623 Q1149230 Q324470 Q551067 Q2264735 Q28511 Q796583 Q139670 Q1136259 Q1138904 Q28456 Q1183649 Q209065 Q21203 Q10988528 Q631210 Q402580 Q7352 Q2086608 Q733799 Q9903 Q178913 Q131964 Q83274 Q62589 Q83572 Q4948 Q836169 Q234009 Q28208 Q903779 Q941881 Q55502 Q1319681 Q713750 Q2552742 Q220167 Q1115291 Q147909 Q319881 Q1709185 Q894030 Q38060 Q37024 Q62519 Q668294 Q83286 Q210036 Q3755547 Q1255614 Q76048 Q914898 Q844250 Q181254 Q738144 Q207521 Q2396442 Q1658411 Q28025 Q142417 Q11704201 Q2428714 Q49326 Q1406298 Q14934927 Q1057118 Q157734 Q2088324 Q11909456 Q580188 Q1415585 Q170174 Q699871 Q175276 Q177076 Q7318 Q844910 Q146328 Q248452 Q552157 Q1508143 Q170770 Q30623 Q940821 Q248572 Q697084 Q225890 Q5157575 Q213586 Q3456373 Q217196 Q16624774 Q154195 Q266923 Q173082 Q285658 Q150061 Q170588 Q165154 Q11196 Q842091 Q70972 Q187684 Q1143164 Q1324889 Q146713 Q1164500 Q427941 Q161036 Q2314907 Q2184 Q697837 Q774783 Q994451 Q105092 Q3185305 Q178038 Q1148907 Q179876 Q206279 Q1469100 Q25279 Q1078602 Q48685 Q2378381 Q747314 Q320925 Q202775 Q1471373 Q374521 Q491507 Q1044536 Q1333032 Q940741 Q289577 Q2593459 Q150058 Q571453 Q4461035 Q33946 Q762084 Q271570 Q307069 Q28278 Q2579852 Q107380 Q206696 Q544630 Q180114 Q431731 Q36704 Q62454 Q112558 Q1198071 Q889884 Q698239 Q1142179 Q1192067 Q4453003 Q2372248 Q4453007 Q829356 Q1062422 Q764697 Q853477 Q505503 Q169705 Q212439 Q1751495 Q738264 Q153015 Q846670 Q386496 Q696241 Q696242 Q152420 Q11774 Q4843701 Q422065 Q1479726 Q467864 Q76236 Q209857 Q2712121 Q212056 Q964024 Q877155 Q777981 Q487829 Q2365048 Q4274522 Q154853 Q1148042 Q770776 Q230407 Q1549254 Q49683 Q7314513 Q75613 Q1192936 Q2109946 Q71747 Q676184 Q128938 Q837136 Q3041595 Q146597 Q1072362 Q484104 Q680997 Q93180 Q28573 Q949268 Q1986139 Q151536 Q188586 Q211274 Q61292 Q6412664 Q671899 Q7314469 Q80211 Q12490507 Q862304 Q1029847 Q6415938 Q5148517 Q41304 Q648297 Q149805
(c(Q515)|c(Q20667921),P1376,c(Q7275))
action atmost
action union
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q20667921
value 1
[ANSWERS] have atmost 1 cities or french administrative divisions have their first city
[[{'concept': 'Q515'}, {'concept': 'Q20667921'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?k ) AS ?f ) WHERE { { ?k property:P1376 ?w . ?w rdf:type ontology:Q7275 . ?k rdf:type ontology:Q515 } UNION { ?k property:P1376 ?w . ?w rdf:type ontology:Q7275 . ?k rdf:type ontology:Q20667921 } } GROUP BY ?w } . FILTER ( ?f <= 1 ) }
Kingdom of Scotland Wuyue Mitanni Malacca sultanate Somali Republic Nobatia German Empire of 1848/1849 Talysh-Mughan Autonomous Republic Bourbon Restoration County of Horne Elymais Republic of Saint-Malo Kingdom of Tungning United Kingdom of Great Britain and Ireland Bhopal State Hoysala Empire Kingdom of Essex Former Qin Lower Yafa Sultanate of Rum Kingdom of Thomond West Ukrainian People's Republic Nakhon Si Thammarat Kingdom Nanyue British Togoland Khanate of Sibir Warsangali Sultanate Ahom kingdom Samanid dynasty Adamawa Emirate Erivan Khanate Kingdom of Libya Federation of South Arabia Dominion of Pakistan Tsardom of Russia Ukrainian Soviet Socialist Republic Kingdom of Ireland Jin Kingdom of Gomma Kingdom of Hanover Kingdom of Poland Hammadid dynasty Powys Fadog Kalmar Union Kingdom of Hungary Kingdom of Kartli-Kakheti Croatia in personal union with Hungary Mali Empire Kingdom of Romania Republic of Central Lithuania Bavaria Han Zhao Golden Ambrosian Republic Duchy of Modena and Reggio Kingdom of Pamplona Pskov Republic Principality of Achaea Principality of Theodoro Kingdom of Italy Kingdom of Funan Republic of Dahomey Republic of Madawaska Batavian Republic Toucouleur Empire Palmyrene Empire Kuru Kingdom Johor Sultanate Commonwealth of England Upingtonia Yemen Arab Republic Saar Protectorate United Kingdom of the Netherlands United States of Stellaland Stellaland Duchy of Masovia Injuids Mataram Sultanate Hariphunchai West Pakistan Sukhothai Kingdom Limmu-Ennarea Second French Empire Pagaruyung Kingdom Soviet Union Bahawalpur State Grand Duchy of Würzburg Bijapur Sultanate Samma dynasty Ghaznavid Empire People's Republic of Hungary Couto Misto Indo-Greek Kingdom Kingdom of Holland Second Brazilian Republic Kingdom of Italy Medes Principality of Serbia Qing dynasty Duchy of Courland and Semigallia Sui dynasty Aro Confederacy Yogyakarta Sultanate Kingdom of Armenia Durrani Empire Kingdom of Seville Bosporan Kingdom Aerican Empire Rohan Powys Wenwynwyn Republic of Salé Republic of South Maluku Kediri Federal Republic of Central America Delhi Sultanate Liu Song dynasty Italian Social Republic Kruševo Republic Cheng Han Kingdom of Wessex Federation of Arab Republics Zaire Prussia Kingdom of Northumbria Xia Eastern Wu State of Brazil Anglo-Egyptian Sudan Free City of Danzig French India Kingdom of Serbia Kingdom of Poland Astrakhan Khanate East Pakistan Kingdom of Croatia Democratic Republic of Afghanistan Republic of Bosnia and Herzegovina Free State of Schaumburg-Lippe Kingdom of Toledo Mali Federation Songhai Empire Second Polish Republic Portuguese Mozambique Chola dynasty Kingdom of Córdoba Kingdom of Redonda Srivijaya Taifa of Niebla Gallic Empire Adiabene Kingdom of Prussia Conch Republic Yamhad Ouaddai Empire First Portuguese Republic Muang Phuan Kingdom of Brycheiniog United Suvadive Republic Finnish Socialist Workers' Republic Grand Duchy of Westarctica County of Holland Czech and Slovak Federal Republic Neustria Francia Kievan Rus' East Francia Ammon Shunga Empire Kingdom of Great Britain Later Shu Kingdom of Yugoslavia Dahomey Republic of Genoa East Germany Kingdom of Jaén Kamarupa Later Jin Dynasty Brandenburg-Prussia Balhae Jolof Empire Northern Liang Soviet Russia South African Republic People's Republic of the Congo West Indies Federation Mountainous Republic of the Northern Caucasus Karabakh Khanate Gold Coast Kingdom of Egypt Jaffna kingdom Oldenburg Polish–Lithuanian Commonwealth Suebic Kingdom of Galicia Holy Roman Empire Netherlands Antilles Odrysian kingdom Suriname Kingdom of Bernicia Tulunids Lu Later Liang dynasty Tibet Baekje Kadamba Dynasty Kingdom of Galicia Alodia Northern Qi Kakatiya dynasty Cook Islands Lordship of Brecknock Republic of the Congo South Vietnam Zunghar Khanate Kingdom of Bohemia United Arab Republic Kingdom of Hungary Portuguese India Kingdom of Illyria Chinese Soviet Republic Somali Democratic Republic Neo-Babylonian Empire Socialist Republic of Serbia South Yemen Armenian Kingdom of Cilicia Kingdom of Thessalonica Ostrogothic Kingdom Kingdom of Aragon Kahlur State Principality of Sealand Hatay State Kingdom of Navarre Kathiri State of the Teutonic Order Idrisid dynasty Kingdom of Powys Champa First Spanish Republic Serbian Despotate Protectorate of Peru Marinid dynasty Democratic Republic of Azerbaijan Kingdom of Castile Kingdom of Dali Tanganyika Territory Dʿmt Sint Maarten Russian Republic Argentine Confederation Kingdom of Laos Kingdom of Arles Crimean Khanate Hafsid dynasty Republic of Upper Volta Principality of Antioch Western Qin Cao Wei Republic of Serbian Krajina Kingdom of Cyprus Basutoland Travancore-Cochin Kingdom of Albania First Brazilian Republic Orange Free State Duchy of Bohemia Septinsular Republic Oyo Empire Western Yan Kara Koyunlu Northern Zhou Arthedain Buyeo kingdom Kingdom of Kongo Democratic Republic of Armenia Southwestern Somalia Kingdom of Afghanistan Silla Deccan sultanates Kingdom of Greece Aruba Second East Turkestan Republic Nogai Horde Medang Kingdom Jin dynasty Western Satraps Kingdom of the Hwicce Ming imperium empire of Trebizond Austrian Empire Hatay Union between Sweden and Norway Sikh Empire Republic of Venice Qasim Khanate Magadha Goryeo United Kingdom of Portugal, Brazil and the Algarves Netherlands New Guinea Kingdom of Jerusalem Qi West Germany Northland State Lydenburg Republic Thonburi Kingdom Kingdom of Bulgaria Republic of Taiwan Kingdom of Spain under Joseph Bonaparte Bornu Empire Gaul Serbia and Montenegro Finnish Democratic Republic Kamerun Socialist Federal Republic of Yugoslavia Chechen Republic of Ichkeria Kingdom of Italy Indo-Parthian Kingdom Congo Free State Kingdom of Khotan Lordship of Ireland Empire of Nicea United Provinces of the Río de la Plata Abyssinia Kingdom of Galicia and Lodomeria Kingdom of Sarawak Ryukyu Kingdom Kingdom of Valencia Taifa of Arjona Sena dynasty Majapahit Serbian Empire Murrawarri Republic Chenla Kingdom Muscat and Oman Colonial Brazil Bit Agusi Mutawakkilite Kingdom of Yemen Islamic State of Afghanistan Papal States Taebong Kingdom of León Caucasian Albania Nazi Germany Pandyan Dynasty Commonwealth of the Philippines British North America Nieuwe Republiek Ukrainian State Grand Duchy of Moscow Manchukuo People's Democratic Republic of Ethiopia Sultanate of Maguindanao Duchy of Oldenburg Kingdom of Strathclyde Griqualand East Gondor Republic of Brescia Crown of Castile Kingdom of Nicoya Kingdom of Bavaria Kingdom of Mysore Dacia First Mexican Empire Republic of Ararat Republic of Texas Kingdom of Sardinia Republika Srpska Duchy of Normandy Kingdom of France Despotate of Epirus Western Wei Germiyanids Arab Federation Kingdom of Murcia Islamic Emirate of Afghanistan Free State of Prussia Later Zhao Russian Soviet Federative Socialist Republic Mengjiang Sovereign Principality of the United Netherlands Western Liang Kingdom of Mercia Kingdom of Israel Second Spanish Republic State of Katanga Kingdom of England Waalo Karamanids Curaçao Kingdom of Nepal Judah State of Aden Bechuanaland Protectorate Shu Han Qu'aiti Saloum Bahmani Sultanate Egypt Eyalet Spain under the Restoration Elmet Republic of Hungary Himyarite Kingdom Provisional Government of Hawaii Travancore Former Shu Akkadian empire Czechoslovakia Bamana Empire Kingdom of Araucanía and Patagonia Eastern Wei Provisional Government of the Republic of Korea Taurida Soviet Socialist Republic History of Lippe Helvetic Republic Republic of Maryland Ayyubid dynasty Tanganyika Yugoslavia Chen dynasty Republic of Saugeais Southern Han Kingdom of Rwanda Hubaekje Orange River Colony Min Tashkent State Free State of Oldenburg Tashkent Khanate Kingdom of Makuria Konbaung Dynasty Taifa of Orihuela Lan Xang Cochinchina Xia dynasty Cossack Hetmanate Slovak Socialist Republic Los Altos, Central America Kingdom of Saxony Danishmends Kingdom of Montenegro Khanate of Kokand Reorganized National Government of China Guelders Gupta Empire Libyan Arab Jamahiriya Sultanate of Sulu Federation of Malaya People's Socialist Republic of Albania Lithuanian–Belorussian Soviet Socialist Republic Kingdom of Lombardy–Venetia Republic of Connaught Mongolian People's Republic Moldavian Democratic Republic Chera Dynasty Duchy of the Archipelago Chagatai Khanate Adal Sultanate Tyrconnell Diauehi Qutb Shahi dynasty Dutch Gold Coast Kingdom of Israel Principality of Seborga Grand Duchy of Lithuania Republic of South Carolina Almoravid dynasty Kingdom of Burundi Principality of Galilee Duchy of Brittany Kingdom of Sussex Shang dynasty Kingdom of Deheubarth Republic of Iraq Zand dynasty Provisional Revolutionary Government of the Republic of South Vietnam United States Army Military Government in Korea Principality of Lower Pannonia Seleucid Empire Inca Nanda Empire Parthian Empire Novgorod Republic Kingdom of Sicily People's Republic of Poland Far Eastern Republic Realm of Stefan Dragutin Duchy of Teschen Republic of Georgia Lithuanian Soviet Socialist Republic Rashidun Caliphate Kara-Khitan Khanate Natalia Republic Emirate of Dhala Colony and Protectorate of Nigeria Weimar Republic Free State of Brunswick Kingdom of Iraq
Czechoslovakia, Soviet Union and Bavaria have atmost 1 cities or french administrative divisions have their first city
Czechoslovakia Soviet Union Bavaria
action atmost
action union
action find_reverse_tuple_counts
relation capital of
type state
type city
action find_reverse_tuple_counts
relation capital of
type state
type type of french administrative division
value 1
[[{'concept': 'city'}, {'concept': 'type of french administrative division'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ?w ( COUNT ( ?k ) AS ?f ) WHERE { { ?k property:capital_of ?w . ?w rdf:type ontology:state . ?k rdf:type ontology:city } UNION { ?k property:capital_of ?w . ?w rdf:type ontology:state . ?k rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?w } . FILTER ( ?f <= 1 ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q980
P1027
Q618779
USER
Which award is bestowed by that state ?
(c(Q618779),P1027,Q980)
action filter_type
action find_reverse
entity Q980
relation P1027
type Q618779
[{'concept': 'Q618779'}, 'P1027', 'Q980']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q618779 . ?l property:P1027 resource:Q980 }
Bavaria
action filter_type
action find_reverse
entity Bavaria
relation conferred by
type award
[{'concept': 'award'}, 'conferred by', 'Bavaria']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:award . ?l property:conferred_by resource:Bavaria }
[]
award
Clarification for simple ques.
Q15180
SYSTEM
Did you mean Soviet Union ?
Q33946 Q15180 Q980
(c(Q618779),P1027,Q33946) (c(Q618779),P1027,Q15180) (c(Q618779),P1027,Q980)
[ANSWER]
[{'concept': 'Q618779'}, 'P1027', 'Q33946'] [{'concept': 'Q618779'}, 'P1027', 'Q15180'] [{'concept': 'Q618779'}, 'P1027', 'Q980']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q618779 . ?l property:P1027 resource:Q980 }
Czechoslovakia Soviet Union Bavaria
Did you mean Soviet Union ?
Soviet Union
[{'concept': 'award'}, 'conferred by', 'Czechoslovakia'] [{'concept': 'award'}, 'conferred by', 'Soviet Union'] [{'concept': 'award'}, 'conferred by', 'Bavaria']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:award . ?l property:conferred_by resource:Bavaria }
[]
Simple Question (Coreferenced)
USER
No, I meant Bavaria. Could you tell me the answer for that?
(c(Q618779),P1027,Q980)
Q980
[{'concept': 'Q618779'}, 'P1027', 'Q980']
[{'concept': 'award'}, 'conferred by', 'Bavaria']
[]
Q672787
SYSTEM
Bavarian Order of Merit
Q672787
(c(Q618779),P1027,Q980)
action filter_type
action find_reverse
entity Q980
relation P1027
type Q618779
The [ANSWER] is bestowed by that state
[{'concept': 'Q618779'}, 'P1027', 'Q980']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q618779 . ?l property:P1027 resource:Q980 }
Bavarian Order of Merit
The Bavarian Order of Merit is bestowed by that state
Bavarian Order of Merit
action filter_type
action find_reverse
entity Bavaria
relation conferred by
type award
[{'concept': 'award'}, 'conferred by', 'Bavaria']
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:award . ?l property:conferred_by resource:Bavaria }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q2396442
P194
Q1752346 Q11204 Q7275
USER
How many states have lesser number of assemblies and legislatures as their council than Kingdom of Galicia and Lodomeria ?
(c(Q7275),P194,c(Q1752346)|c(Q11204))
action count
action less
action union
action find_tuple_counts
relation P194
type Q7275
type Q1752346
action find_tuple_counts
relation P194
type Q7275
type Q11204
action count
action filter_multi_types
action find
entity Q2396442
relation P194
type Q1752346
type Q11204
[{'concept': 'Q7275'}, 'P194', [{'concept': 'Q1752346'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?a ) WHERE { VALUES ( ?z ) { ( ontology:Q1752346 ) ( ontology:Q11204 ) } . ?q rdf:type ?z } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { resource:Q2396442 property:P194 ?p . { { ?p rdf:type ontology:Q1752346 } UNION { ?p rdf:type ontology:Q11204 } } } } . FILTER ( ?a < ?t ) }
Kingdom of Galicia and Lodomeria
action count
action less
action union
action find_tuple_counts
relation legislative body
type state
type assembly
action find_tuple_counts
relation legislative body
type state
type legislature
action count
action filter_multi_types
action find
entity Kingdom of Galicia and Lodomeria
relation legislative body
type assembly
type legislature
[{'concept': 'state'}, 'legislative body', [{'concept': 'assembly'}, {'concept': 'legislature'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?a ) WHERE { VALUES ( ?z ) { ( ontology:assembly ) ( ontology:legislature ) } . ?q rdf:type ?z } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { resource:Kingdom_of_Galicia_and_Lodomeria property:legislative_body ?p . { { ?p rdf:type ontology:assembly } UNION { ?p rdf:type ontology:legislature } } } } . FILTER ( ?a < ?t ) }
[]
assembly legislature state
SYSTEM
42
Q211853 Q476757 Q207272 Q965174 Q1078602 Q201038 Q208545 Q167360 Q1811029 Q209062 Q204920 Q2006542 Q133356 Q191077 Q903779 Q16957 Q1649871 Q55502 Q62623 Q842794 Q71747 Q1423581 Q83286 Q1277557 Q330362 Q212439 Q28025 Q153015 Q83618 Q964024 Q487829 Q4948 Q49683 Q2342822 Q199841 Q12557 Q217196 Q23541302 Q1775277 Q70972 Q427941 Q216173
(c(Q7275),P194,c(Q1752346)|c(Q11204))
action count
action less
action union
action find_tuple_counts
relation P194
type Q7275
type Q1752346
action find_tuple_counts
relation P194
type Q7275
type Q11204
action count
action filter_multi_types
action find
entity Q2396442
relation P194
type Q1752346
type Q11204
[ANSWER]
[{'concept': 'Q7275'}, 'P194', [{'concept': 'Q1752346'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?a ) WHERE { VALUES ( ?z ) { ( ontology:Q1752346 ) ( ontology:Q11204 ) } . ?q rdf:type ?z } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { resource:Q2396442 property:P194 ?p . { { ?p rdf:type ontology:Q1752346 } UNION { ?p rdf:type ontology:Q11204 } } } } . FILTER ( ?a < ?t ) }
Republic of Serbian Krajina Democratic Republic of Afghanistan Second Polish Republic Coalition Provisional Authority Kingdom of Nepal Roman Kingdom Socialist Republic of Bosnia and Herzegovina First Portuguese Republic Finnish Socialist Workers' Republic Socialist Republic of Croatia Crown of Aragon Dominion of Pakistan Ukrainian Soviet Socialist Republic Kingdom of Yugoslavia United Kingdom of Portugal, Brazil and the Algarves East Germany Kingdom of Poland Kingdom of Jerusalem Kalmar Union Socialist Republic of Romania Duchy of Brittany Italian Regency of Carnaro Socialist Federal Republic of Yugoslavia Democratic Federal Yugoslavia Commonwealth of England Cossack Hetmanate Ryukyu Kingdom Kingdom of Saxony Maratha Empire Moldavian Democratic Republic Chagatai Khanate Republic of Venice Grand Duchy of Lithuania West Pakistan South Yemen Mongol Empire Crown of Castile Kaluga Soviet Republic Dominion of India Kingdom of France Islamic Emirate of Afghanistan Free City of Danzig
42
action count
action less
action union
action find_tuple_counts
relation legislative body
type state
type assembly
action find_tuple_counts
relation legislative body
type state
type legislature
action count
action filter_multi_types
action find
entity Kingdom of Galicia and Lodomeria
relation legislative body
type assembly
type legislature
[{'concept': 'state'}, 'legislative body', [{'concept': 'assembly'}, {'concept': 'legislature'}]]
SELECT DISTINCT ( COUNT ( ?g ) AS ?u ) WHERE { { SELECT DISTINCT ?g ( COUNT ( ?q ) AS ?a ) WHERE { VALUES ( ?z ) { ( ontology:assembly ) ( ontology:legislature ) } . ?q rdf:type ?z } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { resource:Kingdom_of_Galicia_and_Lodomeria property:legislative_body ?p . { { ?p rdf:type ontology:assembly } UNION { ?p rdf:type ontology:legislature } } } } . FILTER ( ?a < ?t ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q487687
P194
Q1752346 Q11204 Q7275
USER
And also tell me about Third Republic of South Korea?
(c(Q7275),P194,c(Q1752346)|c(Q11204))
action count
action less
action union
action find_tuple_counts
relation P194
type Q7275
type Q1752346
action find_tuple_counts
relation P194
type Q7275
type Q11204
action count
action filter_multi_types
action find
entity Q487687
relation P194
type Q1752346
type Q11204
[{'concept': 'Q7275'}, 'P194', [{'concept': 'Q1752346'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) ?z WHERE { ?n rdf:type ?t . VALUES ( ?t ) { ( ontology:Q1752346 ) ( ontology:Q11204 ) } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { resource:Q487687 property:P194 ?p . { { ?p rdf:type ontology:Q1752346 } UNION { ?p rdf:type ontology:Q11204 } } } } . FILTER ( ?y < ?a ) }
Third Republic of South Korea
action count
action less
action union
action find_tuple_counts
relation legislative body
type state
type assembly
action find_tuple_counts
relation legislative body
type state
type legislature
action count
action filter_multi_types
action find
entity Third Republic of South Korea
relation legislative body
type assembly
type legislature
[{'concept': 'state'}, 'legislative body', [{'concept': 'assembly'}, {'concept': 'legislature'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) ?z WHERE { ?n rdf:type ?t . VALUES ( ?t ) { ( ontology:assembly ) ( ontology:legislature ) } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { resource:Third_Republic_of_South_Korea property:legislative_body ?p . { { ?p rdf:type ontology:assembly } UNION { ?p rdf:type ontology:legislature } } } } . FILTER ( ?y < ?a ) }
[]
assembly legislature state
SYSTEM
42
Q211853 Q476757 Q207272 Q965174 Q1078602 Q201038 Q208545 Q167360 Q1811029 Q209062 Q204920 Q2006542 Q133356 Q191077 Q903779 Q16957 Q1649871 Q55502 Q62623 Q842794 Q71747 Q1423581 Q83286 Q1277557 Q330362 Q212439 Q28025 Q153015 Q83618 Q964024 Q487829 Q4948 Q49683 Q2342822 Q199841 Q12557 Q217196 Q23541302 Q1775277 Q70972 Q427941 Q216173
(c(Q7275),P194,c(Q1752346)|c(Q11204))
action count
action less
action union
action find_tuple_counts
relation P194
type Q7275
type Q1752346
action find_tuple_counts
relation P194
type Q7275
type Q11204
action count
action filter_multi_types
action find
entity Q487687
relation P194
type Q1752346
type Q11204
[ANSWER]
[{'concept': 'Q7275'}, 'P194', [{'concept': 'Q1752346'}, {'concept': 'Q11204'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) ?z WHERE { ?n rdf:type ?t . VALUES ( ?t ) { ( ontology:Q1752346 ) ( ontology:Q11204 ) } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { resource:Q487687 property:P194 ?p . { { ?p rdf:type ontology:Q1752346 } UNION { ?p rdf:type ontology:Q11204 } } } } . FILTER ( ?y < ?a ) }
Republic of Serbian Krajina Democratic Republic of Afghanistan Second Polish Republic Coalition Provisional Authority Kingdom of Nepal Roman Kingdom Socialist Republic of Bosnia and Herzegovina First Portuguese Republic Finnish Socialist Workers' Republic Socialist Republic of Croatia Crown of Aragon Dominion of Pakistan Ukrainian Soviet Socialist Republic Kingdom of Yugoslavia United Kingdom of Portugal, Brazil and the Algarves East Germany Kingdom of Poland Kingdom of Jerusalem Kalmar Union Socialist Republic of Romania Duchy of Brittany Italian Regency of Carnaro Socialist Federal Republic of Yugoslavia Democratic Federal Yugoslavia Commonwealth of England Cossack Hetmanate Ryukyu Kingdom Kingdom of Saxony Maratha Empire Moldavian Democratic Republic Chagatai Khanate Republic of Venice Grand Duchy of Lithuania West Pakistan South Yemen Mongol Empire Crown of Castile Kaluga Soviet Republic Dominion of India Kingdom of France Islamic Emirate of Afghanistan Free City of Danzig
42
action count
action less
action union
action find_tuple_counts
relation legislative body
type state
type assembly
action find_tuple_counts
relation legislative body
type state
type legislature
action count
action filter_multi_types
action find
entity Third Republic of South Korea
relation legislative body
type assembly
type legislature
[{'concept': 'state'}, 'legislative body', [{'concept': 'assembly'}, {'concept': 'legislature'}]]
SELECT DISTINCT ( COUNT ( ?z ) AS ?s ) WHERE { { SELECT DISTINCT ( COUNT ( ?n ) AS ?y ) ?z WHERE { ?n rdf:type ?t . VALUES ( ?t ) { ( ontology:assembly ) ( ontology:legislature ) } } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?a ) WHERE { resource:Third_Republic_of_South_Korea property:legislative_body ?p . { { ?p rdf:type ontology:assembly } UNION { ?p rdf:type ontology:legislature } } } } . FILTER ( ?y < ?a ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q1376761 Q5725696
P27
Q15617994
USER
Which administrative territories are Henry McGhee or Meschac Gaba a civilian of ?
OR((Q5725696,P27,c(Q15617994)), (Q1376761,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5725696
relation P27
action find
entity Q1376761
relation P27
type Q15617994
{'OR': [['Q5725696', 'P27', {'concept': 'Q15617994'}], ['Q1376761', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q1376761 property:P27 ?g } UNION { resource:Q5725696 property:P27 ?g } } . ?g rdf:type ontology:Q15617994 }
Meschac Gaba Henry McGhee
action filter_type
action union
action find
entity Henry McGhee
relation country of citizenship
action find
entity Meschac Gaba
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Henry McGhee', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Meschac Gaba', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Meschac_Gaba property:country_of_citizenship ?g } UNION { resource:Henry_McGhee property:country_of_citizenship ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q962 Q145
SYSTEM
Benin, United Kingdom
Q962 Q145
OR((Q5725696,P27,c(Q15617994)), (Q1376761,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q5725696
relation P27
action find
entity Q1376761
relation P27
type Q15617994
[ANSWERS] are Henry McGhee or Meschac Gaba a civilian of
{'OR': [['Q5725696', 'P27', {'concept': 'Q15617994'}], ['Q1376761', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q1376761 property:P27 ?g } UNION { resource:Q5725696 property:P27 ?g } } . ?g rdf:type ontology:Q15617994 }
Benin United Kingdom
Benin and United Kingdom are Henry McGhee or Meschac Gaba a civilian of
Benin United Kingdom
action filter_type
action union
action find
entity Henry McGhee
relation country of citizenship
action find
entity Meschac Gaba
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Henry McGhee', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Meschac Gaba', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Meschac_Gaba property:country_of_citizenship ?g } UNION { resource:Henry_McGhee property:country_of_citizenship ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]