Simple Question (Direct)
Simple Question
Q1253475
P106
Q12737077
USER
What do Jovan Ćirilov do for a living ?
(Q1253475,P106,c(Q12737077))
action filter_type
action find
entity Q1253475
relation P106
type Q12737077
['Q1253475', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q1253475 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
Jovan Ćirilov
action filter_type
action find
entity Jovan Ćirilov
relation occupation
type occupation
['Jovan Ćirilov', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Jovan_Ćirilov property:occupation ?m . ?m rdf:type ontology:occupation }
[]
occupation
Q10379007 Q36180 Q49757
SYSTEM
theatrologist, writer, poet
Q10379007 Q36180 Q49757
(Q1253475,P106,c(Q12737077))
action filter_type
action find
entity Q1253475
relation P106
type Q12737077
[ANSWERS] Jovan Ćirilov do for a living
['Q1253475', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { resource:Q1253475 property:P106 ?m . ?m rdf:type ontology:Q12737077 }
theatrologist writer poet
Theatrologist, writer and poet Jovan Ćirilov do for a living
theatrologist writer poet
action filter_type
action find
entity Jovan Ćirilov
relation occupation
type occupation
['Jovan Ćirilov', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { resource:Jovan_Ćirilov property:occupation ?m . ?m rdf:type ontology:occupation }
[]
Clarification
Simple Question|Single Entity|Indirect
Q49757
P921
Q2342494
USER
Which collectable was mainly based on that occupation ?
(c(Q2342494),P921,Q49757)
action filter_type
action find_reverse
entity Q49757
relation P921
type Q2342494
[{'concept': 'Q2342494'}, 'P921', 'Q49757']
SELECT DISTINCT ?b WHERE { ?b property:P921 resource:Q49757 . ?b rdf:type ontology:Q2342494 }
poet
action filter_type
action find_reverse
entity poet
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'poet']
SELECT DISTINCT ?b WHERE { ?b property:main_subject resource:poet . ?b rdf:type ontology:collectable }
[]
collectable
Clarification for simple ques.
Q36180
SYSTEM
Did you mean writer ?
Q10379007 Q36180 Q49757
(c(Q2342494),P921,Q10379007) (c(Q2342494),P921,Q36180) (c(Q2342494),P921,Q49757)
[ANSWER]
[{'concept': 'Q2342494'}, 'P921', 'Q10379007'] [{'concept': 'Q2342494'}, 'P921', 'Q36180'] [{'concept': 'Q2342494'}, 'P921', 'Q49757']
SELECT DISTINCT ?b WHERE { ?b property:P921 resource:Q49757 . ?b rdf:type ontology:Q2342494 }
theatrologist writer poet
Did you mean writer ?
writer
[{'concept': 'collectable'}, 'main subject', 'theatrologist'] [{'concept': 'collectable'}, 'main subject', 'writer'] [{'concept': 'collectable'}, 'main subject', 'poet']
SELECT DISTINCT ?b WHERE { ?b property:main_subject resource:poet . ?b rdf:type ontology:collectable }
[]
Simple Question (Coreferenced)
USER
No, I meant poet. Could you tell me the answer for that?
(c(Q2342494),P921,Q49757)
Q49757
[{'concept': 'Q2342494'}, 'P921', 'Q49757']
[{'concept': 'collectable'}, 'main subject', 'poet']
[]
Q966732
SYSTEM
Life Is Elsewhere
Q966732
(c(Q2342494),P921,Q49757)
action filter_type
action find_reverse
entity Q49757
relation P921
type Q2342494
[ANSWER] was mainly based on that occupation
[{'concept': 'Q2342494'}, 'P921', 'Q49757']
SELECT DISTINCT ?b WHERE { ?b property:P921 resource:Q49757 . ?b rdf:type ontology:Q2342494 }
Life Is Elsewhere
Life Is Elsewhere was mainly based on that occupation
Life Is Elsewhere
action filter_type
action find_reverse
entity poet
relation main subject
type collectable
[{'concept': 'collectable'}, 'main subject', 'poet']
SELECT DISTINCT ?b WHERE { ?b property:main_subject resource:poet . ?b rdf:type ontology:collectable }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q966732
P840
Q7275
USER
Which narrative location is that collectable set in ?
(Q966732,P840,c(Q7275))
action filter_type
action find
entity Q966732
relation P840
type Q7275
['Q966732', 'P840', {'concept': 'Q7275'}]
SELECT DISTINCT ?v WHERE { resource:Q966732 property:P840 ?v . ?v rdf:type ontology:Q7275 }
Life Is Elsewhere
action filter_type
action find
entity Life Is Elsewhere
relation narrative location
type state
['Life Is Elsewhere', 'narrative location', {'concept': 'state'}]
SELECT DISTINCT ?v WHERE { resource:Life_Is_Elsewhere property:narrative_location ?v . ?v rdf:type ontology:state }
[]
state
Q33946
SYSTEM
Czechoslovakia
Q33946
(Q966732,P840,c(Q7275))
action filter_type
action find
entity Q966732
relation P840
type Q7275
That collectable is set in [ANSWER]
['Q966732', 'P840', {'concept': 'Q7275'}]
SELECT DISTINCT ?v WHERE { resource:Q966732 property:P840 ?v . ?v rdf:type ontology:Q7275 }
Czechoslovakia
That collectable is set in Czechoslovakia
Czechoslovakia
action filter_type
action find
entity Life Is Elsewhere
relation narrative location
type state
['Life Is Elsewhere', 'narrative location', {'concept': 'state'}]
SELECT DISTINCT ?v WHERE { resource:Life_Is_Elsewhere property:narrative_location ?v . ?v rdf:type ontology:state }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q33946
P138
Q17444909
USER
Which astronomical object type has that state as its toponym ?
(c(Q17444909),P138,Q33946)
action filter_type
action find_reverse
entity Q33946
relation P138
type Q17444909
[{'concept': 'Q17444909'}, 'P138', 'Q33946']
SELECT DISTINCT ?d WHERE { ?d property:P138 resource:Q33946 . ?d rdf:type ontology:Q17444909 }
Czechoslovakia
action filter_type
action find_reverse
entity Czechoslovakia
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'Czechoslovakia']
SELECT DISTINCT ?d WHERE { ?d property:named_after resource:Czechoslovakia . ?d rdf:type ontology:astronomical_object_type }
[]
astronomical object type
Q129999
SYSTEM
2315 Czechoslovakia
Q129999
(c(Q17444909),P138,Q33946)
action filter_type
action find_reverse
entity Q33946
relation P138
type Q17444909
5 [ANSWER] has that state as its toponym
[{'concept': 'Q17444909'}, 'P138', 'Q33946']
SELECT DISTINCT ?d WHERE { ?d property:P138 resource:Q33946 . ?d rdf:type ontology:Q17444909 }
2315 Czechoslovakia
5 2315 Czechoslovakia has that state as its toponym
2315 Czechoslovakia
action filter_type
action find_reverse
entity Czechoslovakia
relation named after
type astronomical object type
[{'concept': 'astronomical object type'}, 'named after', 'Czechoslovakia']
SELECT DISTINCT ?d WHERE { ?d property:named_after resource:Czechoslovakia . ?d rdf:type ontology:astronomical_object_type }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1253475
P166
Q618779
USER
Which award was received by Jovan Ćirilov ?
(Q1253475,P166,c(Q618779))
action filter_type
action find
entity Q1253475
relation P166
type Q618779
['Q1253475', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?p WHERE { resource:Q1253475 property:P166 ?p . ?p rdf:type ontology:Q618779 }
Jovan Ćirilov
action filter_type
action find
entity Jovan Ćirilov
relation award received
type award
['Jovan Ćirilov', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?p WHERE { resource:Jovan_Ćirilov property:award_received ?p . ?p rdf:type ontology:award }
[]
award
Q3497636
SYSTEM
Statuette of Joakim Vujić
Q3497636
(Q1253475,P166,c(Q618779))
action filter_type
action find
entity Q1253475
relation P166
type Q618779
[ANSWER] was received by Jovan Ćirilov
['Q1253475', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ?p WHERE { resource:Q1253475 property:P166 ?p . ?p rdf:type ontology:Q618779 }
Statuette of Joakim Vujić
Statuette of Joakim Vujić was received by Jovan Ćirilov
Statuette of Joakim Vujić
action filter_type
action find
entity Jovan Ćirilov
relation award received
type award
['Jovan Ćirilov', 'award received', {'concept': 'award'}]
SELECT DISTINCT ?p WHERE { resource:Jovan_Ćirilov property:award_received ?p . ?p rdf:type ontology:award }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7686343 Q33946
P36
Q56061
USER
Which administrative territories are the capitals of Czechoslovakia or Tarma District ?
OR((Q33946,P36,c(Q56061)), (Q7686343,P36,c(Q56061)))
action filter_type
action union
action find
entity Q33946
relation P36
action find
entity Q7686343
relation P36
type Q56061
{'OR': [['Q33946', 'P36', {'concept': 'Q56061'}], ['Q7686343', 'P36', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { { ?u property:P36 ?a . VALUES ( ?u ) { ( resource:Q33946 ) ( resource:Q7686343 ) } } . ?a rdf:type ontology:Q56061 }
Tarma District Czechoslovakia
action filter_type
action union
action find
entity Czechoslovakia
relation capital
action find
entity Tarma District
relation capital
type administrative territorial entity
{'OR': [['Czechoslovakia', 'capital', {'concept': 'administrative territorial entity'}], ['Tarma District', 'capital', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { ?u property:capital ?a . VALUES ( ?u ) { ( resource:Czechoslovakia ) ( resource:Tarma_District ) } } . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q1085 Q1759366
SYSTEM
Prague, Tarma
Q1085 Q1759366
OR((Q33946,P36,c(Q56061)), (Q7686343,P36,c(Q56061)))
action filter_type
action union
action find
entity Q33946
relation P36
action find
entity Q7686343
relation P36
type Q56061
[ANSWERS] are the capitals of Czechoslovakia or Tarma District
{'OR': [['Q33946', 'P36', {'concept': 'Q56061'}], ['Q7686343', 'P36', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?a WHERE { { ?u property:P36 ?a . VALUES ( ?u ) { ( resource:Q33946 ) ( resource:Q7686343 ) } } . ?a rdf:type ontology:Q56061 }
Prague Tarma
Prague and Tarma are the capitals of Czechoslovakia or Tarma District
Prague Tarma
action filter_type
action union
action find
entity Czechoslovakia
relation capital
action find
entity Tarma District
relation capital
type administrative territorial entity
{'OR': [['Czechoslovakia', 'capital', {'concept': 'administrative territorial entity'}], ['Tarma District', 'capital', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?a WHERE { { ?u property:capital ?a . VALUES ( ?u ) { ( resource:Czechoslovakia ) ( resource:Tarma_District ) } } . ?a rdf:type ontology:administrative_territorial_entity }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q186537
P122
Q56061 Q28108 Q7275
USER
Which states have less number of administrative territories or political systems as the form of government than Khanate of Kazan ?
(c(Q7275),P122,c(Q56061)|c(Q28108))
action less
action union
action find_tuple_counts
relation P122
type Q7275
type Q56061
action find_tuple_counts
relation P122
type Q7275
type Q28108
action count
action filter_multi_types
action find
entity Q186537
relation P122
type Q56061
type Q28108
[{'concept': 'Q7275'}, 'P122', [{'concept': 'Q56061'}, {'concept': 'Q28108'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { resource:Q186537 property:P122 ?u . { { ?u rdf:type ontology:Q56061 } UNION { ?u rdf:type ontology:Q28108 } } } } . FILTER ( ?p < ?x ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) ?v WHERE { VALUES ( ?m ) { ( ontology:Q56061 ) ( ontology:Q28108 ) } . ?r rdf:type ?m } GROUP BY ?v } }
Khanate of Kazan
action less
action union
action find_tuple_counts
relation basic form of government
type state
type administrative territorial entity
action find_tuple_counts
relation basic form of government
type state
type political system
action count
action filter_multi_types
action find
entity Khanate of Kazan
relation basic form of government
type administrative territorial entity
type political system
[{'concept': 'state'}, 'basic form of government', [{'concept': 'administrative territorial entity'}, {'concept': 'political system'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { resource:Khanate_of_Kazan property:basic_form_of_government ?u . { { ?u rdf:type ontology:administrative_territorial_entity } UNION { ?u rdf:type ontology:political_system } } } } . FILTER ( ?p < ?x ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) ?v WHERE { VALUES ( ?m ) { ( ontology:administrative_territorial_entity ) ( ontology:political_system ) } . ?r rdf:type ?m } GROUP BY ?v } }
[]
administrative territorial entity political system state
Q33946 Q15180 Q980
SYSTEM
Czechoslovakia, Soviet Union, Bavaria
Q241748 Q211853 Q484104 Q180573 Q105092 Q3185305 Q172107 Q1538311 Q476757 Q152115 Q285658 Q18285930 Q2414171 Q179876 Q218023 Q889374 Q798431 Q3456417 Q154401 Q174193 Q965174 Q282475 Q1269234 Q889394 Q48685 Q552157 Q229411 Q201038 Q761370 Q431731 Q175881 Q330988 Q1852345 Q1194329 Q533558 Q1423680 Q617218 Q2253783 Q1247508 Q13107370 Q986665 Q744042 Q209065 Q10988528 Q1811029 Q2308237 Q19801186 Q204920 Q1998866 Q207162 Q142417 Q834486 Q545205 Q131964 Q726798 Q133356 Q215530 Q150058 Q62589 Q161885 Q4461035 Q33946 Q150056 Q83572 Q11876909 Q139319 Q191077 Q234009 Q271570 Q903779 Q841364 Q16957 Q558596 Q1649871 Q941881 Q1194765 Q514423 Q62623 Q870055 Q713750 Q544630 Q1057542 Q16949002 Q1789596 Q550374 Q1152126 Q44642 Q853348 Q203493 Q696908 Q147909 Q555994 Q980 Q652560 Q220167 Q2980623 Q1636212 Q737040 Q112558 Q124943 Q317078 Q62519 Q503623 Q940123 Q14934927 Q137766 Q172579 Q153128 Q867782 Q877579 Q551798 Q83286 Q210036 Q1277557 Q633573 Q1483430 Q200896 Q1068408 Q623751 Q49683 Q330362 Q736936 Q8146595 Q12557 Q2456191 Q310293 Q15864 Q212439 Q844250 Q1362278 Q267584 Q303421 Q207521 Q1658411 Q153015 Q2342822 Q1078602 Q75613 Q71092 Q1479726 Q15180 Q6083755 Q698089 Q1406298 Q179293 Q28278 Q157734 Q600093 Q170072 Q7382038 Q467864 Q76236 Q209857 Q1415585 Q953432 Q1115291 Q170174 Q4843701 Q212056 Q21005050 Q175276 Q210542 Q422065 Q7318 Q42585 Q170468 Q146328 Q487829 Q2365048 Q1138904 Q956451 Q27306 Q1493843 Q1508143 Q1477220 Q146713 Q156038 Q30623 Q736727 Q230407 Q940821 Q824489 Q157727 Q2088324 Q248572 Q189988 Q1192936 Q199841 Q71747 Q615902 Q1077630 Q1322229 Q173761 Q217196 Q16624774 Q23541302 Q199442 Q154195 Q498735 Q1775277 Q173082 Q121932 Q680997 Q38872 Q1152445 Q156020 Q16410 Q153660 Q1240096 Q1771831 Q70972 Q1986139 Q2145397 Q2353425 Q582861 Q1517772 Q1142179 Q12548 Q211274 Q158725 Q588672 Q6412664 Q6500954 Q1083009 Q391980 Q80211 Q1054184 Q1029847 Q832554 Q1155768 Q157367 Q427941 Q1044668 Q161036 Q266923 Q1061488 Q41304 Q752662 Q797422 Q206411 Q2305337 Q2184 Q2578706 Q1885093 Q149805
(c(Q7275),P122,c(Q56061)|c(Q28108))
action less
action union
action find_tuple_counts
relation P122
type Q7275
type Q56061
action find_tuple_counts
relation P122
type Q7275
type Q28108
action count
action filter_multi_types
action find
entity Q186537
relation P122
type Q56061
type Q28108
[ANSWERS] have less number of administrative territories or political systems as the form of government than Khanate of Kazan
[{'concept': 'Q7275'}, 'P122', [{'concept': 'Q56061'}, {'concept': 'Q28108'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { resource:Q186537 property:P122 ?u . { { ?u rdf:type ontology:Q56061 } UNION { ?u rdf:type ontology:Q28108 } } } } . FILTER ( ?p < ?x ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) ?v WHERE { VALUES ( ?m ) { ( ontology:Q56061 ) ( ontology:Q28108 ) } . ?r rdf:type ?m } GROUP BY ?v } }
Kingdom of Serbia Republic of Serbian Krajina United States Army Military Government in Korea South Vietnam Kingdom of Mercia Kingdom of Israel Polish–Lithuanian Commonwealth Travancore-Cochin Democratic Republic of Afghanistan Duchy of Warsaw First Mexican Empire German Empire of 1848/1849 First Brazilian Republic Kingdom of England Orange Free State Warsangali Sultanate Republic of Dahomey Republic of Saint-Malo Slovak Republic United Kingdom of Great Britain and Ireland Coalition Provisional Authority Kingdom of Kartli-Kakheti Stellaland Portuguese Mozambique Judah Nieuwe Republiek Delhi Sultanate Roman Kingdom Aro Confederacy Tanganyika Roman Republic Democratic Kampuchea Trucial States Nova Roma Kingdom of Croatia-Slavonia Gay and Lesbian Kingdom of the Coral Sea Islands Yamhad Kingdom of Glywysing Domain of Soissons Principality of Serbia First East Turkestan Republic Grand Duchy of Avram Kingdom of Greece Second East Turkestan Republic Finnish Socialist Workers' Republic Ahom kingdom Liberland Crown of Aragon Czech and Slovak Federal Republic Bourbon Restoration Kingdom of Valencia Federation of South Arabia Transcaucasian Socialist Federative Soviet Republic Austrian Empire Tulunids Ukrainian Soviet Socialist Republic Kingdom of Ireland Travancore Union between Sweden and Norway Kingdom of Great Britain Akkadian empire Czechoslovakia Kingdom of Cochin Sikh Empire State of Brazil Russian Republic Kingdom of Yugoslavia Magadha Kingdom of Araucanía and Patagonia United Kingdom of Portugal, Brazil and the Algarves Ayutthaya Kingdom East Germany Hadiya Kingdom Kingdom of Poland Netherlands New Guinea Kamarupa Parthenopean Republic Kalmar Union Kingdom of Laos West Germany Republic of Maryland Republic of Hawaii Lordship of Brecknock Croatia in personal union with Hungary South African Republic People's Republic of the Congo Federation of Arab Republics Czechoslovak Socialist Republic Kingdom of Romania Kingdom of Poland Kingdom of Bulgaria Ag Qoyunlu Bavaria West Indies Federation Lydenburg Republic Kingdom of Bosnia Karabakh Khanate Islamic Courts Union Republic of Saugeais Kingdom of Egypt Pskov Republic Finnish Democratic Republic Gold Coast Rustamid dynasty Murrawarri Republic Free Republic of Wendland Kingdom of Italy Independent State of Croatia Kingdom of Funan Kugelmugel Grand Duchy of Flandrensis Socialist Federal Republic of Yugoslavia Chechen Republic of Ichkeria Democratic Federal Yugoslavia Kingdom of Rheged Principality of Kiev Slovak Soviet Republic Kuru Kingdom Kingdom of Bernicia Grand Duchy of Lithuania Commonwealth of England Lu Upingtonia Mongol Empire Kingdom of Seisyllwg Saar Protectorate United Kingdom of the Netherlands Cossack Hetmanate Lordship of Ireland United States of Stellaland Yemen Arab Republic Kingdom of Galicia Abyssinia Kingdom of Sarawak Kingdom of Saxony West Pakistan Kingdom of Nepal Almoravid dynasty Second French Empire Federation of Malaya Soviet Union Islands of Refreshment Grand Duchy of Würzburg Serbian Empire Kingdom of Castile Provisional Government of the Republic of Korea Muscat and Oman Habsburg Spain Dutch Republic Imperial Throne People's Socialist Republic of Albania Lithuanian–Belorussian Soviet Socialist Republic Kingdom of Lombardy–Venetia Islamic State of Afghanistan Couto Misto Thonburi Kingdom Papal States Libyan Arab Jamahiriya Mongolian People's Republic Kingdom of Morgannwg Kingdom of León Second Brazilian Republic Sultanate of Sulu Nazi Germany Kingdom of Bohemia United Arab Republic Commonwealth of the Philippines Chagatai Khanate Adal Sultanate Kingdom of Afghanistan Kingdom of Dyfed Kingdom of Prussia Klein Vrystaat Ukrainian State Somali Democratic Republic Arab Federation Duchy of Courland and Semigallia Manchukuo Republic of Siena Kingdom of Israel People's Democratic Republic of Ethiopia Estado Novo Ifat Sultanate Colonial Brazil Sultanate of Maguindanao Central African Empire Kingdom of Burundi South Yemen Duchy of Brittany Kingdom of Finland Septinsular Republic Enlightenment in Spain Lithuanian Soviet Socialist Republic Crown of Castile Kingdom of Nicoya Kaluga Soviet Republic Kingdom of Aragon Kingdom of Bavaria division of Korea Dominion of India Dacia People's Republic of Bulgaria Principality of Lower Pannonia Prussia Aerican Empire State of the Teutonic Order People's Republic of Hungary Italian Social Republic Hyderabad State Kruševo Republic Kingdom of France Parthian Empire Goshen (South Africa) Talossa Marinid dynasty Protectorate of South Arabia Orange River Colony Holy Roman Empire People's Republic of Poland Tanganyika Territory Hammadid dynasty Realm of Stefan Dragutin Zaire Principality of Wy Free Territory of Trieste Lithuanian Soviet Socialist Republic Khmer Republic Natalia Republic Argentine Confederation Republic of Molossia Brandenburg-Prussia Islamic Emirate of Afghanistan Republic of Rose Island Free State of Prussia Kingdom of Mysore United States of Colombia Weimar Republic Hafsid dynasty Republic of Upper Volta Democratic Republic of Azerbaijan Azerbaijan People's Government Russian Soviet Federative Socialist Republic Kingdom of Ceredigion Mahra Sultanate Kingdom of Iraq
Czechoslovakia, Soviet Union and Bavaria have less number of administrative territories or political systems as the form of government than Khanate of Kazan
Czechoslovakia Soviet Union Bavaria
action less
action union
action find_tuple_counts
relation basic form of government
type state
type administrative territorial entity
action find_tuple_counts
relation basic form of government
type state
type political system
action count
action filter_multi_types
action find
entity Khanate of Kazan
relation basic form of government
type administrative territorial entity
type political system
[{'concept': 'state'}, 'basic form of government', [{'concept': 'administrative territorial entity'}, {'concept': 'political system'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?x ) WHERE { resource:Khanate_of_Kazan property:basic_form_of_government ?u . { { ?u rdf:type ontology:administrative_territorial_entity } UNION { ?u rdf:type ontology:political_system } } } } . FILTER ( ?p < ?x ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?p ) ?v WHERE { VALUES ( ?m ) { ( ontology:administrative_territorial_entity ) ( ontology:political_system ) } . ?r rdf:type ?m } GROUP BY ?v } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q2006542
P122
Q56061 Q28108 Q7275
USER
And how about Dominion of Pakistan?
(c(Q7275),P122,c(Q56061)|c(Q28108))
action less
action union
action find_tuple_counts
relation P122
type Q7275
type Q56061
action find_tuple_counts
relation P122
type Q7275
type Q28108
action count
action filter_multi_types
action find
entity Q2006542
relation P122
type Q56061
type Q28108
[{'concept': 'Q7275'}, 'P122', [{'concept': 'Q56061'}, {'concept': 'Q28108'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) ?v WHERE { { ?v property:P122 ?w . ?v rdf:type ontology:Q7275 . ?w rdf:type ontology:Q56061 } UNION { ?v property:P122 ?w . ?w rdf:type ontology:Q28108 . ?v rdf:type ontology:Q7275 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { resource:Q2006542 property:P122 ?n . { { ?n rdf:type ontology:Q56061 } UNION { ?n rdf:type ontology:Q28108 } } } } . FILTER ( ?s < ?o ) }
Dominion of Pakistan
action less
action union
action find_tuple_counts
relation basic form of government
type state
type administrative territorial entity
action find_tuple_counts
relation basic form of government
type state
type political system
action count
action filter_multi_types
action find
entity Dominion of Pakistan
relation basic form of government
type administrative territorial entity
type political system
[{'concept': 'state'}, 'basic form of government', [{'concept': 'administrative territorial entity'}, {'concept': 'political system'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) ?v WHERE { { ?v property:basic_form_of_government ?w . ?v rdf:type ontology:state . ?w rdf:type ontology:administrative_territorial_entity } UNION { ?v property:basic_form_of_government ?w . ?w rdf:type ontology:political_system . ?v rdf:type ontology:state } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { resource:Dominion_of_Pakistan property:basic_form_of_government ?n . { { ?n rdf:type ontology:administrative_territorial_entity } UNION { ?n rdf:type ontology:political_system } } } } . FILTER ( ?s < ?o ) }
[]
administrative territorial entity political system state
Q33946 Q15180 Q980
SYSTEM
Czechoslovakia, Soviet Union, Bavaria
Q241748 Q211853 Q484104 Q180573 Q105092 Q3185305 Q172107 Q1538311 Q476757 Q152115 Q285658 Q18285930 Q2414171 Q179876 Q218023 Q889374 Q798431 Q3456417 Q154401 Q174193 Q965174 Q282475 Q1269234 Q889394 Q48685 Q552157 Q229411 Q201038 Q761370 Q431731 Q175881 Q330988 Q1852345 Q1194329 Q533558 Q1423680 Q617218 Q2253783 Q1247508 Q13107370 Q986665 Q744042 Q209065 Q10988528 Q1811029 Q2308237 Q19801186 Q204920 Q1998866 Q207162 Q142417 Q834486 Q545205 Q131964 Q726798 Q133356 Q215530 Q150058 Q62589 Q161885 Q4461035 Q33946 Q150056 Q83572 Q11876909 Q139319 Q191077 Q234009 Q271570 Q903779 Q841364 Q16957 Q558596 Q1649871 Q941881 Q1194765 Q514423 Q62623 Q870055 Q713750 Q544630 Q1057542 Q16949002 Q1789596 Q550374 Q1152126 Q44642 Q853348 Q203493 Q696908 Q147909 Q555994 Q980 Q652560 Q220167 Q2980623 Q1636212 Q737040 Q112558 Q124943 Q317078 Q62519 Q503623 Q940123 Q14934927 Q137766 Q172579 Q153128 Q867782 Q877579 Q551798 Q83286 Q210036 Q1277557 Q633573 Q1483430 Q200896 Q1068408 Q623751 Q49683 Q330362 Q736936 Q8146595 Q12557 Q2456191 Q310293 Q15864 Q212439 Q844250 Q1362278 Q267584 Q303421 Q207521 Q1658411 Q153015 Q2342822 Q1078602 Q75613 Q71092 Q1479726 Q15180 Q6083755 Q698089 Q1406298 Q179293 Q28278 Q157734 Q600093 Q170072 Q7382038 Q467864 Q76236 Q209857 Q1415585 Q953432 Q1115291 Q170174 Q4843701 Q212056 Q21005050 Q175276 Q210542 Q422065 Q7318 Q42585 Q170468 Q146328 Q487829 Q2365048 Q1138904 Q956451 Q27306 Q1493843 Q1508143 Q1477220 Q146713 Q156038 Q30623 Q736727 Q230407 Q940821 Q824489 Q157727 Q2088324 Q248572 Q189988 Q1192936 Q199841 Q71747 Q615902 Q1077630 Q1322229 Q173761 Q217196 Q16624774 Q23541302 Q199442 Q154195 Q498735 Q1775277 Q173082 Q121932 Q680997 Q38872 Q1152445 Q156020 Q16410 Q153660 Q1240096 Q1771831 Q70972 Q1986139 Q2145397 Q2353425 Q582861 Q1517772 Q1142179 Q12548 Q211274 Q158725 Q588672 Q6412664 Q6500954 Q1083009 Q391980 Q80211 Q1054184 Q1029847 Q832554 Q1155768 Q157367 Q427941 Q1044668 Q161036 Q266923 Q1061488 Q41304 Q752662 Q797422 Q206411 Q2305337 Q2184 Q2578706 Q1885093 Q149805
(c(Q7275),P122,c(Q56061)|c(Q28108))
action less
action union
action find_tuple_counts
relation P122
type Q7275
type Q56061
action find_tuple_counts
relation P122
type Q7275
type Q28108
action count
action filter_multi_types
action find
entity Q2006542
relation P122
type Q56061
type Q28108
[ANSWERS]
[{'concept': 'Q7275'}, 'P122', [{'concept': 'Q56061'}, {'concept': 'Q28108'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) ?v WHERE { { ?v property:P122 ?w . ?v rdf:type ontology:Q7275 . ?w rdf:type ontology:Q56061 } UNION { ?v property:P122 ?w . ?w rdf:type ontology:Q28108 . ?v rdf:type ontology:Q7275 } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { resource:Q2006542 property:P122 ?n . { { ?n rdf:type ontology:Q56061 } UNION { ?n rdf:type ontology:Q28108 } } } } . FILTER ( ?s < ?o ) }
Kingdom of Serbia Republic of Serbian Krajina United States Army Military Government in Korea South Vietnam Kingdom of Mercia Kingdom of Israel Polish–Lithuanian Commonwealth Travancore-Cochin Democratic Republic of Afghanistan Duchy of Warsaw First Mexican Empire German Empire of 1848/1849 First Brazilian Republic Kingdom of England Orange Free State Warsangali Sultanate Republic of Dahomey Republic of Saint-Malo Slovak Republic United Kingdom of Great Britain and Ireland Coalition Provisional Authority Kingdom of Kartli-Kakheti Stellaland Portuguese Mozambique Judah Nieuwe Republiek Delhi Sultanate Roman Kingdom Aro Confederacy Tanganyika Roman Republic Democratic Kampuchea Trucial States Nova Roma Kingdom of Croatia-Slavonia Gay and Lesbian Kingdom of the Coral Sea Islands Yamhad Kingdom of Glywysing Domain of Soissons Principality of Serbia First East Turkestan Republic Grand Duchy of Avram Kingdom of Greece Second East Turkestan Republic Finnish Socialist Workers' Republic Ahom kingdom Liberland Crown of Aragon Czech and Slovak Federal Republic Bourbon Restoration Kingdom of Valencia Federation of South Arabia Transcaucasian Socialist Federative Soviet Republic Austrian Empire Tulunids Ukrainian Soviet Socialist Republic Kingdom of Ireland Travancore Union between Sweden and Norway Kingdom of Great Britain Akkadian empire Czechoslovakia Kingdom of Cochin Sikh Empire State of Brazil Russian Republic Kingdom of Yugoslavia Magadha Kingdom of Araucanía and Patagonia United Kingdom of Portugal, Brazil and the Algarves Ayutthaya Kingdom East Germany Hadiya Kingdom Kingdom of Poland Netherlands New Guinea Kamarupa Parthenopean Republic Kalmar Union Kingdom of Laos West Germany Republic of Maryland Republic of Hawaii Lordship of Brecknock Croatia in personal union with Hungary South African Republic People's Republic of the Congo Federation of Arab Republics Czechoslovak Socialist Republic Kingdom of Romania Kingdom of Poland Kingdom of Bulgaria Ag Qoyunlu Bavaria West Indies Federation Lydenburg Republic Kingdom of Bosnia Karabakh Khanate Islamic Courts Union Republic of Saugeais Kingdom of Egypt Pskov Republic Finnish Democratic Republic Gold Coast Rustamid dynasty Murrawarri Republic Free Republic of Wendland Kingdom of Italy Independent State of Croatia Kingdom of Funan Kugelmugel Grand Duchy of Flandrensis Socialist Federal Republic of Yugoslavia Chechen Republic of Ichkeria Democratic Federal Yugoslavia Kingdom of Rheged Principality of Kiev Slovak Soviet Republic Kuru Kingdom Kingdom of Bernicia Grand Duchy of Lithuania Commonwealth of England Lu Upingtonia Mongol Empire Kingdom of Seisyllwg Saar Protectorate United Kingdom of the Netherlands Cossack Hetmanate Lordship of Ireland United States of Stellaland Yemen Arab Republic Kingdom of Galicia Abyssinia Kingdom of Sarawak Kingdom of Saxony West Pakistan Kingdom of Nepal Almoravid dynasty Second French Empire Federation of Malaya Soviet Union Islands of Refreshment Grand Duchy of Würzburg Serbian Empire Kingdom of Castile Provisional Government of the Republic of Korea Muscat and Oman Habsburg Spain Dutch Republic Imperial Throne People's Socialist Republic of Albania Lithuanian–Belorussian Soviet Socialist Republic Kingdom of Lombardy–Venetia Islamic State of Afghanistan Couto Misto Thonburi Kingdom Papal States Libyan Arab Jamahiriya Mongolian People's Republic Kingdom of Morgannwg Kingdom of León Second Brazilian Republic Sultanate of Sulu Nazi Germany Kingdom of Bohemia United Arab Republic Commonwealth of the Philippines Chagatai Khanate Adal Sultanate Kingdom of Afghanistan Kingdom of Dyfed Kingdom of Prussia Klein Vrystaat Ukrainian State Somali Democratic Republic Arab Federation Duchy of Courland and Semigallia Manchukuo Republic of Siena Kingdom of Israel People's Democratic Republic of Ethiopia Estado Novo Ifat Sultanate Colonial Brazil Sultanate of Maguindanao Central African Empire Kingdom of Burundi South Yemen Duchy of Brittany Kingdom of Finland Septinsular Republic Enlightenment in Spain Lithuanian Soviet Socialist Republic Crown of Castile Kingdom of Nicoya Kaluga Soviet Republic Kingdom of Aragon Kingdom of Bavaria division of Korea Dominion of India Dacia People's Republic of Bulgaria Principality of Lower Pannonia Prussia Aerican Empire State of the Teutonic Order People's Republic of Hungary Italian Social Republic Hyderabad State Kruševo Republic Kingdom of France Parthian Empire Goshen (South Africa) Talossa Marinid dynasty Protectorate of South Arabia Orange River Colony Holy Roman Empire People's Republic of Poland Tanganyika Territory Hammadid dynasty Realm of Stefan Dragutin Zaire Principality of Wy Free Territory of Trieste Lithuanian Soviet Socialist Republic Khmer Republic Natalia Republic Argentine Confederation Republic of Molossia Brandenburg-Prussia Islamic Emirate of Afghanistan Republic of Rose Island Free State of Prussia Kingdom of Mysore United States of Colombia Weimar Republic Hafsid dynasty Republic of Upper Volta Democratic Republic of Azerbaijan Azerbaijan People's Government Russian Soviet Federative Socialist Republic Kingdom of Ceredigion Mahra Sultanate Kingdom of Iraq
Czechoslovakia Soviet Union Bavaria
action less
action union
action find_tuple_counts
relation basic form of government
type state
type administrative territorial entity
action find_tuple_counts
relation basic form of government
type state
type political system
action count
action filter_multi_types
action find
entity Dominion of Pakistan
relation basic form of government
type administrative territorial entity
type political system
[{'concept': 'state'}, 'basic form of government', [{'concept': 'administrative territorial entity'}, {'concept': 'political system'}]]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( COUNT ( ?w ) AS ?s ) ?v WHERE { { ?v property:basic_form_of_government ?w . ?v rdf:type ontology:state . ?w rdf:type ontology:administrative_territorial_entity } UNION { ?v property:basic_form_of_government ?w . ?w rdf:type ontology:political_system . ?v rdf:type ontology:state } } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { resource:Dominion_of_Pakistan property:basic_form_of_government ?n . { { ?n rdf:type ontology:administrative_territorial_entity } UNION { ?n rdf:type ontology:political_system } } } } . FILTER ( ?s < ?o ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q3545498 Q966732
P50
Q502895
USER
Which people wrote Life Is Elsewhere or Beauty is the Beast ?
OR((Q966732,P50,c(Q502895)), (Q3545498,P50,c(Q502895)))
action filter_type
action union
action find
entity Q966732
relation P50
action find
entity Q3545498
relation P50
type Q502895
{'OR': [['Q966732', 'P50', {'concept': 'Q502895'}], ['Q3545498', 'P50', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q3545498 property:P50 ?l } UNION { resource:Q966732 property:P50 ?l } } . ?l rdf:type ontology:Q502895 }
Beauty is the Beast Life Is Elsewhere
action filter_type
action union
action find
entity Life Is Elsewhere
relation author
action find
entity Beauty is the Beast
relation author
type common name
{'OR': [['Life Is Elsewhere', 'author', {'concept': 'common name'}], ['Beauty is the Beast', 'author', {'concept': 'common name'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Beauty_is_the_Beast property:author ?l } UNION { resource:Life_Is_Elsewhere property:author ?l } } . ?l rdf:type ontology:common_name }
[]
common name
Q93166 Q860271
SYSTEM
Milan Kundera, Tomo Matsumoto
Q93166 Q860271
OR((Q966732,P50,c(Q502895)), (Q3545498,P50,c(Q502895)))
action filter_type
action union
action find
entity Q966732
relation P50
action find
entity Q3545498
relation P50
type Q502895
[ANSWERS] wrote Life Is Elsewhere or Beauty is the Beast
{'OR': [['Q966732', 'P50', {'concept': 'Q502895'}], ['Q3545498', 'P50', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Q3545498 property:P50 ?l } UNION { resource:Q966732 property:P50 ?l } } . ?l rdf:type ontology:Q502895 }
Milan Kundera Tomo Matsumoto
Milan Kundera and Tomo Matsumoto wrote Life Is Elsewhere or Beauty is the Beast
Milan Kundera Tomo Matsumoto
action filter_type
action union
action find
entity Life Is Elsewhere
relation author
action find
entity Beauty is the Beast
relation author
type common name
{'OR': [['Life Is Elsewhere', 'author', {'concept': 'common name'}], ['Beauty is the Beast', 'author', {'concept': 'common name'}]]}
SELECT DISTINCT ?l WHERE { { { resource:Beauty_is_the_Beast property:author ?l } UNION { resource:Life_Is_Elsewhere property:author ?l } } . ?l rdf:type ontology:common_name }
[]