Simple Question (Direct)
Simple Question
Q6116451
P19
Q56061
USER
Which administrative territory was Jackie Kay born at ?
(Q6116451,P19,c(Q56061))
action filter_type
action find
entity Q6116451
relation P19
type Q56061
['Q6116451', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q6116451 property:P19 ?s . ?s rdf:type ontology:Q56061 }
Jackie Kay
action filter_type
action find
entity Jackie Kay
relation place of birth
type administrative territorial entity
['Jackie Kay', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Jackie_Kay property:place_of_birth ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q23436
SYSTEM
Edinburgh
Q23436
(Q6116451,P19,c(Q56061))
action filter_type
action find
entity Q6116451
relation P19
type Q56061
The [ANSWER] was Jackie Kay born at
['Q6116451', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?s WHERE { resource:Q6116451 property:P19 ?s . ?s rdf:type ontology:Q56061 }
Edinburgh
The Edinburgh was Jackie Kay born at
Edinburgh
action filter_type
action find
entity Jackie Kay
relation place of birth
type administrative territorial entity
['Jackie Kay', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?s WHERE { resource:Jackie_Kay property:place_of_birth ?s . ?s rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6116451
P463
Q48204
USER
Which voluntary association had Jackie Kay as its member ?
(Q6116451,P463,c(Q48204))
action filter_type
action find
entity Q6116451
relation P463
type Q48204
['Q6116451', 'P463', {'concept': 'Q48204'}]
SELECT DISTINCT ?u WHERE { resource:Q6116451 property:P463 ?u . ?u rdf:type ontology:Q48204 }
Jackie Kay
action filter_type
action find
entity Jackie Kay
relation member of
type voluntary association
['Jackie Kay', 'member of', {'concept': 'voluntary association'}]
SELECT DISTINCT ?u WHERE { resource:Jackie_Kay property:member_of ?u . ?u rdf:type ontology:voluntary_association }
[]
voluntary association
Q1468277
SYSTEM
Royal Society of Literature
Q1468277
(Q6116451,P463,c(Q48204))
action filter_type
action find
entity Q6116451
relation P463
type Q48204
The [ANSWER] had Jackie Kay as its member
['Q6116451', 'P463', {'concept': 'Q48204'}]
SELECT DISTINCT ?u WHERE { resource:Q6116451 property:P463 ?u . ?u rdf:type ontology:Q48204 }
Royal Society of Literature
The Royal Society of Literature had Jackie Kay as its member
Royal Society of Literature
action filter_type
action find
entity Jackie Kay
relation member of
type voluntary association
['Jackie Kay', 'member of', {'concept': 'voluntary association'}]
SELECT DISTINCT ?u WHERE { resource:Jackie_Kay property:member_of ?u . ?u rdf:type ontology:voluntary_association }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q6116451
P21
Q290
USER
Which sex does Jackie Kay possess ?
(Q6116451,P21,c(Q290))
action filter_type
action find
entity Q6116451
relation P21
type Q290
['Q6116451', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q6116451 property:P21 ?v . ?v rdf:type ontology:Q290 }
Jackie Kay
action filter_type
action find
entity Jackie Kay
relation gender
type sex
['Jackie Kay', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Jackie_Kay property:gender ?v . ?v rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q6116451,P21,c(Q290))
action filter_type
action find
entity Q6116451
relation P21
type Q290
[ANSWER] does Jackie Kay possess
['Q6116451', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?v WHERE { resource:Q6116451 property:P21 ?v . ?v rdf:type ontology:Q290 }
female
Female does Jackie Kay possess
female
action filter_type
action find
entity Jackie Kay
relation gender
type sex
['Jackie Kay', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?v WHERE { resource:Jackie_Kay property:gender ?v . ?v rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q3858227
Q290
USER
And what about Mimosa Campironi?
(Q3858227,P21,c(Q290))
action filter_type
action find
entity Q3858227
relation P21
type Q290
['Q3858227', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q290 . resource:Q3858227 property:P21 ?m }
Mimosa Campironi
action filter_type
action find
entity Mimosa Campironi
relation gender
type sex
['Mimosa Campironi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:sex . resource:Mimosa_Campironi property:gender ?m }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q3858227,P21,c(Q290))
action filter_type
action find
entity Q3858227
relation P21
type Q290
[ANSWER]
['Q3858227', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q290 . resource:Q3858227 property:P21 ?m }
female
female
action filter_type
action find
entity Mimosa Campironi
relation gender
type sex
['Mimosa Campironi', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:sex . resource:Mimosa_Campironi property:gender ?m }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q23436
P276
Q132241
USER
Which festival has its location as Edinburgh ?
(c(Q132241),P276,Q23436)
action filter_type
action find_reverse
entity Q23436
relation P276
type Q132241
[{'concept': 'Q132241'}, 'P276', 'Q23436']
SELECT DISTINCT ?f WHERE { ?f property:P276 resource:Q23436 . ?f rdf:type ontology:Q132241 }
Edinburgh
action filter_type
action find_reverse
entity Edinburgh
relation location
type festival
[{'concept': 'festival'}, 'location', 'Edinburgh']
SELECT DISTINCT ?f WHERE { ?f property:location resource:Edinburgh . ?f rdf:type ontology:festival }
[]
festival
Q368176
SYSTEM
Edinburgh Festival Fringe
Q368176
(c(Q132241),P276,Q23436)
action filter_type
action find_reverse
entity Q23436
relation P276
type Q132241
The [ANSWER] has its location as Edinburgh
[{'concept': 'Q132241'}, 'P276', 'Q23436']
SELECT DISTINCT ?f WHERE { ?f property:P276 resource:Q23436 . ?f rdf:type ontology:Q132241 }
Edinburgh Festival Fringe
The Edinburgh Festival Fringe has its location as Edinburgh
Edinburgh Festival Fringe
action filter_type
action find_reverse
entity Edinburgh
relation location
type festival
[{'concept': 'festival'}, 'location', 'Edinburgh']
SELECT DISTINCT ?f WHERE { ?f property:location resource:Edinburgh . ?f rdf:type ontology:festival }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q23436
P17
Q7275
USER
Which states are that administrative territory located in ?
(Q368176,P17,c(Q7275))
action filter_type
action find
entity Q23436
relation P17
type Q7275
['Q368176', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?r WHERE { resource:Q23436 property:P17 ?r . ?r rdf:type ontology:Q7275 }
Edinburgh
action filter_type
action find
entity Edinburgh
relation country
type state
['Edinburgh Festival Fringe', 'country', {'concept': 'state'}]
SELECT DISTINCT ?r WHERE { resource:Edinburgh property:country ?r . ?r rdf:type ontology:state }
[]
state
Q161885 Q230791 Q174193
SYSTEM
Kingdom of Great Britain, Kingdom of Scotland, United Kingdom of Great Britain and Ireland
Q161885 Q230791 Q174193
(Q368176,P17,c(Q7275))
action filter_type
action find
entity Q23436
relation P17
type Q7275
That administrative territory are located in [ANSWERS]
['Q368176', 'P17', {'concept': 'Q7275'}]
SELECT DISTINCT ?r WHERE { resource:Q23436 property:P17 ?r . ?r rdf:type ontology:Q7275 }
Kingdom of Great Britain Kingdom of Scotland United Kingdom of Great Britain and Ireland
That administrative territory are located in Kingdom of Great Britain, Kingdom of Scotland and United Kingdom of Great Britain and Ireland
Kingdom of Great Britain Kingdom of Scotland United Kingdom of Great Britain and Ireland
action filter_type
action find
entity Edinburgh
relation country
type state
['Edinburgh Festival Fringe', 'country', {'concept': 'state'}]
SELECT DISTINCT ?r WHERE { resource:Edinburgh property:country ?r . ?r rdf:type ontology:state }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P1376
Q7275 Q56061 Q486972
USER
How many states have around the same number of administrative territories and human settlements have their first city as that state ?
(c(Q56061)|c(Q486972),P1376,c(Q7275))
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) 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 ( COUNT ( ?y ) AS ?w ) 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|Count over More/Less|Mult. entity type|Clarification
Q174193
SYSTEM
Did you mean United Kingdom of Great Britain and Ireland ?
(c(Q56061)|c(Q486972),P1376,c(Q7275))
[ANSWER]
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) 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 United Kingdom of Great Britain and Ireland ?
United Kingdom of Great Britain and Ireland
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) 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 (Count) (All)
USER
No, I meant Kingdom of Scotland. Could you tell me the answer for that?
(c(Q56061)|c(Q486972),P1376,c(Q7275))
Q230791
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q7275'}]
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'state'}]
[]
SYSTEM
326
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))
[ANSWER]
[[{'concept': 'Q56061'}, {'concept': 'Q486972'}], 'P1376', {'concept': 'Q7275'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) 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 }
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
326
[[{'concept': 'administrative territorial entity'}, {'concept': 'human settlement'}], 'capital of', {'concept': 'state'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) 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 }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q230791
P36
Q56061
USER
Which administrative territory is called the capital of that state ?
action filter_type
action find
entity Q230791
relation P36
type Q56061
SELECT DISTINCT ?w WHERE { resource:Q230791 property:P36 ?w . ?w rdf:type ontology:Q56061 }
Kingdom of Scotland
action filter_type
action find
entity Kingdom of Scotland
relation capital
type administrative territorial entity
SELECT DISTINCT ?w WHERE { resource:Kingdom_of_Scotland property:capital ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q23436
SYSTEM
Edinburgh
Q23436
action filter_type
action find
entity Q230791
relation P36
type Q56061
[ANSWER] is called the capital of that state
SELECT DISTINCT ?w WHERE { resource:Q230791 property:P36 ?w . ?w rdf:type ontology:Q56061 }
Edinburgh
Edinburgh is called the capital of that state
Edinburgh
action filter_type
action find
entity Kingdom of Scotland
relation capital
type administrative territorial entity
SELECT DISTINCT ?w WHERE { resource:Kingdom_of_Scotland property:capital ?w . ?w rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q385699 Q230791
P19 P36
Q56061
USER
Which administrative territories are the capitals of Kingdom of Scotland or are the places of birth of Aliakseï Chahaw ?
OR((Q230791,P36,c(Q56061)), (Q385699,P19,c(Q56061)))
action filter_type
action union
action find
entity Q230791
relation P36
action find
entity Q385699
relation P19
type Q56061
{'OR': [['Q230791', 'P36', {'concept': 'Q56061'}], ['Q385699', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q230791 property:P36 ?d } UNION { resource:Q385699 property:P19 ?d } } . ?d rdf:type ontology:Q56061 }
Aliakseï Chahaw Kingdom of Scotland
action filter_type
action union
action find
entity Kingdom of Scotland
relation capital
action find
entity Aliakseï Chahaw
relation place of birth
type administrative territorial entity
{'OR': [['Kingdom of Scotland', 'capital', {'concept': 'administrative territorial entity'}], ['Aliakseï Chahaw', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Kingdom_of_Scotland property:capital ?d } UNION { resource:Aliakseï_Chahaw property:place_of_birth ?d } } . ?d rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q2280 Q23436
SYSTEM
Minsk, Edinburgh
Q2280 Q23436
OR((Q230791,P36,c(Q56061)), (Q385699,P19,c(Q56061)))
action filter_type
action union
action find
entity Q230791
relation P36
action find
entity Q385699
relation P19
type Q56061
[ANSWERS] are the capitals of Kingdom of Scotland or are the places of birth of Aliakseï Chahaw
{'OR': [['Q230791', 'P36', {'concept': 'Q56061'}], ['Q385699', 'P19', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Q230791 property:P36 ?d } UNION { resource:Q385699 property:P19 ?d } } . ?d rdf:type ontology:Q56061 }
Minsk Edinburgh
Minsk and Edinburgh are the capitals of Kingdom of Scotland or are the places of birth of Aliakseï Chahaw
Minsk Edinburgh
action filter_type
action union
action find
entity Kingdom of Scotland
relation capital
action find
entity Aliakseï Chahaw
relation place of birth
type administrative territorial entity
{'OR': [['Kingdom of Scotland', 'capital', {'concept': 'administrative territorial entity'}], ['Aliakseï Chahaw', 'place of birth', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?d WHERE { { { resource:Kingdom_of_Scotland property:capital ?d } UNION { resource:Aliakseï_Chahaw property:place_of_birth ?d } } . ?d rdf:type ontology:administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2280
P190
Q56061 Q20667921
USER
How many administrative territories or french administrative divisions are twin town of Minsk ?
(c(Q56061),P190,Q2280) (c(Q20667921),P190,Q2280)
action count
action union
action filter_type
action find_reverse
entity Q2280
relation P190
type Q56061
action filter_type
action find_reverse
entity Q2280
relation P190
type Q20667921
[{'concept': 'Q56061'}, 'P190', 'Q2280'] [{'concept': 'Q20667921'}, 'P190', 'Q2280']
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { { ?w property:P190 resource:Q2280 . ?w rdf:type ontology:Q56061 } UNION { ?w property:P190 resource:Q2280 . ?w rdf:type ontology:Q20667921 } }
Minsk
action count
action union
action filter_type
action find_reverse
entity Minsk
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Minsk
relation sister city
type type of french administrative division
[{'concept': 'administrative territorial entity'}, 'sister city', 'Minsk'] [{'concept': 'type of french administrative division'}, 'sister city', 'Minsk']
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { { ?w property:sister_city resource:Minsk . ?w rdf:type ontology:administrative_territorial_entity } UNION { ?w property:sister_city resource:Minsk . ?w rdf:type ontology:type_of_french_administrative_division } }
[]
administrative territorial entity type of french administrative division
SYSTEM
24
Q9832 Q1874 Q580 Q3640 Q586 Q21197 Q132572 Q85 Q1763 Q12439 Q9365 Q1829 Q216 Q41262 Q956 Q42800 Q2837 Q49256 Q2801 Q166997 Q898 Q1563 Q883 Q891
(c(Q56061),P190,Q2280) (c(Q20667921),P190,Q2280)
action count
action union
action filter_type
action find_reverse
entity Q2280
relation P190
type Q56061
action filter_type
action find_reverse
entity Q2280
relation P190
type Q20667921
[ANSWER]
[{'concept': 'Q56061'}, 'P190', 'Q2280'] [{'concept': 'Q20667921'}, 'P190', 'Q2280']
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { { ?w property:P190 resource:Q2280 . ?w rdf:type ontology:Q56061 } UNION { ?w property:P190 resource:Q2280 . ?w rdf:type ontology:Q20667921 } }
Eindhoven Odessa Łódź Ankara Bonn Chișinău Tiraspol Cairo Murmansk Detroit Dushanbe Kaliningrad Vilnius Nottingham Beijing Belo Horizonte Kaluga Bakersfield Bryansk Nevers Omsk Havana Novosibirsk Nizhny Novgorod
24
action count
action union
action filter_type
action find_reverse
entity Minsk
relation sister city
type administrative territorial entity
action filter_type
action find_reverse
entity Minsk
relation sister city
type type of french administrative division
[{'concept': 'administrative territorial entity'}, 'sister city', 'Minsk'] [{'concept': 'type of french administrative division'}, 'sister city', 'Minsk']
SELECT DISTINCT ( COUNT ( ?w ) AS ?y ) WHERE { { ?w property:sister_city resource:Minsk . ?w rdf:type ontology:administrative_territorial_entity } UNION { ?w property:sister_city resource:Minsk . ?w rdf:type ontology:type_of_french_administrative_division } }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q2280
P1376
Q5589178 Q13220204
USER
How many regimes or administrative country subdivisions have Minsk as their capital ?
(Q2280,P1376,c(Q5589178)) (Q2280,P1376,c(Q13220204))
action count
action union
action filter_type
action find
entity Q2280
relation P1376
type Q5589178
action filter_type
action find
entity Q2280
relation P1376
type Q13220204
['Q2280', 'P1376', {'concept': 'Q5589178'}] ['Q2280', 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { { resource:Q2280 property:P1376 ?q . ?q rdf:type ontology:Q5589178 } UNION { resource:Q2280 property:P1376 ?q . ?q rdf:type ontology:Q13220204 } }
Minsk
action count
action union
action filter_type
action find
entity Minsk
relation capital of
type regime
action filter_type
action find
entity Minsk
relation capital of
type second-level administrative country subdivision
['Minsk', 'capital of', {'concept': 'regime'}] ['Minsk', 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { { resource:Minsk property:capital_of ?q . ?q rdf:type ontology:regime } UNION { resource:Minsk property:capital_of ?q . ?q rdf:type ontology:second-level_administrative_country_subdivision } }
[]
regime second-level administrative country subdivision
SYSTEM
2
Q1636191 Q842199
(Q2280,P1376,c(Q5589178)) (Q2280,P1376,c(Q13220204))
action count
action union
action filter_type
action find
entity Q2280
relation P1376
type Q5589178
action filter_type
action find
entity Q2280
relation P1376
type Q13220204
[ANSWER]
['Q2280', 'P1376', {'concept': 'Q5589178'}] ['Q2280', 'P1376', {'concept': 'Q13220204'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { { resource:Q2280 property:P1376 ?q . ?q rdf:type ontology:Q5589178 } UNION { resource:Q2280 property:P1376 ?q . ?q rdf:type ontology:Q13220204 } }
Minsk District Belarusian People's Republic
2
action count
action union
action filter_type
action find
entity Minsk
relation capital of
type regime
action filter_type
action find
entity Minsk
relation capital of
type second-level administrative country subdivision
['Minsk', 'capital of', {'concept': 'regime'}] ['Minsk', 'capital of', {'concept': 'second-level administrative country subdivision'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?a ) WHERE { { resource:Minsk property:capital_of ?q . ?q rdf:type ontology:regime } UNION { resource:Minsk property:capital_of ?q . ?q rdf:type ontology:second-level_administrative_country_subdivision } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1143164
P36
Q20667921 Q515 Q7275
USER
How many states are greater number of french administrative divisions and cities the capital of than Western Wei ?
(c(Q7275),P36,c(Q20667921)|c(Q515))
action count
action greater
action union
action find_tuple_counts
relation P36
type Q7275
type Q20667921
action find_tuple_counts
relation P36
type Q7275
type Q515
action count
action filter_multi_types
action find
entity Q1143164
relation P36
type Q20667921
type Q515
[{'concept': 'Q7275'}, 'P36', [{'concept': 'Q20667921'}, {'concept': 'Q515'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) ?p WHERE { VALUES ( ?q ) { ( ontology:Q20667921 ) ( ontology:Q515 ) } . ?m rdf:type ?q } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { resource:Q1143164 property:P36 ?v . { { ?v rdf:type ontology:Q20667921 } UNION { ?v rdf:type ontology:Q515 } } } } . FILTER ( ?o > ?a ) }
Western Wei
action count
action greater
action union
action find_tuple_counts
relation capital
type state
type type of french administrative division
action find_tuple_counts
relation capital
type state
type city
action count
action filter_multi_types
action find
entity Western Wei
relation capital
type type of french administrative division
type city
[{'concept': 'state'}, 'capital', [{'concept': 'type of french administrative division'}, {'concept': 'city'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) ?p WHERE { VALUES ( ?q ) { ( ontology:type_of_french_administrative_division ) ( ontology:city ) } . ?m rdf:type ?q } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { resource:Western_Wei property:capital ?v . { { ?v rdf:type ontology:type_of_french_administrative_division } UNION { ?v rdf:type ontology:city } } } } . FILTER ( ?o > ?a ) }
[]
type of french administrative division city state
SYSTEM
80
Q18285930 Q3456417 Q855044 Q210198 Q133356 Q215530 Q912043 Q203493 Q1574107 Q15864 Q698089 Q210542 Q2114397 Q220110 Q1414395 Q756895 Q129569 Q6500954 Q274488 Q476757 Q1274468 Q6412669 Q234197 Q49697 Q153080 Q1154540 Q550374 Q19831559 Q1048918 Q783489 Q618399 Q180573 Q216786 Q752662 Q1668970 Q320930 Q849623 Q139670 Q1138904 Q7352 Q9903 Q941881 Q38060 Q1192067 Q844250 Q738144 Q207521 Q1658411 Q157734 Q1415585 Q146328 Q1508143 Q940821 Q248572 Q697084 Q747314 Q213586 Q11196 Q842091 Q146713 Q427941 Q697837 Q307069 Q28278 Q62454 Q112558 Q1483430 Q2372248 Q505503 Q153015 Q846670 Q696242 Q1479726 Q467864 Q212056 Q13426199 Q3041595 Q484104 Q648297 Q149805
(c(Q7275),P36,c(Q20667921)|c(Q515))
action count
action greater
action union
action find_tuple_counts
relation P36
type Q7275
type Q20667921
action find_tuple_counts
relation P36
type Q7275
type Q515
action count
action filter_multi_types
action find
entity Q1143164
relation P36
type Q20667921
type Q515
[ANSWER]
[{'concept': 'Q7275'}, 'P36', [{'concept': 'Q20667921'}, {'concept': 'Q515'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) ?p WHERE { VALUES ( ?q ) { ( ontology:Q20667921 ) ( ontology:Q515 ) } . ?m rdf:type ?q } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { resource:Q1143164 property:P36 ?v . { { ?v rdf:type ontology:Q20667921 } UNION { ?v rdf:type ontology:Q515 } } } } . FILTER ( ?o > ?a ) }
German Empire of 1848/1849 Republic of Saint-Malo Bhopal State Erivan Khanate Ukrainian Soviet Socialist Republic Kingdom of Ireland Jin Kingdom of Romania Han Zhao United Kingdom of the Netherlands Grand Duchy of Würzburg Second Brazilian Republic Yogyakarta Sultanate Rohan Republic of South Maluku Kediri Poher Zaire Eastern Wu Democratic Republic of Afghanistan Republic of Bosnia and Herzegovina Kingdom of Tunisia Srivijaya Liu Song dynasty East Francia Later Jin Dynasty South African Republic Oldenburg Suebic Kingdom of Galicia Later Liang dynasty Republic of the Congo South Vietnam Champa Hafsid dynasty Western Qin Cao Wei Oyo Empire Democratic Republic of Armenia Kingdom of Afghanistan Jin dynasty Ming imperium Netherlands New Guinea Gaul Min Lordship of Ireland United Provinces of the Río de la Plata Abyssinia Kingdom of Sarawak Muscat and Oman Islamic State of Afghanistan Commonwealth of the Philippines Ukrainian State People's Democratic Republic of Ethiopia Sultanate of Maguindanao Duchy of Oldenburg Bechuanaland Protectorate Gondor Republika Srpska Duchy of Normandy Arab Federation Islamic Emirate of Afghanistan Mengjiang Eastern Wei Provisional Government of the Republic of Korea Chen dynasty Republic of Saugeais Principality of Kiev Free State of Oldenburg Cochinchina Kingdom of Saxony Danishmends Reorganized National Government of China Federation of Malaya People's Socialist Republic of Albania Mongolian People's Republic Republic of China Republic of Iraq United States Army Military Government in Korea Free State of Brunswick Kingdom of Iraq
80
action count
action greater
action union
action find_tuple_counts
relation capital
type state
type type of french administrative division
action find_tuple_counts
relation capital
type state
type city
action count
action filter_multi_types
action find
entity Western Wei
relation capital
type type of french administrative division
type city
[{'concept': 'state'}, 'capital', [{'concept': 'type of french administrative division'}, {'concept': 'city'}]]
SELECT DISTINCT ( COUNT ( ?p ) AS ?d ) WHERE { { SELECT DISTINCT ( COUNT ( ?m ) AS ?o ) ?p WHERE { VALUES ( ?q ) { ( ontology:type_of_french_administrative_division ) ( ontology:city ) } . ?m rdf:type ?q } GROUP BY ?p } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?a ) WHERE { resource:Western_Wei property:capital ?v . { { ?v rdf:type ontology:type_of_french_administrative_division } UNION { ?v rdf:type ontology:city } } } } . FILTER ( ?o > ?a ) }
[]