Simple Question (Direct)
Simple Question
Q3400442
P344
Q502895
USER
Who is the director of photography for His Last Twelve Hours ?
(Q3400442,P344,c(Q502895))
action filter_type
action find
entity Q3400442
relation P344
type Q502895
['Q3400442', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . resource:Q3400442 property:P344 ?e }
His Last Twelve Hours
action filter_type
action find
entity His Last Twelve Hours
relation director of photography
type common name
['His Last Twelve Hours', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . resource:His_Last_Twelve_Hours property:director_of_photography ?e }
[]
common name
Q729046
SYSTEM
Carlo Montuori
Q729046
(Q3400442,P344,c(Q502895))
action filter_type
action find
entity Q3400442
relation P344
type Q502895
The director of photography for His Last Twelve Hours is Gian [ANSWER]
['Q3400442', 'P344', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:Q502895 . resource:Q3400442 property:P344 ?e }
Carlo Montuori
The director of photography for His Last Twelve Hours is Gian Carlo Montuori
Carlo Montuori
action filter_type
action find
entity His Last Twelve Hours
relation director of photography
type common name
['His Last Twelve Hours', 'director of photography', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { ?e rdf:type ontology:common_name . resource:His_Last_Twelve_Hours property:director_of_photography ?e }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3400442
P364
Q34770
USER
Which language was used originally for the creation of His Last Twelve Hours ?
(Q3400442,P364,c(Q34770))
action filter_type
action find
entity Q3400442
relation P364
type Q34770
['Q3400442', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?d WHERE { resource:Q3400442 property:P364 ?d . ?d rdf:type ontology:Q34770 }
His Last Twelve Hours
action filter_type
action find
entity His Last Twelve Hours
relation original language of work
type language
['His Last Twelve Hours', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?d WHERE { resource:His_Last_Twelve_Hours property:original_language_of_work ?d . ?d rdf:type ontology:language }
[]
language
Q652
SYSTEM
Italian
Q652
(Q3400442,P364,c(Q34770))
action filter_type
action find
entity Q3400442
relation P364
type Q34770
In [ANSWER] was used originally for the creation of His Last Twelve Hours
['Q3400442', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?d WHERE { resource:Q3400442 property:P364 ?d . ?d rdf:type ontology:Q34770 }
Italian
In Italian was used originally for the creation of His Last Twelve Hours
Italian
action filter_type
action find
entity His Last Twelve Hours
relation original language of work
type language
['His Last Twelve Hours', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?d WHERE { resource:His_Last_Twelve_Hours property:original_language_of_work ?d . ?d rdf:type ontology:language }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q24813154
Q34770
USER
And also tell me about The environmental estrogen bisphenol a inhibits estradiol-induced hippocampal synaptogenesis?
(Q24813154,P364,c(Q34770))
action filter_type
action find
entity Q24813154
relation P364
type Q34770
['Q24813154', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { resource:Q24813154 property:P364 ?k . ?k rdf:type ontology:Q34770 }
The environmental estrogen bisphenol a inhibits estradiol-induced hippocampal synaptogenesis
action filter_type
action find
entity The environmental estrogen bisphenol a inhibits estradiol-induced hippocampal synaptogenesis
relation original language of work
type language
['The environmental estrogen bisphenol a inhibits estradiol-induced hippocampal synaptogenesis', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { resource:The_environmental_estrogen_bisphenol_a_inhibits_estradiol-induced_hippocampal_synaptogenesis property:original_language_of_work ?k . ?k rdf:type ontology:language }
[]
language
Q1860
SYSTEM
English
Q1860
(Q24813154,P364,c(Q34770))
action filter_type
action find
entity Q24813154
relation P364
type Q34770
Also tell me in [ANSWER] about The environmental estrogen bisphenol a inhibits estradiol-induced hippocampal synaptogenesis And
['Q24813154', 'P364', {'concept': 'Q34770'}]
SELECT DISTINCT ?k WHERE { resource:Q24813154 property:P364 ?k . ?k rdf:type ontology:Q34770 }
English
Also tell me in English about The environmental estrogen bisphenol a inhibits estradiol-induced hippocampal synaptogenesis And
English
action filter_type
action find
entity The environmental estrogen bisphenol a inhibits estradiol-induced hippocampal synaptogenesis
relation original language of work
type language
['The environmental estrogen bisphenol a inhibits estradiol-induced hippocampal synaptogenesis', 'original language of work', {'concept': 'language'}]
SELECT DISTINCT ?k WHERE { resource:The_environmental_estrogen_bisphenol_a_inhibits_estradiol-induced_hippocampal_synaptogenesis property:original_language_of_work ?k . ?k rdf:type ontology:language }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q319881
P37
Q34770 Q7275
USER
Which states designates around the same number of languages as their official language as Republic of Taiwan ?
(c(Q7275),P37,c(Q34770))
action approx
action find_tuple_counts
relation P37
type Q7275
type Q34770
action count
action filter_type
action find
entity Q319881
relation P37
type Q7275
[{'concept': 'Q7275'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?t ) WHERE { ?v property:P37 ?b . ?v rdf:type ontology:Q7275 . ?b rdf:type ontology:Q34770 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { resource:Q319881 property:P37 ?k . ?k rdf:type ontology:Q7275 } } . FILTER ( ?t = ?x ) }
Republic of Taiwan
action approx
action find_tuple_counts
relation official language
type state
type language
action count
action filter_type
action find
entity Republic of Taiwan
relation official language
type state
[{'concept': 'state'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?t ) WHERE { ?v property:official_language ?b . ?v rdf:type ontology:state . ?b rdf:type ontology:language } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { resource:Republic_of_Taiwan property:official_language ?k . ?k rdf:type ontology:state } } . FILTER ( ?t = ?x ) }
[]
language state
Q15180 Q330988 Q147909
SYSTEM
Soviet Union, Democratic Kampuchea, Kingdom of Bulgaria
Q2444884 Q2145397 Q8146595 Q552157 Q4461035 Q218023 Q1493843 Q271570 Q303421 Q36704 Q23541302 Q3456417 Q75613 Q1269234 Q10874967 Q15180 Q696908 Q550374 Q14934927 Q220167 Q330988 Q842091 Q877579 Q147909 Q76236 Q319881 Q1136259 Q112558 Q1142179 Q7382038 Q7318 Q729768 Q212056 Q940741 Q21203 Q12490507 Q600018 Q107299 Q1029847 Q1044668 Q139319 Q1483430 Q11876909 Q150981 Q1362278 Q623751 Q633573
(c(Q7275),P37,c(Q34770))
action approx
action find_tuple_counts
relation P37
type Q7275
type Q34770
action count
action filter_type
action find
entity Q319881
relation P37
type Q7275
[ANSWERS] designate around the same number of languages as their official language as Republic of Taiwan
[{'concept': 'Q7275'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?t ) WHERE { ?v property:P37 ?b . ?v rdf:type ontology:Q7275 . ?b rdf:type ontology:Q34770 } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { resource:Q319881 property:P37 ?k . ?k rdf:type ontology:Q7275 } } . FILTER ( ?t = ?x ) }
Tibet Goshen (South Africa) Upingtonia Nieuwe Republiek Akkadian empire Orange Free State Klein Vrystaat Kingdom of Araucanía and Patagonia Kingdom of Galicia Yugoslavia Kaluga Soviet Republic Republic of Saint-Malo Almoravid dynasty Stellaland People's Republic of Zhongtai Soviet Union Kingdom of Poland South African Republic Murrawarri Republic Lydenburg Republic Democratic Kampuchea Duchy of Normandy Kugelmugel Kingdom of Bulgaria Lithuanian–Belorussian Soviet Socialist Republic Republic of Taiwan Southwestern Somalia Republic of Saugeais Orange River Colony Imperial Throne Nazi Germany Zulu Kingdom Mongolian People's Republic Republic of Hungary Aruba Rashidun Caliphate Kingdom of Hungary Kingdom of Northumbria Natalia Republic Republic of Rose Island Russian Republic Principality of Kiev State of Brazil North German Confederation United States of Stellaland Kingdom of Bernicia Kingdom of Rheged
Soviet Union, Democratic Kampuchea and Kingdom of Bulgaria designate around the same number of languages as their official language as Republic of Taiwan
Soviet Union Democratic Kampuchea Kingdom of Bulgaria
action approx
action find_tuple_counts
relation official language
type state
type language
action count
action filter_type
action find
entity Republic of Taiwan
relation official language
type state
[{'concept': 'state'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ?v ( COUNT ( ?b ) AS ?t ) WHERE { ?v property:official_language ?b . ?v rdf:type ontology:state . ?b rdf:type ontology:language } GROUP BY ?v } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?x ) WHERE { resource:Republic_of_Taiwan property:official_language ?k . ?k rdf:type ontology:state } } . FILTER ( ?t = ?x ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q2444884
P37
Q34770 Q7275
USER
And what about Tibet?
(c(Q7275),P37,c(Q34770))
action approx
action find_tuple_counts
relation P37
type Q7275
type Q34770
action count
action filter_type
action find
entity Q2444884
relation P37
type Q7275
[{'concept': 'Q7275'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?p ) WHERE { ?g property:P37 ?s . ?g rdf:type ontology:Q7275 . ?s rdf:type ontology:Q34770 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { resource:Q2444884 property:P37 ?z . ?z rdf:type ontology:Q7275 } } . FILTER ( ?p = ?i ) }
Tibet
action approx
action find_tuple_counts
relation official language
type state
type language
action count
action filter_type
action find
entity Tibet
relation official language
type state
[{'concept': 'state'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?p ) WHERE { ?g property:official_language ?s . ?g rdf:type ontology:state . ?s rdf:type ontology:language } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { resource:Tibet property:official_language ?z . ?z rdf:type ontology:state } } . FILTER ( ?p = ?i ) }
[]
language state
Q15180 Q330988 Q147909
SYSTEM
Soviet Union, Democratic Kampuchea, Kingdom of Bulgaria
Q2444884 Q2145397 Q8146595 Q552157 Q4461035 Q218023 Q1493843 Q271570 Q303421 Q36704 Q23541302 Q3456417 Q75613 Q1269234 Q10874967 Q15180 Q696908 Q550374 Q14934927 Q220167 Q330988 Q842091 Q877579 Q147909 Q76236 Q319881 Q1136259 Q112558 Q1142179 Q7382038 Q7318 Q729768 Q212056 Q940741 Q21203 Q12490507 Q600018 Q107299 Q1029847 Q1044668 Q139319 Q1483430 Q11876909 Q150981 Q1362278 Q623751 Q633573
(c(Q7275),P37,c(Q34770))
action approx
action find_tuple_counts
relation P37
type Q7275
type Q34770
action count
action filter_type
action find
entity Q2444884
relation P37
type Q7275
[ANSWERS]
[{'concept': 'Q7275'}, 'P37', {'concept': 'Q34770'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?p ) WHERE { ?g property:P37 ?s . ?g rdf:type ontology:Q7275 . ?s rdf:type ontology:Q34770 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { resource:Q2444884 property:P37 ?z . ?z rdf:type ontology:Q7275 } } . FILTER ( ?p = ?i ) }
Tibet Goshen (South Africa) Upingtonia Nieuwe Republiek Akkadian empire Orange Free State Klein Vrystaat Kingdom of Araucanía and Patagonia Kingdom of Galicia Yugoslavia Kaluga Soviet Republic Republic of Saint-Malo Almoravid dynasty Stellaland People's Republic of Zhongtai Soviet Union Kingdom of Poland South African Republic Murrawarri Republic Lydenburg Republic Democratic Kampuchea Duchy of Normandy Kugelmugel Kingdom of Bulgaria Lithuanian–Belorussian Soviet Socialist Republic Republic of Taiwan Southwestern Somalia Republic of Saugeais Orange River Colony Imperial Throne Nazi Germany Zulu Kingdom Mongolian People's Republic Republic of Hungary Aruba Rashidun Caliphate Kingdom of Hungary Kingdom of Northumbria Natalia Republic Republic of Rose Island Russian Republic Principality of Kiev State of Brazil North German Confederation United States of Stellaland Kingdom of Bernicia Kingdom of Rheged
Soviet Union Democratic Kampuchea Kingdom of Bulgaria
action approx
action find_tuple_counts
relation official language
type state
type language
action count
action filter_type
action find
entity Tibet
relation official language
type state
[{'concept': 'state'}, 'official language', {'concept': 'language'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?s ) AS ?p ) WHERE { ?g property:official_language ?s . ?g rdf:type ontology:state . ?s rdf:type ontology:language } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?z ) AS ?i ) WHERE { resource:Tibet property:official_language ?z . ?z rdf:type ontology:state } } . FILTER ( ?p = ?i ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q230407
P122
Q1307214 Q151885 Q7275
USER
Which states have lesser number of forms of government or concepts as government than Kingdom of Israel ?
(c(Q7275),P122,c(Q1307214)|c(Q151885))
action less
action union
action find_tuple_counts
relation P122
type Q7275
type Q1307214
action find_tuple_counts
relation P122
type Q7275
type Q151885
action count
action filter_multi_types
action find
entity Q230407
relation P122
type Q1307214
type Q151885
[{'concept': 'Q7275'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { resource:Q230407 property:P122 ?z . { { ?z rdf:type ontology:Q1307214 } UNION { ?z rdf:type ontology:Q151885 } } } } . FILTER ( ?h < ?b ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) ?k WHERE { { ?k property:P122 ?q . ?k rdf:type ontology:Q7275 . ?q rdf:type ontology:Q1307214 } UNION { ?k property:P122 ?q . ?q rdf:type ontology:Q151885 . ?k rdf:type ontology:Q7275 } } GROUP BY ?k } }
Kingdom of Israel
action less
action union
action find_tuple_counts
relation basic form of government
type state
type form of government
action find_tuple_counts
relation basic form of government
type state
type concept
action count
action filter_multi_types
action find
entity Kingdom of Israel
relation basic form of government
type form of government
type concept
[{'concept': 'state'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'concept'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { resource:Kingdom_of_Israel property:basic_form_of_government ?z . { { ?z rdf:type ontology:form_of_government } UNION { ?z rdf:type ontology:concept } } } } . FILTER ( ?h < ?b ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) ?k WHERE { { ?k property:basic_form_of_government ?q . ?k rdf:type ontology:state . ?q rdf:type ontology:form_of_government } UNION { ?k property:basic_form_of_government ?q . ?q rdf:type ontology:concept . ?k rdf:type ontology:state } } GROUP BY ?k } }
[]
form of government concept state
Q33946 Q15180 Q980
SYSTEM
Czechoslovakia, Soviet Union, Bavaria
Q241748 Q211853 Q484104 Q180573 Q105092 Q210163 Q2340665 Q172107 Q1538311 Q476757 Q152115 Q285658 Q18285930 Q2414171 Q2475921 Q218023 Q889374 Q798431 Q3456417 Q154401 Q174193 Q965174 Q282475 Q1269234 Q889394 Q552157 Q229411 Q201038 Q761370 Q431731 Q175881 Q330988 Q1194329 Q533558 Q1423680 Q617218 Q1247508 Q744042 Q209065 Q190513 Q10988528 Q631210 Q1811029 Q2308237 Q19801186 Q204920 Q207162 Q834486 Q2006542 Q545205 Q131964 Q726798 Q133356 Q215530 Q150058 Q62589 Q161885 Q33946 Q150056 Q83572 Q139319 Q191077 Q234009 Q271570 Q903779 Q841364 Q16957 Q1649871 Q941881 Q1194765 Q514423 Q62623 Q870055 Q713750 Q544630 Q1057542 Q16949002 Q550374 Q1152126 Q44642 Q853348 Q203493 Q696908 Q147909 Q980 Q652560 Q220167 Q2980623 Q1636212 Q737040 Q112558 Q124943 Q37024 Q317078 Q62519 Q503623 Q14934927 Q137766 Q172579 Q153128 Q867782 Q877579 Q551798 Q83286 Q210036 Q186537 Q200896 Q330362 Q8146595 Q12557 Q310293 Q15864 Q212439 Q844250 Q1362278 Q267584 Q207521 Q1658411 Q153015 Q2342822 Q1078602 Q71092 Q1479726 Q15180 Q698089 Q1406298 Q179293 Q28278 Q157734 Q600093 Q170072 Q7382038 Q467864 Q76236 Q209857 Q1115291 Q170174 Q4843701 Q212056 Q175276 Q210542 Q7318 Q170468 Q146328 Q487829 Q1138904 Q27306 Q1493843 Q1508143 Q1477220 Q146713 Q30623 Q736727 Q940821 Q824489 Q2088324 Q248572 Q189988 Q199841 Q71747 Q615902 Q173761 Q217196 Q23541302 Q199442 Q154195 Q10921634 Q13706 Q498735 Q1775277 Q121932 Q680997 Q4948 Q1152445 Q156020 Q16410 Q153660 Q1240096 Q1771831 Q70972 Q1986139 Q2145397 Q2353425 Q1517772 Q1142179 Q12548 Q211274 Q158725 Q6500954 Q1083009 Q391980 Q80211 Q1054184 Q1029847 Q832554 Q1155768 Q157367 Q427941 Q1044668 Q161036 Q1061488 Q5148517 Q41304 Q797422 Q206411 Q2305337 Q2184 Q149805
(c(Q7275),P122,c(Q1307214)|c(Q151885))
action less
action union
action find_tuple_counts
relation P122
type Q7275
type Q1307214
action find_tuple_counts
relation P122
type Q7275
type Q151885
action count
action filter_multi_types
action find
entity Q230407
relation P122
type Q1307214
type Q151885
[ANSWERS] have lesser number of forms of government or concepts as government than Kingdom of Israel
[{'concept': 'Q7275'}, 'P122', [{'concept': 'Q1307214'}, {'concept': 'Q151885'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { resource:Q230407 property:P122 ?z . { { ?z rdf:type ontology:Q1307214 } UNION { ?z rdf:type ontology:Q151885 } } } } . FILTER ( ?h < ?b ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) ?k WHERE { { ?k property:P122 ?q . ?k rdf:type ontology:Q7275 . ?q rdf:type ontology:Q1307214 } UNION { ?k property:P122 ?q . ?q rdf:type ontology:Q151885 . ?k rdf:type ontology:Q7275 } } GROUP BY ?k } }
Kingdom of Serbia Republic of Serbian Krajina United States Army Military Government in Korea South Vietnam Kingdom of Mercia Astrakhan Khanate Basutoland Polish–Lithuanian Commonwealth Travancore-Cochin Democratic Republic of Afghanistan Duchy of Warsaw First Mexican Empire German Empire of 1848/1849 First Brazilian Republic Outer Mongolia 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 Nieuwe Republiek Delhi Sultanate Roman Kingdom Aro Confederacy Tanganyika Roman Republic Democratic Kampuchea Nova Roma Kingdom of Croatia-Slavonia Gay and Lesbian Kingdom of the Coral Sea Islands Yamhad Domain of Soissons Grand Duchy of Avram Kingdom of Greece Khanate of Sibir Second East Turkestan Republic Nogai Horde Finnish Socialist Workers' Republic Ahom kingdom Liberland Crown of Aragon Bourbon Restoration Federation of South Arabia Dominion of Pakistan 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 Czechoslovakia Kingdom of Cochin Sikh Empire Russian Republic Kingdom of Yugoslavia Magadha Kingdom of Araucanía and Patagonia United Kingdom of Portugal, Brazil and the Algarves Ayutthaya Kingdom East Germany 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 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 Bavaria West Indies Federation Lydenburg Republic Kingdom of Bosnia Karabakh Khanate Islamic Courts Union Republic of Saugeais Kingdom of Egypt Serbia and Montenegro Pskov Republic Finnish Democratic Republic Gold Coast 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 Khanate of Kazan Slovak Soviet Republic Commonwealth of England Upingtonia Mongol Empire Saar Protectorate United Kingdom of the Netherlands Cossack Hetmanate Lordship of Ireland United States of Stellaland Yemen Arab Republic Abyssinia Kingdom of Sarawak Kingdom of Saxony West Pakistan Kingdom of Nepal Second French Empire Federation of Malaya Soviet Union 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 Thonburi Kingdom Papal States Libyan Arab Jamahiriya Mongolian People's Republic Kingdom of León Second Brazilian Republic Nazi Germany United Arab Republic Commonwealth of the Philippines Chagatai Khanate Kingdom of Afghanistan Kingdom of Prussia Klein Vrystaat Ukrainian State Somali Democratic Republic Arab Federation Manchukuo Republic of Siena People's Democratic Republic of Ethiopia Estado Novo Colonial Brazil Sultanate of Maguindanao Central African Empire South Yemen Duchy of Brittany Kingdom of Finland Lithuanian Soviet Socialist Republic Crown of Castile Kaluga Soviet Republic Kingdom of Aragon Kingdom of Bavaria Khoshut Khanate Principality of Sealand division of Korea Dominion of India People's Republic of Bulgaria Principality of Lower Pannonia Republic of Venice 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 Protectorate of South Arabia Orange River Colony Holy Roman Empire People's Republic of Poland Tanganyika Territory 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 United States of Colombia Colony and Protectorate of Nigeria Weimar Republic Republic of Upper Volta Democratic Republic of Azerbaijan Azerbaijan People's Government Russian Soviet Federative Socialist Republic Kingdom of Iraq
Czechoslovakia, Soviet Union and Bavaria have lesser number of forms of government or concepts as government than Kingdom of Israel
Czechoslovakia Soviet Union Bavaria
action less
action union
action find_tuple_counts
relation basic form of government
type state
type form of government
action find_tuple_counts
relation basic form of government
type state
type concept
action count
action filter_multi_types
action find
entity Kingdom of Israel
relation basic form of government
type form of government
type concept
[{'concept': 'state'}, 'basic form of government', [{'concept': 'form of government'}, {'concept': 'concept'}]]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( COUNT ( ?z ) AS ?b ) WHERE { resource:Kingdom_of_Israel property:basic_form_of_government ?z . { { ?z rdf:type ontology:form_of_government } UNION { ?z rdf:type ontology:concept } } } } . FILTER ( ?h < ?b ) . { SELECT DISTINCT ( COUNT ( ?q ) AS ?h ) ?k WHERE { { ?k property:basic_form_of_government ?q . ?k rdf:type ontology:state . ?q rdf:type ontology:form_of_government } UNION { ?k property:basic_form_of_government ?q . ?q rdf:type ontology:concept . ?k rdf:type ontology:state } } GROUP BY ?k } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q33946 Q15180 Q980
P6
Q502895
USER
What people are those states the head of goverment of ?
(Q33946,P6,c(Q502895)) (Q15180,P6,c(Q502895)) (Q980,P6,c(Q502895))
action filter_type
action find
entity prev_answer
relation P6
type Q502895
['Q33946', 'P6', {'concept': 'Q502895'}] ['Q15180', 'P6', {'concept': 'Q502895'}] ['Q980', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { ?p property:P6 ?c . VALUES ( ?p ) { ( resource:Q241748 ) ( resource:Q211853 ) ( resource:Q484104 ) } . ?c rdf:type ontology:Q502895 }
Czechoslovakia Soviet Union Bavaria
action filter_type
action find
entity prev_answer
relation head of government
type common name
['Czechoslovakia', 'head of government', {'concept': 'common name'}] ['Soviet Union', 'head of government', {'concept': 'common name'}] ['Bavaria', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { ?p property:head_of_government ?c . VALUES ( ?p ) { ( resource:Kingdom_of_Serbia ) ( resource:Republic_of_Serbian_Krajina ) ( resource:United_States_Army_Military_Government_in_Korea ) } . ?c rdf:type ontology:common_name }
[]
common name
Q855 Q35314 Q152274
SYSTEM
Joseph Stalin, Nikita Khrushchev, Edvard Beneš
Q349893 Q974542 Q717754 Q296054 Q164312 Q555701 Q1399968 Q2666912 Q683269 Q465455 Q168975 Q694849 Q371854 Q1682037 Q152274 Q725653 Q1682464 Q983583 Q709968 Q159227 Q2756999 Q48093 Q1394 Q202770 Q35314 Q132899 Q855 Q366524 Q294339 Q315518 Q180588 Q714552 Q435367 Q63569 Q481434 Q72562 Q44507 Q213963 Q44620 Q44771 Q67597 Q44612
(Q33946,P6,c(Q502895)) (Q15180,P6,c(Q502895)) (Q980,P6,c(Q502895))
action filter_type
action find
entity prev_answer
relation P6
type Q502895
Those states the head of goverment of are [ANSWERS]
['Q33946', 'P6', {'concept': 'Q502895'}] ['Q15180', 'P6', {'concept': 'Q502895'}] ['Q980', 'P6', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { ?p property:P6 ?c . VALUES ( ?p ) { ( resource:Q241748 ) ( resource:Q211853 ) ( resource:Q484104 ) } . ?c rdf:type ontology:Q502895 }
Milan Hodža Jan Syrový Rudolf Beran Klement Gottwald Antonín Švehla Oldřich Černík Viliam Široký Vlastimil Tusar Lubomír Štrougal Jozef Lenárt Zdeněk Fierlinger Jan Šrámek Antonín Zápotocký Jan Malypetr Edvard Beneš Ladislav Adamec Jan Černý Jan Stráský Marián Čalfa Karel Kramář František Udržal Nikolai Bulganin Vladimir Lenin Alexei Kosygin Nikita Khrushchev Vyacheslav Molotov Joseph Stalin Nikolai Ryzhkov Alexey Rykov Nikolai Tikhonov Georgy Malenkov Ivan Silayev Valentin Pavlov Max Streibl Alfons Goppel Hanns Seidel Edmund Stoiber Wilhelm Hoegner Franz Josef Strauß Günther Beckstein Hans Ehard Horst Seehofer
Those states the head of goverment of are Joseph Stalin, Nikita Khrushchev and Edvard Beneš
Joseph Stalin Nikita Khrushchev Edvard Beneš
action filter_type
action find
entity prev_answer
relation head of government
type common name
['Czechoslovakia', 'head of government', {'concept': 'common name'}] ['Soviet Union', 'head of government', {'concept': 'common name'}] ['Bavaria', 'head of government', {'concept': 'common name'}]
SELECT DISTINCT ?c WHERE { ?p property:head_of_government ?c . VALUES ( ?p ) { ( resource:Kingdom_of_Serbia ) ( resource:Republic_of_Serbian_Krajina ) ( resource:United_States_Army_Military_Government_in_Korea ) } . ?c rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q152274
P7
Q502895
USER
Which person is the brother of that one ?
(Q152274,P7,c(Q502895))
action filter_type
action find
entity Q152274
relation P7
type Q502895
['Q152274', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q152274 property:P7 ?m . ?m rdf:type ontology:Q502895 }
Edvard Beneš
action filter_type
action find
entity Edvard Beneš
relation brother
type common name
['Edvard Beneš', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Edvard_Beneš property:brother ?m . ?m rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q35314
SYSTEM
Did you mean Nikita Khrushchev ?
Q855 Q35314 Q152274
(Q855,P7,c(Q502895)) (Q35314,P7,c(Q502895)) (Q152274,P7,c(Q502895))
[ANSWER]
['Q855', 'P7', {'concept': 'Q502895'}] ['Q35314', 'P7', {'concept': 'Q502895'}] ['Q152274', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q152274 property:P7 ?m . ?m rdf:type ontology:Q502895 }
Joseph Stalin Nikita Khrushchev Edvard Beneš
Did you mean Nikita Khrushchev ?
Nikita Khrushchev
['Joseph Stalin', 'brother', {'concept': 'common name'}] ['Nikita Khrushchev', 'brother', {'concept': 'common name'}] ['Edvard Beneš', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Edvard_Beneš property:brother ?m . ?m rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Edvard Beneš. Could you tell me the answer for that?
(Q152274,P7,c(Q502895))
Q152274
['Q152274', 'P7', {'concept': 'Q502895'}]
['Edvard Beneš', 'brother', {'concept': 'common name'}]
[]
Q7939860
SYSTEM
Vojta Beneš
Q7939860
(Q152274,P7,c(Q502895))
action filter_type
action find
entity Q152274
relation P7
type Q502895
[ANSWER] is the brother of that one
['Q152274', 'P7', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q152274 property:P7 ?m . ?m rdf:type ontology:Q502895 }
Vojta Beneš
Vojta Beneš is the brother of that one
Vojta Beneš
action filter_type
action find
entity Edvard Beneš
relation brother
type common name
['Edvard Beneš', 'brother', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:Edvard_Beneš property:brother ?m . ?m rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q15831073 Q147909
P47 P27
Q15617994
USER
Which administrative territories have a shared border with Kingdom of Bulgaria or do Leonardo Matos de Oliveira belong to ?
OR((Q147909,P47,c(Q15617994)), (Q15831073,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q147909
relation P47
action find
entity Q15831073
relation P27
type Q15617994
{'OR': [['Q147909', 'P47', {'concept': 'Q15617994'}], ['Q15831073', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q15617994 . { { resource:Q147909 property:P47 ?j } UNION { resource:Q15831073 property:P27 ?j } } }
Leonardo Matos de Oliveira Kingdom of Bulgaria
action filter_type
action union
action find
entity Kingdom of Bulgaria
relation shares border with
action find
entity Leonardo Matos de Oliveira
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Kingdom of Bulgaria', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Leonardo Matos de Oliveira', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Kingdom_of_Bulgaria property:shares_border_with ?j } UNION { resource:Leonardo_Matos_de_Oliveira property:country_of_citizenship ?j } } }
[]
designation for an administrative territorial entity
Q155 Q43
SYSTEM
Brazil, Turkey
Q155 Q43
OR((Q147909,P47,c(Q15617994)), (Q15831073,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q147909
relation P47
action find
entity Q15831073
relation P27
type Q15617994
[ANSWERS] have a shared border with Kingdom of Bulgaria or do Leonardo Matos de Oliveira belong to
{'OR': [['Q147909', 'P47', {'concept': 'Q15617994'}], ['Q15831073', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q15617994 . { { resource:Q147909 property:P47 ?j } UNION { resource:Q15831073 property:P27 ?j } } }
Brazil Turkey
Brazil and Turkey have a shared border with Kingdom of Bulgaria or do Leonardo Matos de Oliveira belong to
Brazil Turkey
action filter_type
action union
action find
entity Kingdom of Bulgaria
relation shares border with
action find
entity Leonardo Matos de Oliveira
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Kingdom of Bulgaria', 'shares border with', {'concept': 'designation for an administrative territorial entity'}], ['Leonardo Matos de Oliveira', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:designation_for_an_administrative_territorial_entity . { { resource:Kingdom_of_Bulgaria property:shares_border_with ?j } UNION { resource:Leonardo_Matos_de_Oliveira property:country_of_citizenship ?j } } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q15617994 Q1048835
USER
Which political territories have diplomatic relations with atleast 64 administrative territories ?
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 64
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?d ) WHERE { ?p property:P530 ?m . ?m rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q1048835 } GROUP BY ?p } . FILTER ( ?d >= 64 ) }
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 64
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?d ) WHERE { ?p property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:political_territorial_entity } GROUP BY ?p } . FILTER ( ?d >= 64 ) }
[]
designation for an administrative territorial entity political territorial entity
Q183 Q408
SYSTEM
Germany, Australia
Q183 Q408
(c(Q1048835),P530,c(Q15617994))
action atleast
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 64
[ANSWERS] have diplomatic relations with atleast 64 administrative territories
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?d ) WHERE { ?p property:P530 ?m . ?m rdf:type ontology:Q15617994 . ?p rdf:type ontology:Q1048835 } GROUP BY ?p } . FILTER ( ?d >= 64 ) }
Germany Australia
Germany and Australia have diplomatic relations with atleast 64 administrative territories
Germany Australia
action atleast
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 64
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?m ) AS ?d ) WHERE { ?p property:diplomatic_relation ?m . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity . ?p rdf:type ontology:political_territorial_entity } GROUP BY ?p } . FILTER ( ?d >= 64 ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q889
P530
Q15617994 Q1048835
USER
Which administrative territories have diplomatic relations with more number of political territories than Afghanistan ?
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find_reverse
entity Q889
relation P530
type Q1048835
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?r ) AS ?i ) WHERE { ?z property:P530 ?r . ?z rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { ?o property:P530 resource:Q889 . ?o rdf:type ontology:Q1048835 } } . FILTER ( ?i > ?k ) }
Afghanistan
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find_reverse
entity Afghanistan
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?r ) AS ?i ) WHERE { ?z property:diplomatic_relation ?r . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { ?o property:diplomatic_relation resource:Afghanistan . ?o rdf:type ontology:political_territorial_entity } } . FILTER ( ?i > ?k ) }
[]
designation for an administrative territorial entity political territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q801 Q142 Q145 Q711 Q252 Q403 Q258 Q159 Q43 Q155 Q884 Q33 Q30 Q36 Q34 Q39 Q38 Q739 Q423 Q851 Q20 Q843 Q1029 Q229 Q1030 Q115 Q114 Q212 Q218 Q833 Q79 Q77 Q878 Q953
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find_reverse
entity Q889
relation P530
type Q1048835
[ANSWERS] have diplomatic relations with more number of political territories than Afghanistan
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?r ) AS ?i ) WHERE { ?z property:P530 ?r . ?z rdf:type ontology:Q15617994 . ?r rdf:type ontology:Q1048835 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { ?o property:P530 resource:Q889 . ?o rdf:type ontology:Q1048835 } } . FILTER ( ?i > ?k ) }
Israel France United Kingdom Mongolia Indonesia Serbia South Africa Russia Turkey Brazil South Korea Finland United States of America Poland Sweden Switzerland Italy Colombia North Korea Saudi Arabia Norway Pakistan Mozambique Cyprus Namibia Ethiopia Kenya Ukraine Romania Malaysia Egypt Uruguay United Arab Emirates Zambia
Italy, Brazil and United States of America have diplomatic relations with more number of political territories than Afghanistan
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find_reverse
entity Afghanistan
relation diplomatic relation
type political territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?r ) AS ?i ) WHERE { ?z property:diplomatic_relation ?r . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity . ?r rdf:type ontology:political_territorial_entity } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?k ) WHERE { ?o property:diplomatic_relation resource:Afghanistan . ?o rdf:type ontology:political_territorial_entity } } . FILTER ( ?i > ?k ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q232
P530
Q15617994 Q1048835
USER
And what about Kazakhstan?
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q232
relation P530
type Q15617994
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?d ) AS ?x ) WHERE { ?z property:P530 ?d . ?d rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { ?v rdf:type ontology:Q15617994 . resource:Q232 property:P530 ?v } } . FILTER ( ?x > ?p ) }
Kazakhstan
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Kazakhstan
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?d ) AS ?x ) WHERE { ?z property:diplomatic_relation ?d . ?d rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Kazakhstan property:diplomatic_relation ?v } } . FILTER ( ?x > ?p ) }
[]
designation for an administrative territorial entity political territorial entity
Q38 Q155 Q30
SYSTEM
Italy, Brazil, United States of America
Q804 Q801 Q800 Q419 Q668 Q414 Q142 Q55 Q145 Q148 Q783 Q711 Q252 Q403 Q258 Q45 Q159 Q43 Q41 Q155 Q796 Q794 Q954 Q889 Q884 Q881 Q811 Q33 Q31 Q30 Q924 Q36 Q34 Q928 Q39 Q38 Q739 Q423 Q851 Q733 Q734 Q233 Q20 Q1041 Q27 Q843 Q1029 Q1028 Q736 Q786 Q225 Q224 Q96 Q229 Q347 Q17 Q902 Q1036 Q1033 Q1030 Q963 Q298 Q115 Q114 Q117 Q750 Q212 Q213 Q215 Q218 Q219 Q916 Q833 Q1009 Q79 Q77 Q878 Q774 Q810 Q29 Q869 Q953
(c(Q1048835),P530,c(Q15617994))
action greater
action find_tuple_counts
relation P530
type Q15617994
type Q1048835
action count
action filter_type
action find
entity Q232
relation P530
type Q15617994
[ANSWERS]
[{'concept': 'Q1048835'}, 'P530', {'concept': 'Q15617994'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?d ) AS ?x ) WHERE { ?z property:P530 ?d . ?d rdf:type ontology:Q1048835 . ?z rdf:type ontology:Q15617994 } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { ?v rdf:type ontology:Q15617994 . resource:Q232 property:P530 ?v } } . FILTER ( ?x > ?p ) }
Panama Israel Costa Rica Peru India Argentina France Netherlands United Kingdom People's Republic of China Honduras Mongolia Indonesia Serbia South Africa Portugal Russia Turkey Greece Brazil Iraq Iran Zimbabwe Afghanistan South Korea Vietnam Nicaragua Finland Belgium United States of America Tanzania Poland Sweden Philippines Switzerland Italy Colombia North Korea Saudi Arabia Paraguay Guyana Malta Norway Senegal Ireland Pakistan Mozambique Morocco Ecuador Dominican Republic Bosnia and Herzegovina Croatia Mexico Cyprus Liechtenstein Japan Bangladesh Uganda Nigeria Namibia Botswana Chile Ethiopia Kenya Ghana Bolivia Ukraine Czech Republic Slovenia Romania Bulgaria Angola Malaysia Cameroon Egypt Uruguay United Arab Emirates Guatemala Jordan Spain Thailand Zambia
Italy Brazil United States of America
action greater
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type political territorial entity
action count
action filter_type
action find
entity Kazakhstan
relation diplomatic relation
type designation for an administrative territorial entity
[{'concept': 'political territorial entity'}, 'diplomatic relation', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?z WHERE { { SELECT DISTINCT ?z ( COUNT ( ?d ) AS ?x ) WHERE { ?z property:diplomatic_relation ?d . ?d rdf:type ontology:political_territorial_entity . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?z } . { SELECT DISTINCT ( COUNT ( ?v ) AS ?p ) WHERE { ?v rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Kazakhstan property:diplomatic_relation ?v } } . FILTER ( ?x > ?p ) }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P495
Q15617994 Q15416 Q2342494
USER
How many administrative territories are the origins of more number of television programs or collectables than that administrative territory ?
(c(Q15416)|c(Q2342494),P495,c(Q15617994))
[[{'concept': 'Q15416'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2342494 }
[[{'concept': 'television program'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:collectable }
[]
designation for an administrative territorial entity television program collectable
Comparative|Count over More/Less|Mult. entity type|Clarification
Q155
SYSTEM
Did you mean Brazil ?
(c(Q15416)|c(Q2342494),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2342494 }
Did you mean Brazil ?
Brazil
[[{'concept': 'television program'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:collectable }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant Italy. Could you tell me the answer for that?
(c(Q15416)|c(Q2342494),P495,c(Q15617994))
Q38
[[{'concept': 'Q15416'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
[[{'concept': 'television program'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
6
Q668 Q142 Q145 Q884 Q30 Q96
(c(Q15416)|c(Q2342494),P495,c(Q15617994))
[ANSWER]
[[{'concept': 'Q15416'}, {'concept': 'Q2342494'}], 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:P495 ?y } UNION { ?x property:P495 ?y } } . ?z rdf:type ontology:Q15416 . ?y rdf:type ontology:Q15617994 . ?x rdf:type ontology:Q2342494 }
India France United Kingdom South Korea United States of America Mexico
6
[[{'concept': 'television program'}, {'concept': 'collectable'}], 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:country_of_origin ?y } UNION { ?x property:country_of_origin ?y } } . ?z rdf:type ontology:television_program . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity . ?x rdf:type ontology:collectable }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q183 Q1295
P610
Q14524493
USER
How many terrains are the highest peak of Germany or Dortmund ?
(Q183,P610,c(Q14524493)) (Q1295,P610,c(Q14524493))
action count
action union
action filter_type
action find
entity Q183
relation P610
type Q14524493
action filter_type
action find
entity Q1295
relation P610
type Q14524493
['Q183', 'P610', {'concept': 'Q14524493'}] ['Q1295', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { ?y property:P610 ?i . VALUES ( ?y ) { ( resource:Q183 ) ( resource:Q1295 ) } }
Germany Dortmund
action count
action union
action filter_type
action find
entity Germany
relation highest point
type terrain
action filter_type
action find
entity Dortmund
relation highest point
type terrain
['Germany', 'highest point', {'concept': 'terrain'}] ['Dortmund', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { ?y property:highest_point ?i . VALUES ( ?y ) { ( resource:Germany ) ( resource:Dortmund ) } }
[]
terrain
SYSTEM
2
Q3375 Q1776635
(Q183,P610,c(Q14524493)) (Q1295,P610,c(Q14524493))
action count
action union
action filter_type
action find
entity Q183
relation P610
type Q14524493
action filter_type
action find
entity Q1295
relation P610
type Q14524493
[ANSWER]
['Q183', 'P610', {'concept': 'Q14524493'}] ['Q1295', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { ?y property:P610 ?i . VALUES ( ?y ) { ( resource:Q183 ) ( resource:Q1295 ) } }
Zugspitze Klusenberg
2
action count
action union
action filter_type
action find
entity Germany
relation highest point
type terrain
action filter_type
action find
entity Dortmund
relation highest point
type terrain
['Germany', 'highest point', {'concept': 'terrain'}] ['Dortmund', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ( COUNT ( ?i ) AS ?f ) WHERE { ?y property:highest_point ?i . VALUES ( ?y ) { ( resource:Germany ) ( resource:Dortmund ) } }
[]