Simple Question (Direct)
Simple Question
Q16236225
P641
Q349
USER
Which sport was Bence Jagodics a part of ?
(Q16236225,P641,c(Q349))
action filter_type
action find
entity Q16236225
relation P641
type Q349
['Q16236225', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?l WHERE { resource:Q16236225 property:P641 ?l . ?l rdf:type ontology:Q349 }
Bence Jagodics
action filter_type
action find
entity Bence Jagodics
relation sport
type sport
['Bence Jagodics', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?l WHERE { resource:Bence_Jagodics property:sport ?l . ?l rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q16236225,P641,c(Q349))
action filter_type
action find
entity Q16236225
relation P641
type Q349
Which sport was Bence Jagodics a part of
['Q16236225', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?l WHERE { resource:Q16236225 property:P641 ?l . ?l rdf:type ontology:Q349 }
association football
Which sport was Bence Jagodics a part of
association football
action filter_type
action find
entity Bence Jagodics
relation sport
type sport
['Bence Jagodics', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?l WHERE { resource:Bence_Jagodics property:sport ?l . ?l rdf:type ontology:sport }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q16236225
P19
Q515
USER
Which city is the place of birth of that person ?
(Q2736,P19,c(Q515))
action filter_type
action find
entity Q16236225
relation P19
type Q515
['Q2736', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q515 . resource:Q16236225 property:P19 ?l }
Bence Jagodics
action filter_type
action find
entity Bence Jagodics
relation place of birth
type city
['association football', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:city . resource:Bence_Jagodics property:place_of_birth ?l }
[]
city
Q42007
SYSTEM
Szombathely
Q42007
(Q2736,P19,c(Q515))
action filter_type
action find
entity Q16236225
relation P19
type Q515
[ANSWER] is the place of birth of that person
['Q2736', 'P19', {'concept': 'Q515'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:Q515 . resource:Q16236225 property:P19 ?l }
Szombathely
Szombathely is the place of birth of that person
Szombathely
action filter_type
action find
entity Bence Jagodics
relation place of birth
type city
['association football', 'place of birth', {'concept': 'city'}]
SELECT DISTINCT ?l WHERE { ?l rdf:type ontology:city . resource:Bence_Jagodics property:place_of_birth ?l }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q42007 Q15824754
P19
Q502895
USER
Was Károly Kovács born at that city ?
(Q15824754,P19,Q42007)
action is_in
entity Q42007
action find
entity Q15824754
relation P19
['Q15824754', 'P19', 'Q42007']
ASK WHERE { resource:Q15824754 property:P19 resource:Q42007 }
Szombathely Károly Kovács
action is_in
entity Szombathely
action find
entity Károly Kovács
relation place of birth
['Károly Kovács', 'place of birth', 'Szombathely']
ASK WHERE { resource:Károly_Kovács property:place_of_birth resource:Szombathely }
[]
common name
SYSTEM
YES
(Q15824754,P19,Q42007)
action is_in
entity Q42007
action find
entity Q15824754
relation P19
[ANSWER]
['Q15824754', 'P19', 'Q42007']
ASK WHERE { resource:Q15824754 property:P19 resource:Q42007 }
Yes
action is_in
entity Szombathely
action find
entity Károly Kovács
relation place of birth
['Károly Kovács', 'place of birth', 'Szombathely']
ASK WHERE { resource:Károly_Kovács property:place_of_birth resource:Szombathely }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1376
Q7275 Q515
USER
Which states have atmost 2 cities as their county seat ?
(c(Q515),P1376,c(Q7275))
action atmost
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
value 2
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?g ) AS ?l ) WHERE { ?n rdf:type ontology:Q7275 . ?g rdf:type ontology:Q515 . ?g property:P1376 ?n } GROUP BY ?n } . FILTER ( ?l <= 2 ) }
action atmost
action find_reverse_tuple_counts
relation capital of
type state
type city
value 2
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?g ) AS ?l ) WHERE { ?n rdf:type ontology:state . ?g rdf:type ontology:city . ?g property:capital_of ?n } GROUP BY ?n } . FILTER ( ?l <= 2 ) }
[]
state city
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 Q13426199 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),P1376,c(Q7275))
action atmost
action find_reverse_tuple_counts
relation P1376
type Q7275
type Q515
value 2
[ANSWERS] have atmost 2 cities as their county seat
[{'concept': 'Q515'}, 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?g ) AS ?l ) WHERE { ?n rdf:type ontology:Q7275 . ?g rdf:type ontology:Q515 . ?g property:P1376 ?n } GROUP BY ?n } . FILTER ( ?l <= 2 ) }
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 Republic of China 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 2 cities as their county seat
Czechoslovakia Soviet Union Bavaria
action atmost
action find_reverse_tuple_counts
relation capital of
type state
type city
value 2
[{'concept': 'city'}, 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?g ) AS ?l ) WHERE { ?n rdf:type ontology:state . ?g rdf:type ontology:city . ?g property:capital_of ?n } GROUP BY ?n } . FILTER ( ?l <= 2 ) }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P1376
Q7275 Q56061 Q486972
USER
Which states have lesser number of administrative territories and human settlements as their county seat than that state ?
(c(Q56061)|c(Q486972),P1376,c(Q7275))
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P1376 ?y } UNION { ?x property:P1376 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q7275 . ?x rdf:type ontology:Q486972 }
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?y WHERE { { { ?z property:capital_of ?y } UNION { ?x property:capital_of ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:state . ?x rdf:type ontology:human_settlement }
[]
state administrative territorial entity human settlement
Comparative|More/Less|Mult. entity type|Clarification
Q33946
SYSTEM
Did you mean Czechoslovakia ?
(c(Q56061)|c(Q486972),P1376,c(Q7275))
[ANSWER]
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P1376 ?y } UNION { ?x property:P1376 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q7275 . ?x rdf:type ontology:Q486972 }
Did you mean Czechoslovakia ?
Czechoslovakia
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?y WHERE { { { ?z property:capital_of ?y } UNION { ?x property:capital_of ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:state . ?x rdf:type ontology:human_settlement }
[]
Comparative Reasoning (All)
USER
No, I meant Soviet Union. Could you tell me the answer for that?
(c(Q56061)|c(Q486972),P1376,c(Q7275))
Q15180
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q7275'}]
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'state'}]
[]
Q13706 Q28025 Q112558
SYSTEM
Principality of Sealand, Ryukyu Kingdom, Republic of Saugeais
Q1193822 Q178665 Q18285930 Q3456417 Q152855 Q855044 Q975405 Q1688151 Q1483643 Q827040 Q210198 Q2006542 Q215530 Q912043 Q2564694 Q203493 Q1574107 Q798431 Q1269910 Q877875 Q402145 Q255931 Q2342822 Q863279 Q3177715 Q698089 Q83821 Q13107370 Q761370 Q2114397 Q321371 Q220110 Q1414395 Q756895 Q49697 Q153660 Q1069905 Q6500954 Q274488 Q577867 Q476757 Q1274468 Q202687 Q2419932 Q234197 Q2668600 Q551375 Q146246 Q1108445 Q153080 Q526507 Q1154540 Q28322 Q550374 Q19831559 Q1048918 Q736936 Q783489 Q2444884 Q16949002 Q618399 Q180573 Q1923401 Q1135255 Q624887 Q199442 Q13706 Q156020 Q216786 Q26472 Q139319 Q752662 Q1668970 Q320930 Q849623 Q2264735 Q28511 Q139670 Q1138904 Q10988528 Q402580 Q7352 Q9903 Q83572 Q941881 Q1319681 Q1115291 Q894030 Q38060 Q914898 Q844250 Q738144 Q207521 Q1658411 Q28025 Q11704201 Q49326 Q1057118 Q157734 Q2088324 Q11909456 Q1415585 Q146328 Q1508143 Q940821 Q248572 Q697084 Q213586 Q16624774 Q173082 Q170588 Q11196 Q842091 Q187684 Q1324889 Q146713 Q427941 Q697837 Q994451 Q3185305 Q1148907 Q320925 Q2593459 Q571453 Q271570 Q307069 Q28278 Q107380 Q206696 Q62454 Q112558 Q1198071 Q1192067 Q2372248 Q1062422 Q505503 Q169705 Q212439 Q153015 Q846670 Q696242 Q422065 Q1479726 Q467864 Q212056 Q777981 Q154853 Q1148042 Q770776 Q1549254 Q7314513 Q3041595 Q484104 Q680997 Q648297 Q149805
(c(Q56061)|c(Q486972),P1376,c(Q7275))
[ANSWERS] have lesser number of administrative territories and human settlements as their county seat than that state
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ?y WHERE { { { ?z property:P1376 ?y } UNION { ?x property:P1376 ?y } } . ?z rdf:type ontology:Q56061 . ?y rdf:type ontology:Q7275 . ?x rdf:type ontology:Q486972 }
Wuyue Mitanni German Empire of 1848/1849 Republic of Saint-Malo Kingdom of Tungning Bhopal State Sultanate of Rum Kingdom of Thomond Nakhon Si Thammarat Kingdom Nanyue Erivan Khanate Dominion of Pakistan Kingdom of Ireland Jin Powys Fadog Kingdom of Romania Han Zhao Republic of Dahomey Republic of Madawaska Palmyrene Empire Mataram Sultanate Hariphunchai West Pakistan Sukhothai Kingdom Pagaruyung Kingdom Grand Duchy of Würzburg Bijapur Sultanate Principality of Serbia Aro Confederacy Yogyakarta Sultanate Bosporan Kingdom Rohan Republic of South Maluku Kediri Liu Song dynasty Italian Social Republic Cheng Han Zaire Eastern Wu Kingdom of Poland Democratic Republic of Afghanistan Republic of Bosnia and Herzegovina Songhai Empire Kingdom of Redonda Srivijaya Taifa of Niebla Grand Duchy of Westarctica Francia Kievan Rus' East Francia Later Shu Later Jin Dynasty Balhae South African Republic Oldenburg Suebic Kingdom of Galicia Lu Later Liang dynasty Tibet Lordship of Brecknock Republic of the Congo South Vietnam Zunghar Khanate Chinese Soviet Republic Neo-Babylonian Empire Kingdom of Aragon Principality of Sealand State of the Teutonic Order Champa Kingdom of Dali Russian Republic Hafsid dynasty Western Qin Cao Wei Oyo Empire Arthedain Buyeo kingdom Democratic Republic of Armenia Kingdom of Afghanistan Second East Turkestan Republic Medang Kingdom Jin dynasty Ming imperium Sikh Empire Netherlands New Guinea Qi Thonburi Kingdom Bornu Empire Gaul Kingdom of Khotan Lordship of Ireland United Provinces of the Río de la Plata Abyssinia Kingdom of Sarawak Ryukyu Kingdom Taifa of Arjona Majapahit Chenla Kingdom Muscat and Oman Colonial Brazil Bit Agusi Islamic State of Afghanistan Commonwealth of the Philippines Ukrainian State People's Democratic Republic of Ethiopia Sultanate of Maguindanao Duchy of Oldenburg Gondor Kingdom of Nicoya Dacia Republic of Texas Republika Srpska Duchy of Normandy Despotate of Epirus Germiyanids Arab Federation Islamic Emirate of Afghanistan Mengjiang Western Liang Kingdom of Israel State of Katanga Shu Han Provisional Government of Hawaii Former Shu Kingdom of Araucanía and Patagonia Eastern Wei Provisional Government of the Republic of Korea History of Lippe Helvetic Republic Chen dynasty Republic of Saugeais Southern Han Min Free State of Oldenburg Konbaung Dynasty Cochinchina Xia dynasty Cossack Hetmanate Kingdom of Saxony Danishmends Reorganized National Government of China Sultanate of Sulu Federation of Malaya People's Socialist Republic of Albania Mongolian People's Republic Duchy of the Archipelago Diauehi Qutb Shahi dynasty Dutch Gold Coast Principality of Seborga Republic of South Carolina Republic of Iraq United States Army Military Government in Korea Principality of Lower Pannonia Free State of Brunswick Kingdom of Iraq
Principality of Sealand, Ryukyu Kingdom and Republic of Saugeais have lesser number of administrative territories and human settlements as their county seat than that state
Principality of Sealand Ryukyu Kingdom Republic of Saugeais
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ?y WHERE { { { ?z property:capital_of ?y } UNION { ?x property:capital_of ?y } } . ?z rdf:type ontology:administrative_territorial_entity . ?y rdf:type ontology:state . ?x rdf:type ontology:human_settlement }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P85
Q7725634 Q484692 Q7275
USER
How many states have an anthem named exactly 1 literary works and hymns ?
(c(Q7275),P85,c(Q7725634)|c(Q484692))
action count
action equal
action union
action find_tuple_counts
relation P85
type Q7275
type Q7725634
action find_tuple_counts
relation P85
type Q7275
type Q484692
value 1
[{'concept': 'Q7275'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?s ) WHERE { { ?j property:P85 ?q . ?j rdf:type ontology:Q7275 . ?q rdf:type ontology:Q7725634 } UNION { ?j rdf:type ontology:Q7275 . ?q rdf:type ontology:Q484692 . ?j property:P85 ?q } } GROUP BY ?j } . FILTER ( ?s = 1 ) }
action count
action equal
action union
action find_tuple_counts
relation anthem
type state
type literary work
action find_tuple_counts
relation anthem
type state
type hymn
value 1
[{'concept': 'state'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?s ) WHERE { { ?j property:anthem ?q . ?j rdf:type ontology:state . ?q rdf:type ontology:literary_work } UNION { ?j rdf:type ontology:state . ?q rdf:type ontology:hymn . ?j property:anthem ?q } } GROUP BY ?j } . FILTER ( ?s = 1 ) }
[]
literary work hymn state
SYSTEM
117
Q241748 Q211853 Q180573 Q797527 Q1274468 Q2414171 Q218023 Q245160 Q25279 Q174193 Q965174 Q233263 Q1028835 Q330988 Q139670 Q27306 Q457167 Q533558 Q167360 Q1044536 Q209065 Q21203 Q713750 Q209062 Q1998866 Q207162 Q11196 Q2006542 Q131964 Q133356 Q2454585 Q33946 Q83572 Q191077 Q2638486 Q28278 Q16957 Q1649871 Q941881 Q870055 Q842794 Q1057542 Q652560 Q550374 Q178038 Q30623 Q203493 Q867778 Q147909 Q980 Q58202 Q1709185 Q154401 Q180393 Q112558 Q252580 Q518101 Q37024 Q16410 Q153128 Q83286 Q173761 Q207272 Q25227 Q15864 Q738144 Q36704 Q950644 Q153015 Q49910 Q386496 Q696242 Q71092 Q217230 Q170072 Q170174 Q212056 Q210542 Q7318 Q1072140 Q170468 Q146328 Q248452 Q8733 Q371334 Q853348 Q824489 Q2342822 Q189988 Q1192936 Q615902 Q708865 Q498735 Q491559 Q154195 Q1072362 Q1775277 Q121932 Q146761 Q153660 Q70972 Q497777 Q206411 Q12548 Q211274 Q6500954 Q26988 Q26273 Q139319 Q171150 Q487687 Q370736 Q541455 Q41304 Q797422 Q216173 Q178469
(c(Q7275),P85,c(Q7725634)|c(Q484692))
action count
action equal
action union
action find_tuple_counts
relation P85
type Q7275
type Q7725634
action find_tuple_counts
relation P85
type Q7275
type Q484692
value 1
[ANSWER]
[{'concept': 'Q7275'}, 'P85', [{'concept': 'Q7725634'}, {'concept': 'Q484692'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?s ) WHERE { { ?j property:P85 ?q . ?j rdf:type ontology:Q7275 . ?q rdf:type ontology:Q7725634 } UNION { ?j rdf:type ontology:Q7275 . ?q rdf:type ontology:Q484692 . ?j property:P85 ?q } } GROUP BY ?j } . FILTER ( ?s = 1 ) }
Kingdom of Serbia Republic of Serbian Krajina South Vietnam British Togoland Republic of Bosnia and Herzegovina First Brazilian Republic Orange Free State Democratic Republic of Georgia Curaçao United Kingdom of Great Britain and Ireland Coalition Provisional Authority Second Republic of South Korea British Cameroons Democratic Kampuchea Democratic Republic of Armenia Kingdom of Prussia West Ukrainian People's Republic Kingdom of Croatia-Slavonia First Portuguese Republic Spain under the Restoration Kingdom of Greece Aruba West Germany Socialist Republic of Croatia Czech and Slovak Federal Republic Bourbon Restoration Republika Srpska Dominion of Pakistan Austrian Empire Ukrainian Soviet Socialist Republic History of Czechoslovakia Czechoslovakia Sikh Empire Kingdom of Yugoslavia Kingdom of Cambodia Provisional Government of the Republic of Korea East Germany Kingdom of Poland Netherlands New Guinea Kingdom of Laos Socialist Republic of Romania Republic of Hawaii West Indies Federation South African Republic Second Spanish Republic Manchukuo Kingdom of Romania People's Republic of Kampuchea Kingdom of Bulgaria Bavaria July Monarchy Kingdom of Spain under Joseph Bonaparte Slovak Republic Kingdom of the Two Sicilies Republic of Saugeais Duchy of Modena and Reggio First Republic of Austria Serbia and Montenegro People's Republic of Hungary Independent State of Croatia Socialist Federal Republic of Yugoslavia Lithuanian Soviet Socialist Republic Second Polish Republic Netherlands Antilles United Kingdom of the Netherlands United Provinces of the Río de la Plata Yugoslavia Carpatho-Ukraine Kingdom of Saxony Colony of Aden Kingdom of Montenegro Reorganized National Government of China Second French Empire Empire of Brazil Dutch Republic Papal States Mongolian People's Republic Second Brazilian Republic Nazi Germany Roman Republic United Arab Republic Commonwealth of the Philippines British North America Qing dynasty Second Mexican Empire Czechoslovak Socialist Republic Estado Novo West Pakistan Central African Empire Kingdom of Burundi Kingdom of Finland Reformed Government of the Republic of China division of Korea First Republic of South Korea Kingdom of Bavaria Provisional Revolutionary Government of the Republic of South Vietnam Dominion of India People's Republic of Bulgaria Hatay State Italian Social Republic Kingdom of France First Spanish Republic Democratic Republic of Azerbaijan Holy Roman Empire People's Republic of Poland Zaire Cook Islands Sint Maarten Russian Republic Kingdom of Hungary Third Republic of South Korea Cape Colony Anglo-Egyptian Sudan Weimar Republic Republic of Upper Volta Free City of Danzig Biafra
117
action count
action equal
action union
action find_tuple_counts
relation anthem
type state
type literary work
action find_tuple_counts
relation anthem
type state
type hymn
value 1
[{'concept': 'state'}, 'anthem', [{'concept': 'literary work'}, {'concept': 'hymn'}]]
SELECT DISTINCT ( COUNT ( ?j ) AS ?g ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?q ) AS ?s ) WHERE { { ?j property:anthem ?q . ?j rdf:type ontology:state . ?q rdf:type ontology:literary_work } UNION { ?j rdf:type ontology:state . ?q rdf:type ontology:hymn . ?j property:anthem ?q } } GROUP BY ?j } . FILTER ( ?s = 1 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q70802
P85
Q484692 Q7725634 Q7275
USER
How many states have approximately the same number of hymns or literary works as their anthem as French Third Republic ?
(c(Q7275),P85,c(Q484692)|c(Q7725634))
action count
action approx
action union
action find_tuple_counts
relation P85
type Q7275
type Q484692
action find_tuple_counts
relation P85
type Q7275
type Q7725634
action count
action filter_multi_types
action find
entity Q70802
relation P85
type Q484692
type Q7725634
[{'concept': 'Q7275'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) ?c WHERE { { ?c property:P85 ?p . ?c rdf:type ontology:Q7275 . ?p rdf:type ontology:Q484692 } UNION { ?c property:P85 ?p . ?c rdf:type ontology:Q7275 . ?p rdf:type ontology:Q7725634 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { resource:Q70802 property:P85 ?y . { { ?y rdf:type ontology:Q7725634 } UNION { ?y rdf:type ontology:Q484692 } } } } . FILTER ( ?g = ?t ) }
French Third Republic
action count
action approx
action union
action find_tuple_counts
relation anthem
type state
type hymn
action find_tuple_counts
relation anthem
type state
type literary work
action count
action filter_multi_types
action find
entity French Third Republic
relation anthem
type hymn
type literary work
[{'concept': 'state'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) ?c WHERE { { ?c property:anthem ?p . ?c rdf:type ontology:state . ?p rdf:type ontology:hymn } UNION { ?c property:anthem ?p . ?c rdf:type ontology:state . ?p rdf:type ontology:literary_work } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { resource:French_Third_Republic property:anthem ?y . { { ?y rdf:type ontology:literary_work } UNION { ?y rdf:type ontology:hymn } } } } . FILTER ( ?g = ?t ) }
[]
hymn literary work state
SYSTEM
9
Q70802 Q842931 Q210036 Q797214 Q4843701 Q58296 Q837136 Q769782 Q13131807
(c(Q7275),P85,c(Q484692)|c(Q7725634))
action count
action approx
action union
action find_tuple_counts
relation P85
type Q7275
type Q484692
action find_tuple_counts
relation P85
type Q7275
type Q7725634
action count
action filter_multi_types
action find
entity Q70802
relation P85
type Q484692
type Q7725634
[ANSWER]
[{'concept': 'Q7275'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) ?c WHERE { { ?c property:P85 ?p . ?c rdf:type ontology:Q7275 . ?p rdf:type ontology:Q484692 } UNION { ?c property:P85 ?p . ?c rdf:type ontology:Q7275 . ?p rdf:type ontology:Q7725634 } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { resource:Q70802 property:P85 ?y . { { ?y rdf:type ontology:Q7725634 } UNION { ?y rdf:type ontology:Q484692 } } } } . FILTER ( ?g = ?t ) }
French Third Republic East Pakistan Chechen Republic of Ichkeria French Togoland Libyan Arab Jamahiriya French Republic Kingdom of Deheubarth Kingdom of Powys Kindom of Morgannwg
9
action count
action approx
action union
action find_tuple_counts
relation anthem
type state
type hymn
action find_tuple_counts
relation anthem
type state
type literary work
action count
action filter_multi_types
action find
entity French Third Republic
relation anthem
type hymn
type literary work
[{'concept': 'state'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ( COUNT ( ?c ) AS ?k ) WHERE { { SELECT DISTINCT ( COUNT ( ?p ) AS ?g ) ?c WHERE { { ?c property:anthem ?p . ?c rdf:type ontology:state . ?p rdf:type ontology:hymn } UNION { ?c property:anthem ?p . ?c rdf:type ontology:state . ?p rdf:type ontology:literary_work } } GROUP BY ?c } . { SELECT DISTINCT ( COUNT ( ?y ) AS ?t ) WHERE { resource:French_Third_Republic property:anthem ?y . { { ?y rdf:type ontology:literary_work } UNION { ?y rdf:type ontology:hymn } } } } . FILTER ( ?g = ?t ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q180573
P85
Q484692 Q7725634 Q7275
USER
And what about South Vietnam?
(c(Q7275),P85,c(Q484692)|c(Q7725634))
action count
action approx
action union
action find_tuple_counts
relation P85
type Q7275
type Q484692
action find_tuple_counts
relation P85
type Q7275
type Q7725634
action count
action filter_multi_types
action find
entity Q180573
relation P85
type Q484692
type Q7725634
[{'concept': 'Q7275'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?o ) WHERE { { ?t property:P85 ?j . ?t rdf:type ontology:Q7275 . ?j rdf:type ontology:Q7725634 } UNION { ?t property:P85 ?j . ?t rdf:type ontology:Q7275 . ?j rdf:type ontology:Q484692 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { resource:Q180573 property:P85 ?m . { ?m rdf:type ?a . VALUES ( ?a ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } } } } . FILTER ( ?o = ?l ) }
South Vietnam
action count
action approx
action union
action find_tuple_counts
relation anthem
type state
type hymn
action find_tuple_counts
relation anthem
type state
type literary work
action count
action filter_multi_types
action find
entity South Vietnam
relation anthem
type hymn
type literary work
[{'concept': 'state'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?o ) WHERE { { ?t property:anthem ?j . ?t rdf:type ontology:state . ?j rdf:type ontology:literary_work } UNION { ?t property:anthem ?j . ?t rdf:type ontology:state . ?j rdf:type ontology:hymn } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { resource:South_Vietnam property:anthem ?m . { ?m rdf:type ?a . VALUES ( ?a ) { ( ontology:literary_work ) ( ontology:hymn ) } } } } . FILTER ( ?o = ?l ) }
[]
hymn literary work state
SYSTEM
117
Q241748 Q211853 Q180573 Q797527 Q1274468 Q2414171 Q218023 Q245160 Q25279 Q174193 Q965174 Q233263 Q1028835 Q330988 Q139670 Q27306 Q457167 Q533558 Q167360 Q1044536 Q209065 Q21203 Q713750 Q209062 Q1998866 Q207162 Q11196 Q2006542 Q131964 Q133356 Q2454585 Q33946 Q83572 Q191077 Q2638486 Q28278 Q16957 Q1649871 Q941881 Q870055 Q842794 Q1057542 Q652560 Q550374 Q178038 Q30623 Q203493 Q867778 Q147909 Q980 Q58202 Q1709185 Q154401 Q180393 Q112558 Q252580 Q518101 Q37024 Q16410 Q153128 Q83286 Q173761 Q207272 Q25227 Q15864 Q738144 Q36704 Q950644 Q153015 Q49910 Q386496 Q696242 Q71092 Q217230 Q170072 Q170174 Q212056 Q210542 Q7318 Q1072140 Q170468 Q146328 Q248452 Q8733 Q371334 Q853348 Q824489 Q2342822 Q189988 Q1192936 Q615902 Q708865 Q498735 Q491559 Q154195 Q1072362 Q1775277 Q121932 Q146761 Q153660 Q70972 Q497777 Q206411 Q12548 Q211274 Q6500954 Q26988 Q26273 Q139319 Q171150 Q487687 Q370736 Q541455 Q41304 Q797422 Q216173 Q178469
(c(Q7275),P85,c(Q484692)|c(Q7725634))
action count
action approx
action union
action find_tuple_counts
relation P85
type Q7275
type Q484692
action find_tuple_counts
relation P85
type Q7275
type Q7725634
action count
action filter_multi_types
action find
entity Q180573
relation P85
type Q484692
type Q7725634
[ANSWER]
[{'concept': 'Q7275'}, 'P85', [{'concept': 'Q484692'}, {'concept': 'Q7725634'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?o ) WHERE { { ?t property:P85 ?j . ?t rdf:type ontology:Q7275 . ?j rdf:type ontology:Q7725634 } UNION { ?t property:P85 ?j . ?t rdf:type ontology:Q7275 . ?j rdf:type ontology:Q484692 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { resource:Q180573 property:P85 ?m . { ?m rdf:type ?a . VALUES ( ?a ) { ( ontology:Q7725634 ) ( ontology:Q484692 ) } } } } . FILTER ( ?o = ?l ) }
Kingdom of Serbia Republic of Serbian Krajina South Vietnam British Togoland Republic of Bosnia and Herzegovina First Brazilian Republic Orange Free State Democratic Republic of Georgia Curaçao United Kingdom of Great Britain and Ireland Coalition Provisional Authority Second Republic of South Korea British Cameroons Democratic Kampuchea Democratic Republic of Armenia Kingdom of Prussia West Ukrainian People's Republic Kingdom of Croatia-Slavonia First Portuguese Republic Spain under the Restoration Kingdom of Greece Aruba West Germany Socialist Republic of Croatia Czech and Slovak Federal Republic Bourbon Restoration Republika Srpska Dominion of Pakistan Austrian Empire Ukrainian Soviet Socialist Republic History of Czechoslovakia Czechoslovakia Sikh Empire Kingdom of Yugoslavia Kingdom of Cambodia Provisional Government of the Republic of Korea East Germany Kingdom of Poland Netherlands New Guinea Kingdom of Laos Socialist Republic of Romania Republic of Hawaii West Indies Federation South African Republic Second Spanish Republic Manchukuo Kingdom of Romania People's Republic of Kampuchea Kingdom of Bulgaria Bavaria July Monarchy Kingdom of Spain under Joseph Bonaparte Slovak Republic Kingdom of the Two Sicilies Republic of Saugeais Duchy of Modena and Reggio First Republic of Austria Serbia and Montenegro People's Republic of Hungary Independent State of Croatia Socialist Federal Republic of Yugoslavia Lithuanian Soviet Socialist Republic Second Polish Republic Netherlands Antilles United Kingdom of the Netherlands United Provinces of the Río de la Plata Yugoslavia Carpatho-Ukraine Kingdom of Saxony Colony of Aden Kingdom of Montenegro Reorganized National Government of China Second French Empire Empire of Brazil Dutch Republic Papal States Mongolian People's Republic Second Brazilian Republic Nazi Germany Roman Republic United Arab Republic Commonwealth of the Philippines British North America Qing dynasty Second Mexican Empire Czechoslovak Socialist Republic Estado Novo West Pakistan Central African Empire Kingdom of Burundi Kingdom of Finland Reformed Government of the Republic of China division of Korea First Republic of South Korea Kingdom of Bavaria Provisional Revolutionary Government of the Republic of South Vietnam Dominion of India People's Republic of Bulgaria Hatay State Italian Social Republic Kingdom of France First Spanish Republic Democratic Republic of Azerbaijan Holy Roman Empire People's Republic of Poland Zaire Cook Islands Sint Maarten Russian Republic Kingdom of Hungary Third Republic of South Korea Cape Colony Anglo-Egyptian Sudan Weimar Republic Republic of Upper Volta Free City of Danzig Biafra
117
action count
action approx
action union
action find_tuple_counts
relation anthem
type state
type hymn
action find_tuple_counts
relation anthem
type state
type literary work
action count
action filter_multi_types
action find
entity South Vietnam
relation anthem
type hymn
type literary work
[{'concept': 'state'}, 'anthem', [{'concept': 'hymn'}, {'concept': 'literary work'}]]
SELECT DISTINCT ( COUNT ( ?t ) AS ?d ) WHERE { { SELECT DISTINCT ?t ( COUNT ( ?j ) AS ?o ) WHERE { { ?t property:anthem ?j . ?t rdf:type ontology:state . ?j rdf:type ontology:literary_work } UNION { ?t property:anthem ?j . ?t rdf:type ontology:state . ?j rdf:type ontology:hymn } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?m ) AS ?l ) WHERE { resource:South_Vietnam property:anthem ?m . { ?m rdf:type ?a . VALUES ( ?a ) { ( ontology:literary_work ) ( ontology:hymn ) } } } } . FILTER ( ?o = ?l ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q20876601 Q16236225
P27
Q15617994
USER
Which administrative territories are the native countriesof Bence Jagodics or Meritxell Roigé i Pedrola ?
OR((Q16236225,P27,c(Q15617994)), (Q20876601,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q16236225
relation P27
action find
entity Q20876601
relation P27
type Q15617994
{'OR': [['Q16236225', 'P27', {'concept': 'Q15617994'}], ['Q20876601', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . { VALUES ( ?x ) { ( resource:Q16236225 ) ( resource:Q20876601 ) } . ?x property:P27 ?e } }
Meritxell Roigé i Pedrola Bence Jagodics
action filter_type
action union
action find
entity Bence Jagodics
relation country of citizenship
action find
entity Meritxell Roigé i Pedrola
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Bence Jagodics', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Meritxell Roigé i Pedrola', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?x ) { ( resource:Bence_Jagodics ) ( resource:Meritxell_Roigé_i_Pedrola ) } . ?x property:country_of_citizenship ?e } }
[]
designation for an administrative territorial entity
Q28 Q29
SYSTEM
Hungary, Spain
Q28 Q29
OR((Q16236225,P27,c(Q15617994)), (Q20876601,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q16236225
relation P27
action find
entity Q20876601
relation P27
type Q15617994
[ANSWERS] are the native countriesof Bence Jagodics or Meritxell Roigé i Pedrola
{'OR': [['Q16236225', 'P27', {'concept': 'Q15617994'}], ['Q20876601', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q15617994 . { VALUES ( ?x ) { ( resource:Q16236225 ) ( resource:Q20876601 ) } . ?x property:P27 ?e } }
Hungary Spain
Hungary and Spain are the native countriesof Bence Jagodics or Meritxell Roigé i Pedrola
Hungary Spain
action filter_type
action union
action find
entity Bence Jagodics
relation country of citizenship
action find
entity Meritxell Roigé i Pedrola
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Bence Jagodics', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Meritxell Roigé i Pedrola', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:designation_for_an_administrative_territorial_entity . { VALUES ( ?x ) { ( resource:Bence_Jagodics ) ( resource:Meritxell_Roigé_i_Pedrola ) } . ?x property:country_of_citizenship ?e } }
[]