Simple Question (Direct)
Simple Question
Q5211864
P161
Q502895
USER
Who starred in Dama koja ubija ?
(Q5211864,P161,c(Q502895))
action filter_type
action find
entity Q5211864
relation P161
type Q502895
['Q5211864', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . resource:Q5211864 property:P161 ?a }
Dama koja ubija
action filter_type
action find
entity Dama koja ubija
relation cast member
type common name
['Dama koja ubija', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . resource:Dama_koja_ubija property:cast_member ?a }
[]
common name
Q948201 Q2444526 Q3441949
SYSTEM
Bata Živojinović, Snežana Savić, Boro Stjepanović
Q2444526 Q12752897 Q948201 Q3441949
(Q5211864,P161,c(Q502895))
action filter_type
action find
entity Q5211864
relation P161
type Q502895
[ANSWERS] starred in Dama koja ubija
['Q5211864', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . resource:Q5211864 property:P161 ?a }
Snežana Savić Kole Angelovski Bata Živojinović Boro Stjepanović
Bata Živojinović, Snežana Savić and Boro Stjepanović starred in Dama koja ubija
Bata Živojinović Snežana Savić Boro Stjepanović
action filter_type
action find
entity Dama koja ubija
relation cast member
type common name
['Dama koja ubija', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . resource:Dama_koja_ubija property:cast_member ?a }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q948201
P27
Q7275
USER
Which state is the native country of Bata Živojinović ?
(Q948201,P27,c(Q7275))
action filter_type
action find
entity Q948201
relation P27
type Q7275
['Q948201', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q7275 . resource:Q948201 property:P27 ?a }
Bata Živojinović
action filter_type
action find
entity Bata Živojinović
relation country of citizenship
type state
['Bata Živojinović', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:state . resource:Bata_Živojinović property:country_of_citizenship ?a }
[]
state
Q36704
SYSTEM
Yugoslavia
Q36704
(Q948201,P27,c(Q7275))
action filter_type
action find
entity Q948201
relation P27
type Q7275
The [ANSWER] is the native country of Bata Živojinović
['Q948201', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q7275 . resource:Q948201 property:P27 ?a }
Yugoslavia
The Yugoslavia is the native country of Bata Živojinović
Yugoslavia
action filter_type
action find
entity Bata Živojinović
relation country of citizenship
type state
['Bata Živojinović', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:state . resource:Bata_Živojinović property:country_of_citizenship ?a }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q4125238
Q7275
USER
And how about Natalia Vorobjova-Hržić?
(Q4125238,P27,c(Q7275))
action filter_type
action find
entity Q4125238
relation P27
type Q7275
['Q4125238', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?f WHERE { resource:Q4125238 property:P27 ?f . ?f rdf:type ontology:Q7275 }
Natalia Vorobjova-Hržić
action filter_type
action find
entity Natalia Vorobjova-Hržić
relation country of citizenship
type state
['Natalia Vorobjova-Hržić', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?f WHERE { resource:Natalia_Vorobjova-Hržić property:country_of_citizenship ?f . ?f rdf:type ontology:state }
[]
state
Q83286 Q15180
SYSTEM
Socialist Federal Republic of Yugoslavia, Soviet Union
Q83286 Q15180
(Q4125238,P27,c(Q7275))
action filter_type
action find
entity Q4125238
relation P27
type Q7275
[ANSWERS]
['Q4125238', 'P27', {'concept': 'Q7275'}]
SELECT DISTINCT ?f WHERE { resource:Q4125238 property:P27 ?f . ?f rdf:type ontology:Q7275 }
Socialist Federal Republic of Yugoslavia Soviet Union
Socialist Federal Republic of Yugoslavia Soviet Union
action filter_type
action find
entity Natalia Vorobjova-Hržić
relation country of citizenship
type state
['Natalia Vorobjova-Hržić', 'country of citizenship', {'concept': 'state'}]
SELECT DISTINCT ?f WHERE { resource:Natalia_Vorobjova-Hržić property:country_of_citizenship ?f . ?f rdf:type ontology:state }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q7487660
P47
Q15617994
USER
Are Shamrock Independent School District next to the border of those states ?
(Q7487660,P47,Q83286) (Q7487660,P47,Q15180)
action is_in
entity prev_answer
action find
entity Q7487660
relation P47
['Q7487660', 'P47', 'Q83286'] ['Q7487660', 'P47', 'Q15180']
ASK WHERE { VALUES ( ?j ) { ( resource:Q83286 ) ( resource:Q15180 ) } . resource:Q7487660 property:P47 ?j }
Shamrock Independent School District
action is_in
entity prev_answer
action find
entity Shamrock Independent School District
relation shares border with
['Shamrock Independent School District', 'shares border with', 'Socialist Federal Republic of Yugoslavia'] ['Shamrock Independent School District', 'shares border with', 'Soviet Union']
ASK WHERE { VALUES ( ?j ) { ( resource:Socialist_Federal_Republic_of_Yugoslavia ) ( resource:Soviet_Union ) } . resource:Shamrock_Independent_School_District property:shares_border_with ?j }
[]
designation for an administrative territorial entity
SYSTEM
NO
(Q7487660,P47,Q83286) (Q7487660,P47,Q15180)
action is_in
entity prev_answer
action find
entity Q7487660
relation P47
[ANSWER]
['Q7487660', 'P47', 'Q83286'] ['Q7487660', 'P47', 'Q15180']
ASK WHERE { VALUES ( ?j ) { ( resource:Q83286 ) ( resource:Q15180 ) } . resource:Q7487660 property:P47 ?j }
No
action is_in
entity prev_answer
action find
entity Shamrock Independent School District
relation shares border with
['Shamrock Independent School District', 'shares border with', 'Socialist Federal Republic of Yugoslavia'] ['Shamrock Independent School District', 'shares border with', 'Soviet Union']
ASK WHERE { VALUES ( ?j ) { ( resource:Socialist_Federal_Republic_of_Yugoslavia ) ( resource:Soviet_Union ) } . resource:Shamrock_Independent_School_District property:shares_border_with ?j }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q317078
P1376
Q7275 Q56061 Q486972
USER
Which states have approximately the same number of administrative territories or human settlements as their county seat as Pskov Republic ?
(c(Q56061)|c(Q486972),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 Q486972
action count
action filter_multi_types
action find_reverse
entity Q317078
relation P1376
type Q56061
type Q486972
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { { ?c rdf:type ontology:Q56061 } UNION { ?c rdf:type ontology:Q486972 } } . ?c property:P1376 resource:Q317078 } } . FILTER ( ?z = ?r ) . { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?z ) WHERE { { ?x property:P1376 ?k . ?k rdf:type ontology:Q7275 . ?x rdf:type ontology:Q486972 } UNION { ?k rdf:type ontology:Q7275 . ?x rdf:type ontology:Q56061 . ?x property:P1376 ?k } } GROUP BY ?k } }
Pskov Republic
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 human settlement
action count
action filter_multi_types
action find_reverse
entity Pskov Republic
relation capital of
type administrative territorial entity
type human settlement
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { { ?c rdf:type ontology:administrative_territorial_entity } UNION { ?c rdf:type ontology:human_settlement } } . ?c property:capital_of resource:Pskov_Republic } } . FILTER ( ?z = ?r ) . { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?z ) WHERE { { ?x property:capital_of ?k . ?k rdf:type ontology:state . ?x rdf:type ontology:human_settlement } UNION { ?k rdf:type ontology:state . ?x rdf:type ontology:administrative_territorial_entity . ?x property:capital_of ?k } } GROUP BY ?k } }
[]
state administrative territorial entity human settlement
Q33946 Q15180 Q980
SYSTEM
Czechoslovakia, Soviet Union, Bavaria
Q230791 Q46652 Q7559152 Q568523 Q788071 Q207162 Q572222 Q1275158 Q174193 Q466581 Q110888 Q1471995 Q1295806 Q457167 Q797527 Q190513 Q889374 Q2308237 Q486181 Q775550 Q834486 Q186096 Q133356 Q501684 Q164079 Q1649871 Q588672 Q62623 Q282475 Q1789596 Q184536 Q523380 Q980 Q746443 Q252580 Q3446210 Q317078 Q332005 Q874954 Q172579 Q867782 Q188553 Q536476 Q1068408 Q1150344 Q330362 Q8146595 Q267584 Q310293 Q15864 Q1362278 Q1269234 Q2361927 Q1067513 Q1468426 Q71092 Q15180 Q800236 Q27260 Q249578 Q16410 Q953432 Q215643 Q212278 Q210542 Q223936 Q8735 Q8733 Q156038 Q7405 Q208404 Q467627 Q1796239 Q1152445 Q2670639 Q2412900 Q190025 Q229411 Q1771831 Q105313 Q44642 Q38872 Q107299 Q546282 Q11876909 Q541455 Q216173 Q646374 Q241748 Q210163 Q842931 Q858841 Q427703 Q2301372 Q216632 Q207272 Q889394 Q151148 Q1796198 Q273025 Q149747 Q27306 Q1123960 Q617218 Q1132786 Q167360 Q1186434 Q954585 Q150069 Q1811029 Q762943 Q1998866 Q106577 Q473433 Q651377 Q161885 Q191077 Q468814 Q174306 Q16957 Q1617495 Q1194765 Q157367 Q760893 Q1539360 Q2305208 Q1152126 Q652560 Q1639475 Q1636212 Q503623 Q124943 Q1311219 Q12548 Q25227 Q870517 Q19901436 Q623751 Q726798 Q28428 Q1479952 Q303421 Q449639 Q1143524 Q2086556 Q26988 Q42585 Q170468 Q600018 Q323904 Q1117051 Q1477220 Q269864 Q199841 Q335088 Q325461 Q583038 Q860407 Q146761 Q200262 Q1296908 Q769782 Q497777 Q878319 Q7251405 Q582861 Q206411 Q179293 Q158725 Q139315 Q26273 Q832554 Q3271735 Q160440 Q797422 Q235030 Q211853 Q213638 Q2340665 Q1538311 Q2657134 Q2414171 Q218023 Q2162698 Q1077630 Q1149230 Q324470 Q551067 Q796583 Q1136259 Q28456 Q1183649 Q209065 Q21203 Q631210 Q2086608 Q733799 Q178913 Q131964 Q83274 Q62589 Q4948 Q836169 Q234009 Q28208 Q903779 Q55502 Q713750 Q2552742 Q220167 Q147909 Q319881 Q1709185 Q37024 Q62519 Q668294 Q83286 Q210036 Q3755547 Q1255614 Q76048 Q181254 Q2396442 Q142417 Q2428714 Q1406298 Q14934927 Q170174 Q699871 Q175276 Q177076 Q7318 Q844910 Q248452 Q552157 Q170770 Q30623 Q225890 Q5157575 Q3456373 Q217196 Q154195 Q266923 Q285658 Q150061 Q70972 Q1143164 Q1164500 Q161036 Q2314907 Q2184 Q774783 Q105092 Q178038 Q206279 Q1469100 Q25279 Q1078602 Q2378381 Q747314 Q202775 Q1471373 Q374521 Q491507 Q1044536 Q1333032 Q940741 Q289577 Q150058 Q4461035 Q33946 Q762084 Q2579852 Q544630 Q180114 Q431731 Q36704 Q889884 Q698239 Q1142179 Q4453003 Q4453007 Q829356 Q764697 Q853477 Q1751495 Q738264 Q386496 Q696241 Q152420 Q11774 Q4843701 Q2712121 Q13426199 Q964024 Q877155 Q487829 Q2365048 Q4274522 Q230407 Q49683 Q1192936 Q2109946 Q71747 Q676184 Q128938 Q837136 Q146597 Q1072362 Q93180 Q28573 Q949268 Q1986139 Q151536 Q211274 Q61292 Q6412664 Q671899 Q7314469 Q80211 Q12490507 Q862304 Q1029847 Q6415938 Q5148517 Q41304
(c(Q56061)|c(Q486972),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 Q486972
action count
action filter_multi_types
action find_reverse
entity Q317078
relation P1376
type Q56061
type Q486972
[ANSWERS] have approximately the same number of administrative territories or human settlements as their county seat as Pskov Republic
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { { ?c rdf:type ontology:Q56061 } UNION { ?c rdf:type ontology:Q486972 } } . ?c property:P1376 resource:Q317078 } } . FILTER ( ?z = ?r ) . { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?z ) WHERE { { ?x property:P1376 ?k . ?k rdf:type ontology:Q7275 . ?x rdf:type ontology:Q486972 } UNION { ?k rdf:type ontology:Q7275 . ?x rdf:type ontology:Q56061 . ?x property:P1376 ?k } } GROUP BY ?k } }
Kingdom of Scotland Malacca sultanate Somali Republic Nobatia Talysh-Mughan Autonomous Republic Bourbon Restoration County of Horne Elymais United Kingdom of Great Britain and Ireland 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 Federation of South Arabia Tsardom of Russia Ukrainian Soviet Socialist Republic Kingdom of Gomma Kingdom of Hanover Kingdom of Poland Hammadid dynasty Kalmar Union Kingdom of Kartli-Kakheti Croatia in personal union with Hungary Mali Empire Republic of Central Lithuania Bavaria 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 Kingdom of the Netherlands United States of Stellaland Stellaland Duchy of Masovia Injuids Limmu-Ennarea Second French Empire Soviet Union Bahawalpur State Samma dynasty Ghaznavid Empire People's Republic of Hungary Couto Misto 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 Prussia Kingdom of Northumbria Xia State of Brazil Anglo-Egyptian Sudan Free City of Danzig 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 Kingdom of Córdoba 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 East Germany Kingdom of Jaén 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 Holy Roman Empire Netherlands Antilles Odrysian kingdom Suriname Kingdom of Bernicia Tulunids Baekje Kadamba Dynasty Kingdom of Galicia Alodia Northern Qi Kakatiya dynasty Cook Islands 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 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 Republic of Upper Volta Principality of Antioch 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 Kingdom of Kongo Southwestern Somalia Silla Deccan sultanates Kingdom of Greece Aruba Nogai Horde 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 Kingdom of Jerusalem West Germany Northland State Lydenburg Republic Kingdom of Bulgaria Republic of Taiwan Kingdom of Spain under Joseph Bonaparte 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 Empire of Nicea Kingdom of Galicia and Lodomeria Kingdom of Valencia Sena dynasty Serbian Empire Murrawarri Republic Papal States Taebong Kingdom of León Caucasian Albania Nazi Germany Pandyan Dynasty British North America Nieuwe Republiek Grand Duchy of Moscow Manchukuo Kingdom of Strathclyde Griqualand East Republic of Brescia Crown of Castile Kingdom of Bavaria Kingdom of Mysore First Mexican Empire Republic of Ararat Kingdom of France Western Wei 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 Bechuanaland Protectorate Qu'aiti Saloum Bahmani Sultanate Egypt Eyalet Spain under the Restoration Elmet Republic of Hungary Himyarite Kingdom Travancore Akkadian empire Czechoslovakia Bamana Empire Taurida Soviet Socialist Republic Republic of Maryland Ayyubid dynasty Tanganyika Yugoslavia Kingdom of Rwanda Hubaekje Orange River Colony 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 Chagatai Khanate 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 Zand dynasty Provisional Revolutionary Government of the Republic of South Vietnam 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
Czechoslovakia, Soviet Union and Bavaria have approximately the same number of administrative territories or human settlements as their county seat as Pskov Republic
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 human settlement
action count
action filter_multi_types
action find_reverse
entity Pskov Republic
relation capital of
type administrative territorial entity
type human settlement
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?r ) WHERE { { { ?c rdf:type ontology:administrative_territorial_entity } UNION { ?c rdf:type ontology:human_settlement } } . ?c property:capital_of resource:Pskov_Republic } } . FILTER ( ?z = ?r ) . { SELECT DISTINCT ?k ( COUNT ( ?x ) AS ?z ) WHERE { { ?x property:capital_of ?k . ?k rdf:type ontology:state . ?x rdf:type ontology:human_settlement } UNION { ?k rdf:type ontology:state . ?x rdf:type ontology:administrative_territorial_entity . ?x property:capital_of ?k } } GROUP BY ?k } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q142417
P1376
Q7275 Q56061 Q486972
USER
And how about Kingdom of Valencia?
(c(Q56061)|c(Q486972),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 Q486972
action count
action filter_multi_types
action find_reverse
entity Q142417
relation P1376
type Q56061
type Q486972
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) ?j WHERE { { ?i property:P1376 ?j . ?j rdf:type ontology:Q7275 . ?i rdf:type ontology:Q56061 } UNION { ?j rdf:type ontology:Q7275 . ?i rdf:type ontology:Q486972 . ?i property:P1376 ?j } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { ?r property:P1376 resource:Q142417 . { { ?r rdf:type ontology:Q56061 } UNION { ?r rdf:type ontology:Q486972 } } } } . FILTER ( ?m = ?y ) }
Kingdom of Valencia
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 human settlement
action count
action filter_multi_types
action find_reverse
entity Kingdom of Valencia
relation capital of
type administrative territorial entity
type human settlement
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) ?j WHERE { { ?i property:capital_of ?j . ?j rdf:type ontology:state . ?i rdf:type ontology:administrative_territorial_entity } UNION { ?j rdf:type ontology:state . ?i rdf:type ontology:human_settlement . ?i property:capital_of ?j } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { ?r property:capital_of resource:Kingdom_of_Valencia . { { ?r rdf:type ontology:administrative_territorial_entity } UNION { ?r rdf:type ontology:human_settlement } } } } . FILTER ( ?m = ?y ) }
[]
state administrative territorial entity human settlement
Q33946 Q15180 Q980
SYSTEM
Czechoslovakia, Soviet Union, Bavaria
Q230791 Q46652 Q7559152 Q568523 Q788071 Q207162 Q572222 Q1275158 Q174193 Q466581 Q110888 Q1471995 Q1295806 Q457167 Q797527 Q190513 Q889374 Q2308237 Q486181 Q775550 Q834486 Q186096 Q133356 Q501684 Q164079 Q1649871 Q588672 Q62623 Q282475 Q1789596 Q184536 Q523380 Q980 Q746443 Q252580 Q3446210 Q317078 Q332005 Q874954 Q172579 Q867782 Q188553 Q536476 Q1068408 Q1150344 Q330362 Q8146595 Q267584 Q310293 Q15864 Q1362278 Q1269234 Q2361927 Q1067513 Q1468426 Q71092 Q15180 Q800236 Q27260 Q249578 Q16410 Q953432 Q215643 Q212278 Q210542 Q223936 Q8735 Q8733 Q156038 Q7405 Q208404 Q467627 Q1796239 Q1152445 Q2670639 Q2412900 Q190025 Q229411 Q1771831 Q105313 Q44642 Q38872 Q107299 Q546282 Q11876909 Q541455 Q216173 Q646374 Q241748 Q210163 Q842931 Q858841 Q427703 Q2301372 Q216632 Q207272 Q889394 Q151148 Q1796198 Q273025 Q149747 Q27306 Q1123960 Q617218 Q1132786 Q167360 Q1186434 Q954585 Q150069 Q1811029 Q762943 Q1998866 Q106577 Q473433 Q651377 Q161885 Q191077 Q468814 Q174306 Q16957 Q1617495 Q1194765 Q157367 Q760893 Q1539360 Q2305208 Q1152126 Q652560 Q1639475 Q1636212 Q503623 Q124943 Q1311219 Q12548 Q25227 Q870517 Q19901436 Q623751 Q726798 Q28428 Q1479952 Q303421 Q449639 Q1143524 Q2086556 Q26988 Q42585 Q170468 Q600018 Q323904 Q1117051 Q1477220 Q269864 Q199841 Q335088 Q325461 Q583038 Q860407 Q146761 Q200262 Q1296908 Q769782 Q497777 Q878319 Q7251405 Q582861 Q206411 Q179293 Q158725 Q139315 Q26273 Q832554 Q3271735 Q160440 Q797422 Q235030 Q211853 Q213638 Q2340665 Q1538311 Q2657134 Q2414171 Q218023 Q2162698 Q1077630 Q1149230 Q324470 Q551067 Q796583 Q1136259 Q28456 Q1183649 Q209065 Q21203 Q631210 Q2086608 Q733799 Q178913 Q131964 Q83274 Q62589 Q4948 Q836169 Q234009 Q28208 Q903779 Q55502 Q713750 Q2552742 Q220167 Q147909 Q319881 Q1709185 Q37024 Q62519 Q668294 Q83286 Q210036 Q3755547 Q1255614 Q76048 Q181254 Q2396442 Q142417 Q2428714 Q1406298 Q14934927 Q170174 Q699871 Q175276 Q177076 Q7318 Q844910 Q248452 Q552157 Q170770 Q30623 Q225890 Q5157575 Q3456373 Q217196 Q154195 Q266923 Q285658 Q150061 Q70972 Q1143164 Q1164500 Q161036 Q2314907 Q2184 Q774783 Q105092 Q178038 Q206279 Q1469100 Q25279 Q1078602 Q2378381 Q747314 Q202775 Q1471373 Q374521 Q491507 Q1044536 Q1333032 Q940741 Q289577 Q150058 Q4461035 Q33946 Q762084 Q2579852 Q544630 Q180114 Q431731 Q36704 Q889884 Q698239 Q1142179 Q4453003 Q4453007 Q829356 Q764697 Q853477 Q1751495 Q738264 Q386496 Q696241 Q152420 Q11774 Q4843701 Q2712121 Q13426199 Q964024 Q877155 Q487829 Q2365048 Q4274522 Q230407 Q49683 Q1192936 Q2109946 Q71747 Q676184 Q128938 Q837136 Q146597 Q1072362 Q93180 Q28573 Q949268 Q1986139 Q151536 Q211274 Q61292 Q6412664 Q671899 Q7314469 Q80211 Q12490507 Q862304 Q1029847 Q6415938 Q5148517 Q41304
(c(Q56061)|c(Q486972),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 Q486972
action count
action filter_multi_types
action find_reverse
entity Q142417
relation P1376
type Q56061
type Q486972
[ANSWERS]
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) ?j WHERE { { ?i property:P1376 ?j . ?j rdf:type ontology:Q7275 . ?i rdf:type ontology:Q56061 } UNION { ?j rdf:type ontology:Q7275 . ?i rdf:type ontology:Q486972 . ?i property:P1376 ?j } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { ?r property:P1376 resource:Q142417 . { { ?r rdf:type ontology:Q56061 } UNION { ?r rdf:type ontology:Q486972 } } } } . FILTER ( ?m = ?y ) }
Kingdom of Scotland Malacca sultanate Somali Republic Nobatia Talysh-Mughan Autonomous Republic Bourbon Restoration County of Horne Elymais United Kingdom of Great Britain and Ireland 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 Federation of South Arabia Tsardom of Russia Ukrainian Soviet Socialist Republic Kingdom of Gomma Kingdom of Hanover Kingdom of Poland Hammadid dynasty Kalmar Union Kingdom of Kartli-Kakheti Croatia in personal union with Hungary Mali Empire Republic of Central Lithuania Bavaria 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 Kingdom of the Netherlands United States of Stellaland Stellaland Duchy of Masovia Injuids Limmu-Ennarea Second French Empire Soviet Union Bahawalpur State Samma dynasty Ghaznavid Empire People's Republic of Hungary Couto Misto 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 Prussia Kingdom of Northumbria Xia State of Brazil Anglo-Egyptian Sudan Free City of Danzig 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 Kingdom of Córdoba 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 East Germany Kingdom of Jaén 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 Holy Roman Empire Netherlands Antilles Odrysian kingdom Suriname Kingdom of Bernicia Tulunids Baekje Kadamba Dynasty Kingdom of Galicia Alodia Northern Qi Kakatiya dynasty Cook Islands 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 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 Republic of Upper Volta Principality of Antioch 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 Kingdom of Kongo Southwestern Somalia Silla Deccan sultanates Kingdom of Greece Aruba Nogai Horde 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 Kingdom of Jerusalem West Germany Northland State Lydenburg Republic Kingdom of Bulgaria Republic of Taiwan Kingdom of Spain under Joseph Bonaparte 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 Empire of Nicea Kingdom of Galicia and Lodomeria Kingdom of Valencia Sena dynasty Serbian Empire Murrawarri Republic Papal States Taebong Kingdom of León Caucasian Albania Nazi Germany Pandyan Dynasty British North America Nieuwe Republiek Grand Duchy of Moscow Manchukuo Kingdom of Strathclyde Griqualand East Republic of Brescia Crown of Castile Kingdom of Bavaria Kingdom of Mysore First Mexican Empire Republic of Ararat Kingdom of France Western Wei 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 Bechuanaland Protectorate Qu'aiti Saloum Bahmani Sultanate Egypt Eyalet Spain under the Restoration Elmet Republic of Hungary Himyarite Kingdom Travancore Akkadian empire Czechoslovakia Bamana Empire Taurida Soviet Socialist Republic Republic of Maryland Ayyubid dynasty Tanganyika Yugoslavia Kingdom of Rwanda Hubaekje Orange River Colony 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 Chagatai Khanate 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 Zand dynasty Provisional Revolutionary Government of the Republic of South Vietnam 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
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 human settlement
action count
action filter_multi_types
action find_reverse
entity Kingdom of Valencia
relation capital of
type administrative territorial entity
type human settlement
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?j WHERE { { SELECT DISTINCT ( COUNT ( ?i ) AS ?m ) ?j WHERE { { ?i property:capital_of ?j . ?j rdf:type ontology:state . ?i rdf:type ontology:administrative_territorial_entity } UNION { ?j rdf:type ontology:state . ?i rdf:type ontology:human_settlement . ?i property:capital_of ?j } } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?r ) AS ?y ) WHERE { ?r property:capital_of resource:Kingdom_of_Valencia . { { ?r rdf:type ontology:administrative_territorial_entity } UNION { ?r rdf:type ontology:human_settlement } } } } . FILTER ( ?m = ?y ) }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q33946 Q15180 Q980
P85
Q484692
USER
What are the anthems for those states ?
(Q33946,P85,c(Q484692)) (Q15180,P85,c(Q484692)) (Q980,P85,c(Q484692))
action filter_type
action find
entity prev_answer
relation P85
type Q484692
['Q33946', 'P85', {'concept': 'Q484692'}] ['Q15180', 'P85', {'concept': 'Q484692'}] ['Q980', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q484692 . VALUES ( ?u ) { ( resource:Q230791 ) ( resource:Q46652 ) ( resource:Q7559152 ) } . ?u property:P85 ?o }
Czechoslovakia Soviet Union Bavaria
action filter_type
action find
entity prev_answer
relation anthem
type hymn
['Czechoslovakia', 'anthem', {'concept': 'hymn'}] ['Soviet Union', 'anthem', {'concept': 'hymn'}] ['Bavaria', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:hymn . VALUES ( ?u ) { ( resource:Kingdom_of_Scotland ) ( resource:Malacca_sultanate ) ( resource:Somali_Republic ) } . ?u property:anthem ?o }
[]
hymn
Q11178664 Q251918 Q256615
SYSTEM
Czechoslovak anthem, National Anthem of the Soviet Union, Bayernhymne
Q11178664 Q251918 Q256615
(Q33946,P85,c(Q484692)) (Q15180,P85,c(Q484692)) (Q980,P85,c(Q484692))
action filter_type
action find
entity prev_answer
relation P85
type Q484692
The anthems for those states are the [ANSWERS]
['Q33946', 'P85', {'concept': 'Q484692'}] ['Q15180', 'P85', {'concept': 'Q484692'}] ['Q980', 'P85', {'concept': 'Q484692'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:Q484692 . VALUES ( ?u ) { ( resource:Q230791 ) ( resource:Q46652 ) ( resource:Q7559152 ) } . ?u property:P85 ?o }
Czechoslovak anthem National Anthem of the Soviet Union Bayernhymne
The anthems for those states are the Czechoslovak anthem, National Anthem of the Soviet Union and Bayernhymne
Czechoslovak anthem National Anthem of the Soviet Union Bayernhymne
action filter_type
action find
entity prev_answer
relation anthem
type hymn
['Czechoslovakia', 'anthem', {'concept': 'hymn'}] ['Soviet Union', 'anthem', {'concept': 'hymn'}] ['Bavaria', 'anthem', {'concept': 'hymn'}]
SELECT DISTINCT ?o WHERE { ?o rdf:type ontology:hymn . VALUES ( ?u ) { ( resource:Kingdom_of_Scotland ) ( resource:Malacca_sultanate ) ( resource:Somali_Republic ) } . ?u property:anthem ?o }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q11178664 Q251918 Q256615
P85
Q7275
USER
Which states have an anthem named Czechoslovak anthem, National Anthem of the Soviet Union and Bayernhymne ?
(c(Q7275),P85,Q11178664) (c(Q7275),P85,Q251918) (c(Q7275),P85,Q256615)
action union
action filter_type
action find_reverse
entity Q11178664
relation P85
type Q7275
action filter_type
action find_reverse
entity Q251918
relation P85
type Q7275
action filter_type
action find_reverse
entity Q256615
relation P85
type Q7275
[{'concept': 'Q7275'}, 'P85', 'Q11178664'] [{'concept': 'Q7275'}, 'P85', 'Q251918'] [{'concept': 'Q7275'}, 'P85', 'Q256615']
SELECT DISTINCT ?o WHERE { { ?o property:P85 resource:Q11178664 . ?o rdf:type ontology:Q7275 } UNION { ?o property:P85 resource:Q251918 . ?o rdf:type ontology:Q7275 } }
Czechoslovak anthem National Anthem of the Soviet Union Bayernhymne
action union
action filter_type
action find_reverse
entity Czechoslovak anthem
relation anthem
type state
action filter_type
action find_reverse
entity National Anthem of the Soviet Union
relation anthem
type state
action filter_type
action find_reverse
entity Bayernhymne
relation anthem
type state
[{'concept': 'state'}, 'anthem', 'Czechoslovak anthem'] [{'concept': 'state'}, 'anthem', 'National Anthem of the Soviet Union'] [{'concept': 'state'}, 'anthem', 'Bayernhymne']
SELECT DISTINCT ?o WHERE { { ?o property:anthem resource:Czechoslovak_anthem . ?o rdf:type ontology:state } UNION { ?o property:anthem resource:National_Anthem_of_the_Soviet_Union . ?o rdf:type ontology:state } }
[]
state
Q33946 Q15180 Q980
SYSTEM
Czechoslovakia, Soviet Union, Bavaria
Q33946 Q15180 Q980 Q154195
(c(Q7275),P85,Q11178664) (c(Q7275),P85,Q251918) (c(Q7275),P85,Q256615)
action union
action filter_type
action find_reverse
entity Q11178664
relation P85
type Q7275
action filter_type
action find_reverse
entity Q251918
relation P85
type Q7275
action filter_type
action find_reverse
entity Q256615
relation P85
type Q7275
[ANSWERS] have an anthem named Czechoslovak anthem, National Anthem of the Soviet Union and Bayernhymne
[{'concept': 'Q7275'}, 'P85', 'Q11178664'] [{'concept': 'Q7275'}, 'P85', 'Q251918'] [{'concept': 'Q7275'}, 'P85', 'Q256615']
SELECT DISTINCT ?o WHERE { { ?o property:P85 resource:Q11178664 . ?o rdf:type ontology:Q7275 } UNION { ?o property:P85 resource:Q251918 . ?o rdf:type ontology:Q7275 } }
Czechoslovakia Soviet Union Bavaria Kingdom of Bavaria
Czechoslovakia, Soviet Union and Bavaria have an anthem named Czechoslovak anthem, National Anthem of the Soviet Union and Bayernhymne
Czechoslovakia Soviet Union Bavaria
action union
action filter_type
action find_reverse
entity Czechoslovak anthem
relation anthem
type state
action filter_type
action find_reverse
entity National Anthem of the Soviet Union
relation anthem
type state
action filter_type
action find_reverse
entity Bayernhymne
relation anthem
type state
[{'concept': 'state'}, 'anthem', 'Czechoslovak anthem'] [{'concept': 'state'}, 'anthem', 'National Anthem of the Soviet Union'] [{'concept': 'state'}, 'anthem', 'Bayernhymne']
SELECT DISTINCT ?o WHERE { { ?o property:anthem resource:Czechoslovak_anthem . ?o rdf:type ontology:state } UNION { ?o property:anthem resource:National_Anthem_of_the_Soviet_Union . ?o rdf:type ontology:state } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q15180
P35
Q502895
USER
Who is elected as the head of state of Soviet Union ?
(Q15180,P35,c(Q502895))
action filter_type
action find
entity Q15180
relation P35
type Q502895
['Q15180', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q15180 property:P35 ?b }
Soviet Union
action filter_type
action find
entity Soviet Union
relation head of state
type common name
['Soviet Union', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Soviet_Union property:head_of_state ?b }
[]
common name
Q30487
SYSTEM
Mikhail Gorbachev
Q30487
(Q15180,P35,c(Q502895))
action filter_type
action find
entity Q15180
relation P35
type Q502895
The [ANSWER] is elected as the head of state of Soviet Union
['Q15180', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q502895 . resource:Q15180 property:P35 ?b }
Mikhail Gorbachev
The Mikhail Gorbachev is elected as the head of state of Soviet Union
Mikhail Gorbachev
action filter_type
action find
entity Soviet Union
relation head of state
type common name
['Soviet Union', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:common_name . resource:Soviet_Union property:head_of_state ?b }
[]