Simple Question (Direct)
Simple Question
Q3893612
P937
Q56061
USER
Which is the work location of Paola Pelino ?
(Q3893612,P937,c(Q56061))
action filter_type
action find
entity Q3893612
relation P937
type Q56061
['Q3893612', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . resource:Q3893612 property:P937 ?l }
Paola Pelino
action filter_type
action find
entity Paola Pelino
relation work location
type administrative territorial entity
['Paola Pelino', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . resource:Paola_Pelino property:work_location ?l }
[]
administrative territorial entity
Q220
SYSTEM
Rome
Q220
(Q3893612,P937,c(Q56061))
action filter_type
action find
entity Q3893612
relation P937
type Q56061
[ANSWER] is the work location of Paola Pelino
['Q3893612', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q56061 . resource:Q3893612 property:P937 ?l }
Rome
Rome is the work location of Paola Pelino
Rome
action filter_type
action find
entity Paola Pelino
relation work location
type administrative territorial entity
['Paola Pelino', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:administrative_territorial_entity . resource:Paola_Pelino property:work_location ?l }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3893612
P1412
Q34770
USER
Which language is spoken by that person ?
(Q220,P1412,c(Q34770))
action filter_type
action find
entity Q3893612
relation P1412
type Q34770
['Q220', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { resource:Q3893612 property:P1412 ?s . ?s rdf:type ontology:Q34770 }
Paola Pelino
action filter_type
action find
entity Paola Pelino
relation languages spoken, written or signed
type language
['Rome', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { resource:Paola_Pelino property:languages_spoken,_written_or_signed ?s . ?s rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q220,P1412,c(Q34770))
action filter_type
action find
entity Q3893612
relation P1412
type Q34770
By [ANSWER] is spoken by that person
['Q220', 'P1412', {'concept': 'Q34770'}]
SELECT DISTINCT ?s WHERE { resource:Q3893612 property:P1412 ?s . ?s rdf:type ontology:Q34770 }
Italian
By Italian is spoken by that person
Italian
action filter_type
action find
entity Paola Pelino
relation languages spoken, written or signed
type language
['Rome', 'languages spoken, written or signed', {'concept': 'language'}]
SELECT DISTINCT ?s WHERE { resource:Paola_Pelino property:languages_spoken,_written_or_signed ?s . ?s rdf:type ontology:language }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P37
Q34770 Q7275
USER
Which states have their official language as min number of languages ?
(c(Q7275),P37,c(Q34770))
action argmin
action find_tuple_counts
relation P37
type Q7275
type Q34770
[{'concept': 'Q7275'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?a ) { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?x ) WHERE { ?g property:P37 ?m . ?g rdf:type ontology:Q7275 . ?m rdf:type ontology:Q34770 } GROUP BY ?g } } . { SELECT DISTINCT ?k ( COUNT ( ?b ) AS ?e ) WHERE { ?k property:P37 ?b . ?k rdf:type ontology:Q7275 . ?b rdf:type ontology:Q34770 } GROUP BY ?k } . FILTER ( ?e = ?a ) }
action argmin
action find_tuple_counts
relation official language
type state
type language
[{'concept': 'state'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?a ) { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?x ) WHERE { ?g property:official_language ?m . ?g rdf:type ontology:state . ?m rdf:type ontology:language } GROUP BY ?g } } . { SELECT DISTINCT ?k ( COUNT ( ?b ) AS ?e ) WHERE { ?k property:official_language ?b . ?k rdf:type ontology:state . ?b rdf:type ontology:language } GROUP BY ?k } . FILTER ( ?e = ?a ) }
[]
language state
Q15180 Q330988 Q147909
SYSTEM
Soviet Union, Democratic Kampuchea, Kingdom of Bulgaria
Q2444884 Q2145397 Q8146595 Q552157 Q4461035 Q218023 Q1493843 Q271570 Q303421 Q36704 Q23541302 Q3456417 Q75613 Q1269234 Q10874967 Q15180 Q696908 Q550374 Q14934927 Q220167 Q330988 Q842091 Q877579 Q147909 Q76236 Q319881 Q1136259 Q112558 Q1142179 Q7382038 Q7318 Q729768 Q212056 Q940741 Q21203 Q12490507 Q600018 Q107299 Q1029847 Q1044668 Q139319 Q1483430 Q11876909 Q150981 Q1362278 Q623751 Q633573
(c(Q7275),P37,c(Q34770))
action argmin
action find_tuple_counts
relation P37
type Q7275
type Q34770
[ANSWERS] have their official language as min number of languages
[{'concept': 'Q7275'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?a ) { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?x ) WHERE { ?g property:P37 ?m . ?g rdf:type ontology:Q7275 . ?m rdf:type ontology:Q34770 } GROUP BY ?g } } . { SELECT DISTINCT ?k ( COUNT ( ?b ) AS ?e ) WHERE { ?k property:P37 ?b . ?k rdf:type ontology:Q7275 . ?b rdf:type ontology:Q34770 } GROUP BY ?k } . FILTER ( ?e = ?a ) }
Tibet Goshen (South Africa) Upingtonia Nieuwe Republiek Akkadian empire Orange Free State Klein Vrystaat Kingdom of Araucanía and Patagonia Kingdom of Galicia Yugoslavia Kaluga Soviet Republic Republic of Saint-Malo Almoravid dynasty Stellaland People's Republic of Zhongtai Soviet Union Kingdom of Poland South African Republic Murrawarri Republic Lydenburg Republic Democratic Kampuchea Duchy of Normandy Kugelmugel Kingdom of Bulgaria Lithuanian–Belorussian Soviet Socialist Republic Republic of Taiwan Southwestern Somalia Republic of Saugeais Orange River Colony Imperial Throne Nazi Germany Zulu Kingdom Mongolian People's Republic Republic of Hungary Aruba Rashidun Caliphate Kingdom of Hungary Kingdom of Northumbria Natalia Republic Republic of Rose Island Russian Republic Principality of Kiev State of Brazil North German Confederation United States of Stellaland Kingdom of Bernicia Kingdom of Rheged
Soviet Union, Democratic Kampuchea and Kingdom of Bulgaria have their official language as min number of languages
Soviet Union Democratic Kampuchea Kingdom of Bulgaria
action argmin
action find_tuple_counts
relation official language
type state
type language
[{'concept': 'state'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?x ) AS ?a ) { SELECT DISTINCT ?g ( COUNT ( ?m ) AS ?x ) WHERE { ?g property:official_language ?m . ?g rdf:type ontology:state . ?m rdf:type ontology:language } GROUP BY ?g } } . { SELECT DISTINCT ?k ( COUNT ( ?b ) AS ?e ) WHERE { ?k property:official_language ?b . ?k rdf:type ontology:state . ?b rdf:type ontology:language } GROUP BY ?k } . FILTER ( ?e = ?a ) }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P37
Q34770 Q1048835 Q15617994
USER
Which languages are recognized as the official language of max number of political territories or administrative territories ?
(c(Q1048835)|c(Q15617994),P37,c(Q34770))
action argmax
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action find_reverse_tuple_counts
relation P37
type Q34770
type Q15617994
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?r ) { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?k ) WHERE { { ?l property:P37 ?m . ?m rdf:type ontology:Q34770 . ?l rdf:type ontology:Q1048835 } UNION { ?l property:P37 ?m . ?l rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q34770 } } GROUP BY ?m } } . FILTER ( ?t = ?r ) . { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?t ) WHERE { ?v rdf:type ?e . VALUES ( ?e ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?p } }
action argmax
action union
action find_reverse_tuple_counts
relation official language
type language
type political territorial entity
action find_reverse_tuple_counts
relation official language
type language
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?r ) { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?k ) WHERE { { ?l property:official_language ?m . ?m rdf:type ontology:language . ?l rdf:type ontology:political_territorial_entity } UNION { ?l property:official_language ?m . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:language } } GROUP BY ?m } } . FILTER ( ?t = ?r ) . { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?t ) WHERE { ?v rdf:type ?e . VALUES ( ?e ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?p } }
[]
language political territorial entity designation for an administrative territorial entity
Q1860
SYSTEM
English
Q1860
(c(Q1048835)|c(Q15617994),P37,c(Q34770))
action argmax
action union
action find_reverse_tuple_counts
relation P37
type Q34770
type Q1048835
action find_reverse_tuple_counts
relation P37
type Q34770
type Q15617994
[ANSWER] is recognized as the official language of max number of political territories or administrative territories
[[{'concept': 'Q1048835'}, {'concept': 'Q15617994'}], 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?r ) { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?k ) WHERE { { ?l property:P37 ?m . ?m rdf:type ontology:Q34770 . ?l rdf:type ontology:Q1048835 } UNION { ?l property:P37 ?m . ?l rdf:type ontology:Q15617994 . ?m rdf:type ontology:Q34770 } } GROUP BY ?m } } . FILTER ( ?t = ?r ) . { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?t ) WHERE { ?v rdf:type ?e . VALUES ( ?e ) { ( ontology:Q1048835 ) ( ontology:Q15617994 ) } } GROUP BY ?p } }
English
English is recognized as the official language of max number of political territories or administrative territories
English
action argmax
action union
action find_reverse_tuple_counts
relation official language
type language
type political territorial entity
action find_reverse_tuple_counts
relation official language
type language
type designation for an administrative territorial entity
[[{'concept': 'political territorial entity'}, {'concept': 'designation for an administrative territorial entity'}], 'official language', {'concept': 'language'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?k ) AS ?r ) { SELECT DISTINCT ?m ( COUNT ( ?l ) AS ?k ) WHERE { { ?l property:official_language ?m . ?m rdf:type ontology:language . ?l rdf:type ontology:political_territorial_entity } UNION { ?l property:official_language ?m . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity . ?m rdf:type ontology:language } } GROUP BY ?m } } . FILTER ( ?t = ?r ) . { SELECT DISTINCT ?p ( COUNT ( ?v ) AS ?t ) WHERE { ?v rdf:type ?e . VALUES ( ?e ) { ( ontology:political_territorial_entity ) ( ontology:designation_for_an_administrative_territorial_entity ) } } GROUP BY ?p } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q19901436
P36
Q56061 Q20667921 Q7275
USER
Which states have approximately the same number of administrative territories or french administrative divisions as their capital as Suriname ?
(c(Q7275),P36,c(Q56061)|c(Q20667921))
action approx
action union
action find_tuple_counts
relation P36
type Q7275
type Q56061
action find_tuple_counts
relation P36
type Q7275
type Q20667921
action count
action filter_multi_types
action find
entity Q19901436
relation P36
type Q56061
type Q20667921
[{'concept': 'Q7275'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q20667921'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { resource:Q19901436 property:P36 ?w . { VALUES ( ?m ) { ( ontology:Q56061 ) ( ontology:Q20667921 ) } . ?w rdf:type ?m } } } . FILTER ( ?r = ?k ) . { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?r ) WHERE { { ?u property:P36 ?h . ?u rdf:type ontology:Q7275 . ?h rdf:type ontology:Q56061 } UNION { ?u property:P36 ?h . ?u rdf:type ontology:Q7275 . ?h rdf:type ontology:Q20667921 } } GROUP BY ?u } }
Suriname
action approx
action union
action find_tuple_counts
relation capital
type state
type administrative territorial entity
action find_tuple_counts
relation capital
type state
type type of french administrative division
action count
action filter_multi_types
action find
entity Suriname
relation capital
type administrative territorial entity
type type of french administrative division
[{'concept': 'state'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'type of french administrative division'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { resource:Suriname property:capital ?w . { VALUES ( ?m ) { ( ontology:administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } . ?w rdf:type ?m } } } . FILTER ( ?r = ?k ) . { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?r ) WHERE { { ?u property:capital ?h . ?u rdf:type ontology:state . ?h rdf:type ontology:administrative_territorial_entity } UNION { ?u property:capital ?h . ?u rdf:type ontology:state . ?h rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?u } }
[]
administrative territorial entity type of french administrative division state
Q33946 Q15180 Q980
SYSTEM
Czechoslovakia, Soviet Union, Bavaria
Q230791 Q15102440 Q46652 Q7559152 Q568523 Q788071 Q207162 Q572222 Q1275158 Q3456417 Q174193 Q466581 Q110888 Q2145402 Q1471995 Q1295806 Q457167 Q797527 Q190513 Q889374 Q2308237 Q486181 Q775550 Q72785 Q834486 Q186096 Q133356 Q501684 Q164079 Q588672 Q62623 Q282475 Q1789596 Q184536 Q523380 Q980 Q154401 Q746443 Q252580 Q3446210 Q317078 Q332005 Q874954 Q867782 Q506008 Q188553 Q536476 Q1068408 Q1150344 Q330362 Q8146595 Q23366230 Q267584 Q310293 Q15864 Q1362278 Q1269234 Q918204 Q1067513 Q1468426 Q71092 Q15180 Q800236 Q27260 Q249578 Q16410 Q215643 Q212278 Q210542 Q223936 Q8735 Q8733 Q156038 Q7405 Q208404 Q467627 Q1796239 Q1152445 Q2670639 Q2412900 Q190025 Q229411 Q1771831 Q105313 Q44642 Q129569 Q38872 Q107299 Q546282 Q466803 Q11876909 Q541455 Q646374 Q241748 Q210163 Q842931 Q858841 Q427703 Q2301372 Q216632 Q207272 Q889394 Q151148 Q273025 Q149747 Q27306 Q1123960 Q617218 Q1132786 Q167360 Q1186434 Q954585 Q150069 Q1811029 Q762943 Q1998866 Q106577 Q473433 Q651377 Q161885 Q191077 Q468814 Q174306 Q1617495 Q37024 Q1194765 Q157367 Q760893 Q1539360 Q2305208 Q1152126 Q652560 Q1639475 Q1636212 Q503623 Q124943 Q1311219 Q1322229 Q12548 Q25227 Q870517 Q19901436 Q623751 Q726798 Q28428 Q1479952 Q303421 Q449639 Q1395320 Q1143524 Q2086556 Q26988 Q42585 Q170468 Q600018 Q323904 Q1117051 Q1477220 Q4159675 Q269864 Q199841 Q335088 Q325461 Q583038 Q860407 Q146761 Q200262 Q1296908 Q769782 Q497777 Q878319 Q7251405 Q582861 Q206411 Q179293 Q158725 Q139315 Q832554 Q3271735 Q160440 Q2305337 Q211853 Q213638 Q2340665 Q1538311 Q2657134 Q2414171 Q218023 Q2162698 Q1077630 Q1149230 Q324470 Q551067 Q176495 Q796583 Q330988 Q1136259 Q1194329 Q28456 Q1183649 Q209065 Q21203 Q631210 Q75903 Q2086608 Q733799 Q178913 Q131964 Q83274 Q62589 Q4948 Q836169 Q234009 Q28208 Q903779 Q1774 Q55502 Q713750 Q2552742 Q220167 Q696908 Q147909 Q319881 Q1709185 Q39760 Q62519 Q736727 Q668294 Q83286 Q210036 Q3755547 Q1255614 Q76048 Q181254 Q207521 Q2396442 Q142417 Q2428714 Q1406298 Q14934927 Q1796198 Q170174 Q699871 Q175276 Q177076 Q7318 Q844910 Q248452 Q175379 Q552157 Q170770 Q30623 Q747314 Q5157575 Q3456373 Q862304 Q217196 Q154195 Q266923 Q285658 Q150061 Q842091 Q70972 Q268970 Q1143164 Q1562357 Q1164500 Q161036 Q2314907 Q2184 Q774783 Q105092 Q178038 Q206279 Q1469100 Q25279 Q1078602 Q2378381 Q225890 Q202775 Q1471373 Q374521 Q491507 Q1044536 Q1333032 Q940741 Q289577 Q150058 Q4461035 Q33946 Q762084 Q544630 Q180114 Q431731 Q1320058 Q36704 Q112558 Q28233 Q889884 Q698239 Q1142179 Q1277557 Q4453003 Q4453007 Q829356 Q764697 Q853477 Q1751495 Q738264 Q386496 Q696241 Q152420 Q11774 Q4843701 Q2712121 Q13426199 Q964024 Q877155 Q26273 Q2365048 Q4274522 Q230407 Q1192936 Q2109946 Q71747 Q676184 Q128938 Q837136 Q146597 Q1072362 Q5362837 Q93180 Q28573 Q949268 Q1986139 Q151536 Q211274 Q61292 Q671899 Q7314469 Q80211 Q12490507 Q899706 Q1029847 Q6415938 Q5148517 Q41304
(c(Q7275),P36,c(Q56061)|c(Q20667921))
action approx
action union
action find_tuple_counts
relation P36
type Q7275
type Q56061
action find_tuple_counts
relation P36
type Q7275
type Q20667921
action count
action filter_multi_types
action find
entity Q19901436
relation P36
type Q56061
type Q20667921
[ANSWERS] have approximately the same number of administrative territories or french administrative divisions as their capital as Suriname
[{'concept': 'Q7275'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q20667921'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { resource:Q19901436 property:P36 ?w . { VALUES ( ?m ) { ( ontology:Q56061 ) ( ontology:Q20667921 ) } . ?w rdf:type ?m } } } . FILTER ( ?r = ?k ) . { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?r ) WHERE { { ?u property:P36 ?h . ?u rdf:type ontology:Q7275 . ?h rdf:type ontology:Q56061 } UNION { ?u property:P36 ?h . ?u rdf:type ontology:Q7275 . ?h rdf:type ontology:Q20667921 } } GROUP BY ?u } }
Kingdom of Scotland Kingdom of Serbs, Croatians and Slovenes Malacca sultanate Somali Republic Nobatia Talysh-Mughan Autonomous Republic Bourbon Restoration County of Horne Elymais Republic of Saint-Malo United Kingdom of Great Britain and Ireland Hoysala Empire Kingdom of Essex Republic of South Peru Former Qin Lower Yafa West Ukrainian People's Republic British Togoland Khanate of Sibir Warsangali Sultanate Ahom kingdom Samanid dynasty Adamawa Emirate Cretan State Federation of South Arabia Tsardom of Russia Ukrainian Soviet Socialist Republic Kingdom of Gomma Kingdom of Hanover Hammadid dynasty Kalmar Union Kingdom of Kartli-Kakheti Croatia in personal union with Hungary Mali Empire Republic of Central Lithuania Bavaria Slovak Republic Golden Ambrosian Republic Duchy of Modena and Reggio Kingdom of Pamplona Pskov Republic Principality of Achaea Principality of Theodoro Kingdom of Funan Kingdom of Deira Batavian Republic Toucouleur Empire Kuru Kingdom Johor Sultanate Commonwealth of England Upingtonia Republic of Geneva Yemen Arab Republic Saar Protectorate United Kingdom of the Netherlands United States of Stellaland Stellaland Rajpipla State Injuids Limmu-Ennarea Second French Empire Soviet Union Bahawalpur State Samma dynasty Ghaznavid Empire People's Republic of Hungary Indo-Greek Kingdom Kingdom of Holland Second Brazilian Republic Kingdom of Italy Medes Qing dynasty Duchy of Courland and Semigallia Sui dynasty Kingdom of Armenia Durrani Empire Kingdom of Seville Aerican Empire Powys Wenwynwyn Republic of Salé Federal Republic of Central America Delhi Sultanate Kruševo Republic Kingdom of Wessex Federation of Arab Republics Poher Prussia Kingdom of Northumbria Xia Pallava State of Brazil Anglo-Egyptian Sudan French India Kingdom of Serbia Astrakhan Khanate East Pakistan Kingdom of Croatia Free State of Schaumburg-Lippe Kingdom of Toledo Mali Federation Second Polish Republic Portuguese Mozambique Chola dynasty 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 Ammon Shunga Empire Kingdom of Great Britain Kingdom of Yugoslavia Dahomey Republic of Genoa Kingdom of Jaén Serbia and Montenegro Kamarupa Brandenburg-Prussia Jolof Empire Northern Liang Soviet Russia People's Republic of the Congo West Indies Federation Mountainous Republic of the Northern Caucasus Karabakh Khanate Gold Coast Kingdom of Egypt Jaffna kingdom Enlightenment in Spain Holy Roman Empire Netherlands Antilles Odrysian kingdom Suriname Kingdom of Bernicia Tulunids Baekje Kadamba Dynasty Kingdom of Galicia Alodia Duchy of Siewierz Northern Qi Kakatiya dynasty Cook Islands Kingdom of Bohemia United Arab Republic Kingdom of Hungary Portuguese India Kingdom of Illyria Somali Democratic Republic Javad khanate 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 First Spanish Republic Serbian Despotate Protectorate of Peru Marinid dynasty Democratic Republic of Azerbaijan Kingdom of Castile Tanganyika Territory Dʿmt Argentine Confederation Kingdom of Arles Crimean Khanate Azerbaijan People's Government Republic of Serbian Krajina Kingdom of Cyprus Basutoland Travancore-Cochin Kingdom of Albania First Brazilian Republic Orange Free State Duchy of Bohemia Septinsular Republic Western Yan Kara Koyunlu Northern Zhou Federal State of Austria Kingdom of Kongo Democratic Kampuchea Southwestern Somalia Nova Roma Silla Deccan sultanates Kingdom of Greece Aruba Nogai Horde Turkestan Autonomous Soviet Socialist Republic Western Satraps Kingdom of the Hwicce 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 Zanzibar Kingdom of Jerusalem West Germany Northland State Lydenburg Republic Kingdom of Poland Kingdom of Bulgaria Republic of Taiwan Kingdom of Spain under Joseph Bonaparte Gaza Strip Finnish Democratic Republic Republic of Siena Kamerun Socialist Federal Republic of Yugoslavia Chechen Republic of Ichkeria Kingdom of Italy Indo-Parthian Kingdom Congo Free State Empire of Nicea Abyssinia Kingdom of Galicia and Lodomeria Kingdom of Valencia Sena dynasty Serbian Empire Murrawarri Republic Kingdom of Córdoba Papal States Taebong Kingdom of León Caucasian Albania Nazi Germany Pandyan Dynasty British North America Empire of China Nieuwe Republiek Grand Duchy of Moscow Manchukuo Bechuanaland Protectorate Griqualand East Republic of Brescia Kara-Khitan Khanate Crown of Castile Kingdom of Bavaria Kingdom of Mysore First Mexican Empire Republic of Ararat Duchy of Normandy Kingdom of France Republic of German-Austria Western Wei Republic of Central Albania Kingdom of Murcia Free State of Prussia Later Zhao Russian Soviet Federative Socialist Republic Sovereign Principality of the United Netherlands Kingdom of Mercia Second Spanish Republic Waalo Karamanids Curaçao Kingdom of Nepal State of Aden Kingdom of Strathclyde Qu'aiti Saloum Bahmani Sultanate Egypt Eyalet Spain under the Restoration Elmet Republic of Hungary Himyarite Kingdom Travancore Akkadian empire Czechoslovakia Bamana Empire Republic of Maryland Ayyubid dynasty Tanganyika History of Laos to 1945 Yugoslavia Republic of Saugeais Korean Empire Kingdom of Rwanda Hubaekje Orange River Colony Democratic Federal Yugoslavia Tashkent State Tashkent Khanate Kingdom of Makuria Taifa of Orihuela Lan Xang Slovak Socialist Republic Los Altos, Central America Kingdom of Montenegro Khanate of Kokand Guelders Gupta Empire Libyan Arab Jamahiriya Republic of Connaught Republic of China Moldavian Democratic Republic Chera Dynasty Sint Maarten Adal Sultanate Tyrconnell Kingdom of Israel Kingdom of Burundi Principality of Galilee Duchy of Brittany Kingdom of Sussex Shang dynasty Kingdom of Deheubarth Zand dynasty Provisional Revolutionary Government of the Republic of South Vietnam Emirate of Jabal Shammar Seleucid Empire Inca Nanda Empire Parthian Empire Novgorod Republic People's Republic of Poland Far Eastern Republic Duchy of Teschen Republic of Georgia Lithuanian Soviet Socialist Republic Rashidun Caliphate Peru–Bolivian Confederation Natalia Republic Emirate of Dhala Colony and Protectorate of Nigeria Weimar Republic
Czechoslovakia, Soviet Union and Bavaria have approximately the same number of administrative territories or french administrative divisions as their capital as Suriname
Czechoslovakia Soviet Union Bavaria
action approx
action union
action find_tuple_counts
relation capital
type state
type administrative territorial entity
action find_tuple_counts
relation capital
type state
type type of french administrative division
action count
action filter_multi_types
action find
entity Suriname
relation capital
type administrative territorial entity
type type of french administrative division
[{'concept': 'state'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'type of french administrative division'}]]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?k ) WHERE { resource:Suriname property:capital ?w . { VALUES ( ?m ) { ( ontology:administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } . ?w rdf:type ?m } } } . FILTER ( ?r = ?k ) . { SELECT DISTINCT ?u ( COUNT ( ?h ) AS ?r ) WHERE { { ?u property:capital ?h . ?u rdf:type ontology:state . ?h rdf:type ontology:administrative_territorial_entity } UNION { ?u property:capital ?h . ?u rdf:type ontology:state . ?h rdf:type ontology:type_of_french_administrative_division } } GROUP BY ?u } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q172107
P36
Q56061 Q20667921 Q7275
USER
And also tell me about Polish–Lithuanian Commonwealth?
(c(Q7275),P36,c(Q56061)|c(Q20667921))
action approx
action union
action find_tuple_counts
relation P36
type Q7275
type Q56061
action find_tuple_counts
relation P36
type Q7275
type Q20667921
action count
action filter_multi_types
action find
entity Q172107
relation P36
type Q56061
type Q20667921
[{'concept': 'Q7275'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q20667921'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { resource:Q172107 property:P36 ?j . { { ?j rdf:type ontology:Q56061 } UNION { ?j rdf:type ontology:Q20667921 } } } } . FILTER ( ?f = ?n ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) ?s WHERE { ?w rdf:type ?a . VALUES ( ?a ) { ( ontology:Q56061 ) ( ontology:Q20667921 ) } } GROUP BY ?s } }
Polish–Lithuanian Commonwealth
action approx
action union
action find_tuple_counts
relation capital
type state
type administrative territorial entity
action find_tuple_counts
relation capital
type state
type type of french administrative division
action count
action filter_multi_types
action find
entity Polish–Lithuanian Commonwealth
relation capital
type administrative territorial entity
type type of french administrative division
[{'concept': 'state'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'type of french administrative division'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { resource:Polish–Lithuanian_Commonwealth property:capital ?j . { { ?j rdf:type ontology:administrative_territorial_entity } UNION { ?j rdf:type ontology:type_of_french_administrative_division } } } } . FILTER ( ?f = ?n ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) ?s WHERE { ?w rdf:type ?a . VALUES ( ?a ) { ( ontology:administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } } GROUP BY ?s } }
[]
administrative territorial entity type of french administrative division state
Q49683 Q172107 Q199442
SYSTEM
Grand Duchy of Lithuania, Polish–Lithuanian Commonwealth, Kingdom of Aragon
Q31454 Q870055 Q5148520 Q172107 Q199442 Q431575 Q580188 Q165154 Q48685 Q76236 Q209857 Q49683 Q6412664
(c(Q7275),P36,c(Q56061)|c(Q20667921))
action approx
action union
action find_tuple_counts
relation P36
type Q7275
type Q56061
action find_tuple_counts
relation P36
type Q7275
type Q20667921
action count
action filter_multi_types
action find
entity Q172107
relation P36
type Q56061
type Q20667921
[ANSWERS]
[{'concept': 'Q7275'}, 'P36', [{'concept': 'Q56061'}, {'concept': 'Q20667921'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { resource:Q172107 property:P36 ?j . { { ?j rdf:type ontology:Q56061 } UNION { ?j rdf:type ontology:Q20667921 } } } } . FILTER ( ?f = ?n ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) ?s WHERE { ?w rdf:type ?a . VALUES ( ?a ) { ( ontology:Q56061 ) ( ontology:Q20667921 ) } } GROUP BY ?s } }
Kingdom of Libya Kingdom of Laos Colony of Niger Polish–Lithuanian Commonwealth Kingdom of Aragon Idrisid dynasty Mutawakkilite Kingdom of Yemen Kingdom of Sardinia Judah Lithuanian–Belorussian Soviet Socialist Republic Kingdom of Lombardy–Venetia Grand Duchy of Lithuania Realm of Stefan Dragutin
Grand Duchy of Lithuania Polish–Lithuanian Commonwealth Kingdom of Aragon
action approx
action union
action find_tuple_counts
relation capital
type state
type administrative territorial entity
action find_tuple_counts
relation capital
type state
type type of french administrative division
action count
action filter_multi_types
action find
entity Polish–Lithuanian Commonwealth
relation capital
type administrative territorial entity
type type of french administrative division
[{'concept': 'state'}, 'capital', [{'concept': 'administrative territorial entity'}, {'concept': 'type of french administrative division'}]]
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( COUNT ( ?j ) AS ?n ) WHERE { resource:Polish–Lithuanian_Commonwealth property:capital ?j . { { ?j rdf:type ontology:administrative_territorial_entity } UNION { ?j rdf:type ontology:type_of_french_administrative_division } } } } . FILTER ( ?f = ?n ) . { SELECT DISTINCT ( COUNT ( ?w ) AS ?f ) ?s WHERE { ?w rdf:type ?a . VALUES ( ?a ) { ( ontology:administrative_territorial_entity ) ( ontology:type_of_french_administrative_division ) } } GROUP BY ?s } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P282
Q8192 Q9779 Q34770
USER
How many languages use exactly 1 writing systems or alphabets as the writing system ?
(c(Q34770),P282,c(Q8192)|c(Q9779))
action count
action equal
action union
action find_tuple_counts
relation P282
type Q34770
type Q8192
action find_tuple_counts
relation P282
type Q34770
type Q9779
value 1
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q8192'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) ?r WHERE { VALUES ( ?l ) { ( ontology:Q8192 ) ( ontology:Q9779 ) } . ?u rdf:type ?l } GROUP BY ?r } . FILTER ( ?j = 1 ) }
action count
action equal
action union
action find_tuple_counts
relation writing system
type language
type writing system
action find_tuple_counts
relation writing system
type language
type alphabet
value 1
[{'concept': 'language'}, 'writing system', [{'concept': 'writing system'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) ?r WHERE { VALUES ( ?l ) { ( ontology:writing_system ) ( ontology:alphabet ) } . ?u rdf:type ?l } GROUP BY ?r } . FILTER ( ?j = 1 ) }
[]
writing system alphabet language
SYSTEM
8
Q13211 Q35499 Q1669994 Q33251 Q21161942 Q1639124 Q36464 Q652
(c(Q34770),P282,c(Q8192)|c(Q9779))
action count
action equal
action union
action find_tuple_counts
relation P282
type Q34770
type Q8192
action find_tuple_counts
relation P282
type Q34770
type Q9779
value 1
[ANSWER]
[{'concept': 'Q34770'}, 'P282', [{'concept': 'Q8192'}, {'concept': 'Q9779'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) ?r WHERE { VALUES ( ?l ) { ( ontology:Q8192 ) ( ontology:Q9779 ) } . ?u rdf:type ?l } GROUP BY ?r } . FILTER ( ?j = 1 ) }
Ruthenian Old Church Slavonic Minoan language Church Slavonic Serbian written in Cyrillic Slavoserbian Nivkh language Italian
8
action count
action equal
action union
action find_tuple_counts
relation writing system
type language
type writing system
action find_tuple_counts
relation writing system
type language
type alphabet
value 1
[{'concept': 'language'}, 'writing system', [{'concept': 'writing system'}, {'concept': 'alphabet'}]]
SELECT DISTINCT ( COUNT ( ?r ) AS ?w ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?j ) ?r WHERE { VALUES ( ?l ) { ( ontology:writing_system ) ( ontology:alphabet ) } . ?u rdf:type ?l } GROUP BY ?r } . FILTER ( ?j = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q172107
P36
Q56061
USER
How many administrative territories are known as the capital of Polish–Lithuanian Commonwealth ?
(Q172107,P36,c(Q56061))
action count
action filter_type
action find
entity Q172107
relation P36
type Q56061
['Q172107', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { resource:Q172107 property:P36 ?w . ?w rdf:type ontology:Q56061 }
Polish–Lithuanian Commonwealth
action count
action filter_type
action find
entity Polish–Lithuanian Commonwealth
relation capital
type administrative territorial entity
['Polish–Lithuanian Commonwealth', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { resource:Polish–Lithuanian_Commonwealth property:capital ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
2
Q270 Q216
(Q172107,P36,c(Q56061))
action count
action filter_type
action find
entity Q172107
relation P36
type Q56061
[ANSWER]
['Q172107', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { resource:Q172107 property:P36 ?w . ?w rdf:type ontology:Q56061 }
Warsaw Vilnius
2
action count
action filter_type
action find
entity Polish–Lithuanian Commonwealth
relation capital
type administrative territorial entity
['Polish–Lithuanian Commonwealth', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?h ) WHERE { resource:Polish–Lithuanian_Commonwealth property:capital ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q863297
P36
Q56061
USER
And what about Bilma Department?
(Q863297,P36,c(Q56061))
action count
action filter_type
action find
entity Q863297
relation P36
type Q56061
['Q863297', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { resource:Q863297 property:P36 ?p . ?p rdf:type ontology:Q56061 }
Bilma Department
action count
action filter_type
action find
entity Bilma Department
relation capital
type administrative territorial entity
['Bilma Department', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { resource:Bilma_Department property:capital ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
SYSTEM
1
Q863321
(Q863297,P36,c(Q56061))
action count
action filter_type
action find
entity Q863297
relation P36
type Q56061
[ANSWER]
['Q863297', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { resource:Q863297 property:P36 ?p . ?p rdf:type ontology:Q56061 }
Bilma
1
action count
action filter_type
action find
entity Bilma Department
relation capital
type administrative territorial entity
['Bilma Department', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?t ) WHERE { resource:Bilma_Department property:capital ?p . ?p rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q491537
Q56061
USER
And how about Whitfield County?
(Q491537,P36,c(Q56061))
action count
action filter_type
action find
entity Q491537
relation P36
type Q56061
['Q491537', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { ?z rdf:type ontology:Q56061 . resource:Q491537 property:P36 ?z }
Whitfield County
action count
action filter_type
action find
entity Whitfield County
relation capital
type administrative territorial entity
['Whitfield County', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { ?z rdf:type ontology:administrative_territorial_entity . resource:Whitfield_County property:capital ?z }
[]
administrative territorial entity
SYSTEM
1
(Q491537,P36,c(Q56061))
action count
action filter_type
action find
entity Q491537
relation P36
type Q56061
[ANSWER]
['Q491537', 'P36', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { ?z rdf:type ontology:Q56061 . resource:Q491537 property:P36 ?z }
1
action count
action filter_type
action find
entity Whitfield County
relation capital
type administrative territorial entity
['Whitfield County', 'capital', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?l ) WHERE { ?z rdf:type ontology:administrative_territorial_entity . resource:Whitfield_County property:capital ?z }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P364
Q34770 Q15416 Q838948
USER
Which languages are considered to be the original language of creation of max number of television programs or works of art ?
(c(Q15416)|c(Q838948),P364,c(Q34770))
action argmax
action union
action find_reverse_tuple_counts
relation P364
type Q34770
type Q15416
action find_reverse_tuple_counts
relation P364
type Q34770
type Q838948
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?j ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?l WHERE { { ?l rdf:type ontology:Q34770 . ?y rdf:type ontology:Q15416 . ?y property:P364 ?l } UNION { ?y property:P364 ?l . ?l rdf:type ontology:Q34770 . ?y rdf:type ontology:Q838948 } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) ?e WHERE { VALUES ( ?i ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } . ?g rdf:type ?i } GROUP BY ?e } . FILTER ( ?h = ?j ) }
action argmax
action union
action find_reverse_tuple_counts
relation original language of work
type language
type television program
action find_reverse_tuple_counts
relation original language of work
type language
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?j ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?l WHERE { { ?l rdf:type ontology:language . ?y rdf:type ontology:television_program . ?y property:original_language_of_work ?l } UNION { ?y property:original_language_of_work ?l . ?l rdf:type ontology:language . ?y rdf:type ontology:work_of_art } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) ?e WHERE { VALUES ( ?i ) { ( ontology:television_program ) ( ontology:work_of_art ) } . ?g rdf:type ?i } GROUP BY ?e } . FILTER ( ?h = ?j ) }
[]
language television program work of art
Q1860
SYSTEM
English
Q1860
(c(Q15416)|c(Q838948),P364,c(Q34770))
action argmax
action union
action find_reverse_tuple_counts
relation P364
type Q34770
type Q15416
action find_reverse_tuple_counts
relation P364
type Q34770
type Q838948
[ANSWER] is considered to be the original language of creation of max number of television programs or works of art
[[{'concept': 'Q15416'}, {'concept': 'Q838948'}], 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?j ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?l WHERE { { ?l rdf:type ontology:Q34770 . ?y rdf:type ontology:Q15416 . ?y property:P364 ?l } UNION { ?y property:P364 ?l . ?l rdf:type ontology:Q34770 . ?y rdf:type ontology:Q838948 } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) ?e WHERE { VALUES ( ?i ) { ( ontology:Q15416 ) ( ontology:Q838948 ) } . ?g rdf:type ?i } GROUP BY ?e } . FILTER ( ?h = ?j ) }
English
English is considered to be the original language of creation of max number of television programs or works of art
English
action argmax
action union
action find_reverse_tuple_counts
relation original language of work
type language
type television program
action find_reverse_tuple_counts
relation original language of work
type language
type work of art
[[{'concept': 'television program'}, {'concept': 'work of art'}], 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?e WHERE { { SELECT DISTINCT ( MAX ( ?z ) AS ?j ) { SELECT DISTINCT ( COUNT ( ?y ) AS ?z ) ?l WHERE { { ?l rdf:type ontology:language . ?y rdf:type ontology:television_program . ?y property:original_language_of_work ?l } UNION { ?y property:original_language_of_work ?l . ?l rdf:type ontology:language . ?y rdf:type ontology:work_of_art } } GROUP BY ?l } } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?h ) ?e WHERE { VALUES ( ?i ) { ( ontology:television_program ) ( ontology:work_of_art ) } . ?g rdf:type ?i } GROUP BY ?e } . FILTER ( ?h = ?j ) }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1860
P123
Q166142
USER
Which applications were published by that language ?
(c(Q166142),P123,Q1860)
action filter_type
action find_reverse
entity Q1860
relation P123
type Q166142
[{'concept': 'Q166142'}, 'P123', 'Q1860']
SELECT DISTINCT ?h WHERE { ?h property:P123 resource:Q1860 . ?h rdf:type ontology:Q166142 }
English
action filter_type
action find_reverse
entity English
relation publisher
type application
[{'concept': 'application'}, 'publisher', 'English']
SELECT DISTINCT ?h WHERE { ?h property:publisher resource:English . ?h rdf:type ontology:application }
[]
application
Q7847513 Q308159 Q286737
SYSTEM
True Remembrance, Narcissu: Side 2nd, The Path
Q7847513 Q308159 Q286737
(c(Q166142),P123,Q1860)
action filter_type
action find_reverse
entity Q1860
relation P123
type Q166142
[ANSWERS] were published by that language
[{'concept': 'Q166142'}, 'P123', 'Q1860']
SELECT DISTINCT ?h WHERE { ?h property:P123 resource:Q1860 . ?h rdf:type ontology:Q166142 }
True Remembrance Narcissu: Side 2nd The Path
True Remembrance, Narcissu: Side 2nd and The Path were published by that language
True Remembrance Narcissu: Side 2nd The Path
action filter_type
action find_reverse
entity English
relation publisher
type application
[{'concept': 'application'}, 'publisher', 'English']
SELECT DISTINCT ?h WHERE { ?h property:publisher resource:English . ?h rdf:type ontology:application }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1445
Q166142 Q386724
USER
Which works represents a fictional universe described in max number of applications ?
(c(Q386724),P1445,c(Q166142))
action argmax
action find_tuple_counts
relation P1445
type Q386724
type Q166142
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q166142'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?h = ?d ) . { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?h ) WHERE { ?x rdf:type ontology:Q386724 . ?o rdf:type ontology:Q166142 . ?x property:P1445 ?o } GROUP BY ?x } . { SELECT DISTINCT ( MAX ( ?i ) AS ?d ) { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?i ) WHERE { ?f rdf:type ontology:Q386724 . ?s rdf:type ontology:Q166142 . ?f property:P1445 ?s } GROUP BY ?f } } }
action argmax
action find_tuple_counts
relation fictional universe described in
type work
type application
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'application'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?h = ?d ) . { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?h ) WHERE { ?x rdf:type ontology:work . ?o rdf:type ontology:application . ?x property:fictional_universe_described_in ?o } GROUP BY ?x } . { SELECT DISTINCT ( MAX ( ?i ) AS ?d ) { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?i ) WHERE { ?f rdf:type ontology:work . ?s rdf:type ontology:application . ?f property:fictional_universe_described_in ?s } GROUP BY ?f } } }
[]
application work
Q1203222
SYSTEM
Shrek
Q1203222
(c(Q386724),P1445,c(Q166142))
action argmax
action find_tuple_counts
relation P1445
type Q386724
type Q166142
[ANSWER] represents a fictional universe described in max number of applications
[{'concept': 'Q386724'}, 'P1445', {'concept': 'Q166142'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?h = ?d ) . { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?h ) WHERE { ?x rdf:type ontology:Q386724 . ?o rdf:type ontology:Q166142 . ?x property:P1445 ?o } GROUP BY ?x } . { SELECT DISTINCT ( MAX ( ?i ) AS ?d ) { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?i ) WHERE { ?f rdf:type ontology:Q386724 . ?s rdf:type ontology:Q166142 . ?f property:P1445 ?s } GROUP BY ?f } } }
Shrek
Shrek represents a fictional universe described in max number of applications
Shrek
action argmax
action find_tuple_counts
relation fictional universe described in
type work
type application
[{'concept': 'work'}, 'fictional universe described in', {'concept': 'application'}]
SELECT DISTINCT ?x WHERE { FILTER ( ?h = ?d ) . { SELECT DISTINCT ?x ( COUNT ( ?o ) AS ?h ) WHERE { ?x rdf:type ontology:work . ?o rdf:type ontology:application . ?x property:fictional_universe_described_in ?o } GROUP BY ?x } . { SELECT DISTINCT ( MAX ( ?i ) AS ?d ) { SELECT DISTINCT ?f ( COUNT ( ?s ) AS ?i ) WHERE { ?f rdf:type ontology:work . ?s rdf:type ontology:application . ?f property:fictional_universe_described_in ?s } GROUP BY ?f } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Indirect
P1080
Q386724 Q23010327
USER
Which works appear in greater number of groups of fictitious objects than that work ?
(c(Q23010327),P1080,c(Q386724))
action greater
action find_reverse_tuple_counts
relation P1080
type Q386724
type Q23010327
action count
action filter_type
action find
entity Q1203222
relation P1080
type Q386724
[{'concept': 'Q23010327'}, 'P1080', {'concept': 'Q386724'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?m ) WHERE { ?i property:P1080 ?q . ?q rdf:type ontology:Q386724 . ?i rdf:type ontology:Q23010327 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { resource:Q1203222 property:P1080 ?x . ?x rdf:type ontology:Q386724 } } . FILTER ( ?m > ?g ) }
action greater
action find_reverse_tuple_counts
relation from fictional universe
type work
type group of fictitious objects
action count
action filter_type
action find
entity Shrek
relation from fictional universe
type work
[{'concept': 'group of fictitious objects'}, 'from fictional universe', {'concept': 'work'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?m ) WHERE { ?i property:from_fictional_universe ?q . ?q rdf:type ontology:work . ?i rdf:type ontology:group_of_fictitious_objects } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { resource:Shrek property:from_fictional_universe ?x . ?x rdf:type ontology:work } } . FILTER ( ?m > ?g ) }
[]
work group of fictitious objects
Q3177580
SYSTEM
The Walking Dead
Q3177580
(c(Q23010327),P1080,c(Q386724))
action greater
action find_reverse_tuple_counts
relation P1080
type Q386724
type Q23010327
action count
action filter_type
action find
entity Q1203222
relation P1080
type Q386724
[ANSWER] appear in greater number of groups of fictitious objects than that work
[{'concept': 'Q23010327'}, 'P1080', {'concept': 'Q386724'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?m ) WHERE { ?i property:P1080 ?q . ?q rdf:type ontology:Q386724 . ?i rdf:type ontology:Q23010327 } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { resource:Q1203222 property:P1080 ?x . ?x rdf:type ontology:Q386724 } } . FILTER ( ?m > ?g ) }
The Walking Dead
The Walking Dead appear in greater number of groups of fictitious objects than that work
The Walking Dead
action greater
action find_reverse_tuple_counts
relation from fictional universe
type work
type group of fictitious objects
action count
action filter_type
action find
entity Shrek
relation from fictional universe
type work
[{'concept': 'group of fictitious objects'}, 'from fictional universe', {'concept': 'work'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?i ) AS ?m ) WHERE { ?i property:from_fictional_universe ?q . ?q rdf:type ontology:work . ?i rdf:type ontology:group_of_fictitious_objects } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?x ) AS ?g ) WHERE { resource:Shrek property:from_fictional_universe ?x . ?x rdf:type ontology:work } } . FILTER ( ?m > ?g ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P1445
Q277759 Q15416
USER
How many book series and television programs outline that work ?
(Q3177580,P1445,c(Q277759)) (Q3177580,P1445,c(Q15416)) (Q3177580,P1445,c(Q277759)) (Q3177580,P1445,c(Q15416))
action count
action union
action filter_type
action find
entity Q3177580
relation P1445
type Q277759
action filter_type
action find
entity Q3177580
relation P1445
type Q15416
['Q3177580', 'P1445', {'concept': 'Q277759'}] ['Q3177580', 'P1445', {'concept': 'Q15416'}] ['Q3177580', 'P1445', {'concept': 'Q277759'}] ['Q3177580', 'P1445', {'concept': 'Q15416'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { { resource:Q3177580 property:P1445 ?b . ?b rdf:type ontology:Q15416 } UNION { ?b rdf:type ontology:Q277759 . resource:Q3177580 property:P1445 ?b } }
action count
action union
action filter_type
action find
entity The Walking Dead
relation fictional universe described in
type book series
action filter_type
action find
entity The Walking Dead
relation fictional universe described in
type television program
['The Walking Dead', 'fictional universe described in', {'concept': 'book series'}] ['The Walking Dead', 'fictional universe described in', {'concept': 'television program'}] ['The Walking Dead', 'fictional universe described in', {'concept': 'book series'}] ['The Walking Dead', 'fictional universe described in', {'concept': 'television program'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { { resource:The_Walking_Dead property:fictional_universe_described_in ?b . ?b rdf:type ontology:television_program } UNION { ?b rdf:type ontology:book_series . resource:The_Walking_Dead property:fictional_universe_described_in ?b } }
[]
book series television program
SYSTEM
1 book series and 2 television programs
Q232737 Q340181 Q18844725
(Q3177580,P1445,c(Q277759)) (Q3177580,P1445,c(Q15416)) (Q3177580,P1445,c(Q277759)) (Q3177580,P1445,c(Q15416))
action count
action union
action filter_type
action find
entity Q3177580
relation P1445
type Q277759
action filter_type
action find
entity Q3177580
relation P1445
type Q15416
[ANSWER]
['Q3177580', 'P1445', {'concept': 'Q277759'}] ['Q3177580', 'P1445', {'concept': 'Q15416'}] ['Q3177580', 'P1445', {'concept': 'Q277759'}] ['Q3177580', 'P1445', {'concept': 'Q15416'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { { resource:Q3177580 property:P1445 ?b . ?b rdf:type ontology:Q15416 } UNION { ?b rdf:type ontology:Q277759 . resource:Q3177580 property:P1445 ?b } }
The Walking Dead The Walking Dead Fear the Walking Dead
1 book series and 2 television programs
action count
action union
action filter_type
action find
entity The Walking Dead
relation fictional universe described in
type book series
action filter_type
action find
entity The Walking Dead
relation fictional universe described in
type television program
['The Walking Dead', 'fictional universe described in', {'concept': 'book series'}] ['The Walking Dead', 'fictional universe described in', {'concept': 'television program'}] ['The Walking Dead', 'fictional universe described in', {'concept': 'book series'}] ['The Walking Dead', 'fictional universe described in', {'concept': 'television program'}]
SELECT DISTINCT ( COUNT ( ?b ) AS ?e ) WHERE { { resource:The_Walking_Dead property:fictional_universe_described_in ?b . ?b rdf:type ontology:television_program } UNION { ?b rdf:type ontology:book_series . resource:The_Walking_Dead property:fictional_universe_described_in ?b } }
[]