Simple Question (Direct)
Simple Question
Q7920141
P495
Q15617994
USER
What is the origin of Vennela ?
(Q7920141,P495,c(Q15617994))
action filter_type
action find
entity Q7920141
relation P495
type Q15617994
['Q7920141', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q7920141 property:P495 ?y . ?y rdf:type ontology:Q15617994 }
Vennela
action filter_type
action find
entity Vennela
relation country of origin
type designation for an administrative territorial entity
['Vennela', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Vennela property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q668
SYSTEM
India
Q668
(Q7920141,P495,c(Q15617994))
action filter_type
action find
entity Q7920141
relation P495
type Q15617994
The origin of Vennela is in [ANSWER]
['Q7920141', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q7920141 property:P495 ?y . ?y rdf:type ontology:Q15617994 }
India
The origin of Vennela is in India
India
action filter_type
action find
entity Vennela
relation country of origin
type designation for an administrative territorial entity
['Vennela', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Vennela property:country_of_origin ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q668
P20
Q502895
USER
Which people have that administrative territory as the area of death ?
(c(Q502895),P20,Q668)
action filter_type
action find_reverse
entity Q668
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q668']
SELECT DISTINCT ?q WHERE { ?q property:P20 resource:Q668 . ?q rdf:type ontology:Q502895 }
India
action filter_type
action find_reverse
entity India
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'India']
SELECT DISTINCT ?q WHERE { ?q property:place_of_death resource:India . ?q rdf:type ontology:common_name }
[]
common name
Q3595831 Q2845323 Q146444
SYSTEM
A. K. Gopalan, Ananda Shankar, Nutan
Q15995768 Q146444 Q1557587 Q110367 Q4315933 Q7262552 Q21014328 Q445460 Q7633775 Q5387505 Q1190757 Q1392116 Q7509004 Q10949187 Q4802130 Q3595831 Q1658782 Q7429162 Q27613795 Q7288453 Q942615 Q4116912 Q5614630 Q7931404 Q3417981 Q6112707 Q8049770 Q5314306 Q7325695 Q3506857 Q6352394 Q12309539 Q20685454 Q5431036 Q6991169 Q537545 Q4900596 Q445436 Q5651229 Q1331151 Q27595495 Q2598029 Q8865032 Q4985246 Q4746754 Q3552286 Q558424 Q2845323 Q5006567 Q438664 Q3595296 Q730029 Q28988 Q18325480 Q7508141 Q525003 Q18125590 Q1435558 Q470986 Q1289992 Q7964585 Q12975497 Q1995540 Q1386345 Q6733433 Q370204 Q5988734 Q6247024 Q94742 Q936594 Q7011
(c(Q502895),P20,Q668)
action filter_type
action find_reverse
entity Q668
relation P20
type Q502895
[ANSWERS] have that administrative territory as the area of death
[{'concept': 'Q502895'}, 'P20', 'Q668']
SELECT DISTINCT ?q WHERE { ?q property:P20 resource:Q668 . ?q rdf:type ontology:Q502895 }
Gerald Merlin Nutan Guy Tachard Heinrich Döring Darwan Singh Negi Puvvula Suri Babu Mohan Bhandari Shantideva Sudharma Swami Eric Simeon Daṇḍin Pingali Venkayya Sidney Cottle Mokkapati Narasimha Sastry Arun Paudwal A. K. Gopalan Petra Mönnigmann Sayed Hussein Anwari Shivasagar Ram Chandra Vikal Joseph Parecattil Shihabuddin Nadvi Gudipati Venkatachalam Vinayak Rao Koratkar Rajendra Nath Jack Gibson Yashwant Sonawane Duncan Charles Home Richard Fitzgerald Syed Abdul Rahim Kali Banerjee Eik Skaløe Krishna Gopal Saxena Faisal Ahmad Shinwari Nemichandra Francesca Arundale Bhagat Munshi Ram Evelyn Colyer Hanson Victor Turner Śūdraka Virasagar Fred Ruiz Castro Józef Skolimowski Celina Kombani Amirbai Karnataki Urgyen Tsomo Ann Höling Ananda Shankar C. J. Miller Miltiadis Gouskos Omkarnath Thakur John de Brito Ananda George Havell Siddhasena Dora Akunyili Himmatsinhji Fritz Noetling Thibaw Min Chavundaraya Walter Colquhoun Grant N. S. Krishnan Al Adamson Theodore Edward Cantor Maharshi Mehi Paramhans Guru Angad Dev Idichapuli Selvaraj John Martyn Haidakhan Babaji Mas'ud I of Ghazni Kālidāsa
A. K. Gopalan, Ananda Shankar and Nutan have that administrative territory as the area of death
A. K. Gopalan Ananda Shankar Nutan
action filter_type
action find_reverse
entity India
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'India']
SELECT DISTINCT ?q WHERE { ?q property:place_of_death resource:India . ?q rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q3595831 Q2845323 Q146444
P20
Q15617994
USER
Where did the demise of those people occur ?
(Q3595831,P20,c(Q15617994)) (Q2845323,P20,c(Q15617994)) (Q146444,P20,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P20
type Q15617994
['Q3595831', 'P20', {'concept': 'Q15617994'}] ['Q2845323', 'P20', {'concept': 'Q15617994'}] ['Q146444', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?c ) { ( resource:Q15995768 ) ( resource:Q146444 ) ( resource:Q1557587 ) } . ?u rdf:type ontology:Q15617994 . ?c property:P20 ?u }
A. K. Gopalan Ananda Shankar Nutan
action filter_type
action find
entity prev_answer
relation place of death
type designation for an administrative territorial entity
['A. K. Gopalan', 'place of death', {'concept': 'designation for an administrative territorial entity'}] ['Ananda Shankar', 'place of death', {'concept': 'designation for an administrative territorial entity'}] ['Nutan', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?c ) { ( resource:Gerald_Merlin ) ( resource:Nutan ) ( resource:Guy_Tachard ) } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c property:place_of_death ?u }
[]
designation for an administrative territorial entity
Q668 Q668 Q668
SYSTEM
India
Q668 Q668 Q668
(Q3595831,P20,c(Q15617994)) (Q2845323,P20,c(Q15617994)) (Q146444,P20,c(Q15617994))
action filter_type
action find
entity prev_answer
relation P20
type Q15617994
The demise of those people occurred in [ANSWER], [ANSWER] and [ANSWER]
['Q3595831', 'P20', {'concept': 'Q15617994'}] ['Q2845323', 'P20', {'concept': 'Q15617994'}] ['Q146444', 'P20', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?c ) { ( resource:Q15995768 ) ( resource:Q146444 ) ( resource:Q1557587 ) } . ?u rdf:type ontology:Q15617994 . ?c property:P20 ?u }
India India India
The demise of those people occurred in India, India and India
India India India
action filter_type
action find
entity prev_answer
relation place of death
type designation for an administrative territorial entity
['A. K. Gopalan', 'place of death', {'concept': 'designation for an administrative territorial entity'}] ['Ananda Shankar', 'place of death', {'concept': 'designation for an administrative territorial entity'}] ['Nutan', 'place of death', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { VALUES ( ?c ) { ( resource:Gerald_Merlin ) ( resource:Nutan ) ( resource:Guy_Tachard ) } . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . ?c property:place_of_death ?u }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q668
P163
Q14660
USER
Which flag is associated with that administrative territory ?
(Q668,P163,c(Q14660)) (Q668,P163,c(Q14660)) (Q668,P163,c(Q14660))
action filter_type
action find
entity Q668
relation P163
type Q14660
['Q668', 'P163', {'concept': 'Q14660'}] ['Q668', 'P163', {'concept': 'Q14660'}] ['Q668', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?l WHERE { resource:Q668 property:P163 ?l . ?l rdf:type ontology:Q14660 }
India
action filter_type
action find
entity India
relation flag
type flag
['India', 'flag', {'concept': 'flag'}] ['India', 'flag', {'concept': 'flag'}] ['India', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?l WHERE { resource:India property:flag ?l . ?l rdf:type ontology:flag }
[]
flag
Q41673
SYSTEM
flag of India
Q41673
(Q668,P163,c(Q14660)) (Q668,P163,c(Q14660)) (Q668,P163,c(Q14660))
action filter_type
action find
entity Q668
relation P163
type Q14660
In [ANSWER] is associated with that administrative territory
['Q668', 'P163', {'concept': 'Q14660'}] ['Q668', 'P163', {'concept': 'Q14660'}] ['Q668', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?l WHERE { resource:Q668 property:P163 ?l . ?l rdf:type ontology:Q14660 }
flag of India
In flag of India is associated with that administrative territory
flag of India
action filter_type
action find
entity India
relation flag
type flag
['India', 'flag', {'concept': 'flag'}] ['India', 'flag', {'concept': 'flag'}] ['India', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?l WHERE { resource:India property:flag ?l . ?l rdf:type ontology:flag }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q668
P610
Q14524493
USER
Which is the zenith of India ?
(Q668,P610,c(Q14524493))
action filter_type
action find
entity Q668
relation P610
type Q14524493
['Q668', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?e WHERE { resource:Q668 property:P610 ?e . ?e rdf:type ontology:Q14524493 }
India
action filter_type
action find
entity India
relation highest point
type terrain
['India', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?e WHERE { resource:India property:highest_point ?e . ?e rdf:type ontology:terrain }
[]
terrain
Q82019
SYSTEM
Kanchenjunga
Q82019
(Q668,P610,c(Q14524493))
action filter_type
action find
entity Q668
relation P610
type Q14524493
The zenith of India is the [ANSWER]
['Q668', 'P610', {'concept': 'Q14524493'}]
SELECT DISTINCT ?e WHERE { resource:Q668 property:P610 ?e . ?e rdf:type ontology:Q14524493 }
Kanchenjunga
The zenith of India is the Kanchenjunga
Kanchenjunga
action filter_type
action find
entity India
relation highest point
type terrain
['India', 'highest point', {'concept': 'terrain'}]
SELECT DISTINCT ?e WHERE { resource:India property:highest_point ?e . ?e rdf:type ontology:terrain }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q668
P361
Q2221906
USER
Which geographic location is India a component of ?
(Q668,P361,c(Q2221906))
action filter_type
action find
entity Q668
relation P361
type Q2221906
['Q668', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q2221906 . resource:Q668 property:P361 ?b }
India
action filter_type
action find
entity India
relation part of
type geographic location
['India', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:geographic_location . resource:India property:part_of ?b }
[]
geographic location
Q771405
SYSTEM
South Asia
Q771405
(Q668,P361,c(Q2221906))
action filter_type
action find
entity Q668
relation P361
type Q2221906
Which geographic location is India a component of
['Q668', 'P361', {'concept': 'Q2221906'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q2221906 . resource:Q668 property:P361 ?b }
South Asia
Which geographic location is India a component of
South Asia
action filter_type
action find
entity India
relation part of
type geographic location
['India', 'part of', {'concept': 'geographic location'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:geographic_location . resource:India property:part_of ?b }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q771405
P276
Q350604
USER
What is located at that geographic location ?
(c(Q350604),P276,Q771405)
action filter_type
action find_reverse
entity Q771405
relation P276
type Q350604
[{'concept': 'Q350604'}, 'P276', 'Q771405']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q350604 . ?t property:P276 resource:Q771405 }
South Asia
action filter_type
action find_reverse
entity South Asia
relation location
type armed conflict
[{'concept': 'armed conflict'}, 'location', 'South Asia']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:armed_conflict . ?t property:location resource:South_Asia }
[]
armed conflict
Q184425
SYSTEM
Pacific War
Q184425
(c(Q350604),P276,Q771405)
action filter_type
action find_reverse
entity Q771405
relation P276
type Q350604
War [ANSWER] is located at that geographic location
[{'concept': 'Q350604'}, 'P276', 'Q771405']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q350604 . ?t property:P276 resource:Q771405 }
Pacific War
War Pacific War is located at that geographic location
Pacific War
action filter_type
action find_reverse
entity South Asia
relation location
type armed conflict
[{'concept': 'armed conflict'}, 'location', 'South Asia']
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:armed_conflict . ?t property:location resource:South_Asia }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q123070
P361
Q350604 Q176799 Q1190554
USER
Which armed conflicts are greater number of military units or events a part of than Russo-Turkish War of 1768–1774 ?
(c(Q176799)|c(Q1190554),P361,c(Q350604))
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q350604
type Q176799
action find_reverse_tuple_counts
relation P361
type Q350604
type Q1190554
action count
action filter_multi_types
action find_reverse
entity Q123070
relation P361
type Q176799
type Q1190554
[[{'concept': 'Q176799'}, {'concept': 'Q1190554'}], 'P361', {'concept': 'Q350604'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?k ) WHERE { { ?e property:P361 ?b . ?b rdf:type ontology:Q350604 . ?e rdf:type ontology:Q1190554 } UNION { ?e property:P361 ?b . ?b rdf:type ontology:Q350604 . ?e rdf:type ontology:Q176799 } } GROUP BY ?b } . FILTER ( ?k > ?o ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d property:P361 resource:Q123070 . { { ?d rdf:type ontology:Q176799 } UNION { ?d rdf:type ontology:Q1190554 } } } } }
Russo-Turkish War of 1768–1774
action greater
action union
action find_reverse_tuple_counts
relation part of
type armed conflict
type military unit
action find_reverse_tuple_counts
relation part of
type armed conflict
type event
action count
action filter_multi_types
action find_reverse
entity Russo-Turkish War of 1768–1774
relation part of
type military unit
type event
[[{'concept': 'military unit'}, {'concept': 'event'}], 'part of', {'concept': 'armed conflict'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?k ) WHERE { { ?e property:part_of ?b . ?b rdf:type ontology:armed_conflict . ?e rdf:type ontology:event } UNION { ?e property:part_of ?b . ?b rdf:type ontology:armed_conflict . ?e rdf:type ontology:military_unit } } GROUP BY ?b } . FILTER ( ?k > ?o ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d property:part_of resource:Russo-Turkish_War_of_1768–1774 . { { ?d rdf:type ontology:military_unit } UNION { ?d rdf:type ontology:event } } } } }
[]
armed conflict military unit event
Q154697 Q19686631 Q26013
SYSTEM
French and Indian War, Yemeni Civil War, War of 1812
Q1044829 Q184425 Q1186260 Q698281 Q196409 Q879980 Q68969 Q8663 Q2912306 Q699511 Q3540197 Q6334 Q207318 Q94916 Q748780 Q430053 Q75626 Q1132393 Q651008 Q1080711 Q260684 Q223126 Q203824 Q122100 Q1348630 Q134949 Q1456086 Q636365 Q74623 Q33143 Q550172 Q698985 Q8740 Q181533 Q631991 Q233642 Q46083 Q1616064 Q2667645 Q2341073 Q249232 Q33745 Q199955 Q170314 Q6683 Q551888 Q690361 Q6286 Q2320981 Q1851858 Q178687 Q329203 Q786171 Q166001 Q12583 Q596373 Q2320020 Q273348 Q2326066 Q258679 Q2487 Q1361354 Q31944 Q1640586 Q154981 Q2915203 Q6271 Q159950 Q179250 Q1237867 Q3621718 Q37643 Q82664 Q3242848 Q598774 Q16335075 Q631163 Q189266 Q19686631 Q58947 Q80330 Q989115 Q79791 Q48249 Q418151 Q32929 Q1139887 Q26013 Q478301 Q154697 Q431806 Q228911 Q2985977 Q8628 Q1235331 Q74298 Q15053704 Q12551 Q182865 Q127751 Q16362506 Q151616 Q309184 Q164432 Q165136 Q937255 Q2577772 Q177918 Q2326099 Q26749 Q288251 Q553157 Q706183 Q1501724 Q742813 Q215112 Q49100 Q15542964 Q49104
(c(Q176799)|c(Q1190554),P361,c(Q350604))
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q350604
type Q176799
action find_reverse_tuple_counts
relation P361
type Q350604
type Q1190554
action count
action filter_multi_types
action find_reverse
entity Q123070
relation P361
type Q176799
type Q1190554
[ANSWERS] are greater number of military units or events a part of than Russo-Turkish War of 1768–1774
[[{'concept': 'Q176799'}, {'concept': 'Q1190554'}], 'P361', {'concept': 'Q350604'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?k ) WHERE { { ?e property:P361 ?b . ?b rdf:type ontology:Q350604 . ?e rdf:type ontology:Q1190554 } UNION { ?e property:P361 ?b . ?b rdf:type ontology:Q350604 . ?e rdf:type ontology:Q176799 } } GROUP BY ?b } . FILTER ( ?k > ?o ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d property:P361 resource:Q123070 . { { ?d rdf:type ontology:Q176799 } UNION { ?d rdf:type ontology:Q1190554 } } } } }
Polish–Muscovite War Pacific War Creek War Italian War of 1521–1526 Livonian Crusade Black Hawk War Croatian War of Independence Korean War Wars of the Diadochi Campaigns of 1796 in the French Revolutionary Wars Third English Civil War Third Punic War French Revolutionary Wars Second Italo-Ethiopian War First Indochina War Great Sioux War of 1876 First Macedonian War Mercenary War Corinthian War Ottoman–Hungarian Wars Alexander's Balkan campaign Chaco War Italo-Turkish War Continuation War Ridda wars Winter War Nez Perce War War of the League of Cambrai Great Turkish War Seven Years' War War of the Breton Succession Ottoman wars in Europe Vietnam War Bosnian War Russo-Polish War Second Anglo-Maratha War Franco-Prussian war Mithridatic Wars Mongol invasion of Poland First Carlist War War of the Third Coalition Peloponnesian War Hundred Days Second Sino-Japanese War Mexican–American War Wars of Alexander the Great Long War First Punic War Williamite War in Ireland Dakota War of 1862 First Sino-Japanese War First Boer War Ottoman–Habsburg wars Scanian War Spanish–American War Pyrrhic War Byzantine–Sassanid War of 572–591 Italian Wars Iberian War Austro-Turkish War Thirty Years' War Nine Years' War Mahdist War Anglo-Scottish Wars Second Schleswig War Ethiopian–Adal war Second Punic War Russo-Japanese War French invasion of Russia Liberal Wars Arab–Khazar Wars Gulf War Iran–Iraq War First War of Scottish Independence Polish–Swedish War (1600–11) War in Donbass Deluge Eastern Front Yemeni Civil War War of the Triple Alliance English Civil War First Italo-Ethiopian War Reconquista Falklands War Second Opium War War of the Austrian Succession Russo-Persian War War of 1812 Hussite Wars French and Indian War Arauco War Anglo-Zulu War Polish–Swedish War (1626–29) War in the Vendée Greek-Punic Wars Polish–Ottoman War Coalition Wars Hundred Years' War War in Afghanistan Wars of the Roses Lithuanian Crusade Great Northern War Boshin War Eighty Years' War Swabian War Polish–Lithuanian–Teutonic War Wars of the Three Kingdoms First Balkan War Byzantine–Sassanid War of 602–28 War of the Second Coalition Cisplatine War Romania during World War I Sino-French War Portuguese Restoration War Chincha Islands War Second Boer War Yom Kippur War Italian War of 1542–46 2006 Lebanon War
French and Indian War, Yemeni Civil War and War of 1812 are greater number of military units or events a part of than Russo-Turkish War of 1768–1774
French and Indian War Yemeni Civil War War of 1812
action greater
action union
action find_reverse_tuple_counts
relation part of
type armed conflict
type military unit
action find_reverse_tuple_counts
relation part of
type armed conflict
type event
action count
action filter_multi_types
action find_reverse
entity Russo-Turkish War of 1768–1774
relation part of
type military unit
type event
[[{'concept': 'military unit'}, {'concept': 'event'}], 'part of', {'concept': 'armed conflict'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?e ) AS ?k ) WHERE { { ?e property:part_of ?b . ?b rdf:type ontology:armed_conflict . ?e rdf:type ontology:event } UNION { ?e property:part_of ?b . ?b rdf:type ontology:armed_conflict . ?e rdf:type ontology:military_unit } } GROUP BY ?b } . FILTER ( ?k > ?o ) . { SELECT DISTINCT ( COUNT ( ?d ) AS ?o ) WHERE { ?d property:part_of resource:Russo-Turkish_War_of_1768–1774 . { { ?d rdf:type ontology:military_unit } UNION { ?d rdf:type ontology:event } } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q1640586
P361
Q350604 Q176799 Q1190554
USER
And what about Anglo-Scottish Wars?
(c(Q176799)|c(Q1190554),P361,c(Q350604))
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q350604
type Q176799
action find_reverse_tuple_counts
relation P361
type Q350604
type Q1190554
action count
action filter_multi_types
action find_reverse
entity Q1640586
relation P361
type Q176799
type Q1190554
[[{'concept': 'Q176799'}, {'concept': 'Q1190554'}], 'P361', {'concept': 'Q350604'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { { { ?c rdf:type ontology:Q176799 } UNION { ?c rdf:type ontology:Q1190554 } } . ?c property:P361 resource:Q1640586 } } . FILTER ( ?x > ?v ) . { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?x ) WHERE { ?s rdf:type ?o . VALUES ( ?o ) { ( ontology:Q1190554 ) ( ontology:Q176799 ) } } GROUP BY ?w } }
Anglo-Scottish Wars
action greater
action union
action find_reverse_tuple_counts
relation part of
type armed conflict
type military unit
action find_reverse_tuple_counts
relation part of
type armed conflict
type event
action count
action filter_multi_types
action find_reverse
entity Anglo-Scottish Wars
relation part of
type military unit
type event
[[{'concept': 'military unit'}, {'concept': 'event'}], 'part of', {'concept': 'armed conflict'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { { { ?c rdf:type ontology:military_unit } UNION { ?c rdf:type ontology:event } } . ?c property:part_of resource:Anglo-Scottish_Wars } } . FILTER ( ?x > ?v ) . { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?x ) WHERE { ?s rdf:type ?o . VALUES ( ?o ) { ( ontology:event ) ( ontology:military_unit ) } } GROUP BY ?w } }
[]
armed conflict military unit event
Q19686631 Q26013 Q37643
SYSTEM
Yemeni Civil War, War of 1812, Gulf War
Q184425 Q196409 Q879980 Q68969 Q8663 Q207318 Q748780 Q430053 Q1080711 Q122100 Q134949 Q1456086 Q636365 Q74623 Q33143 Q550172 Q698985 Q8740 Q181533 Q631991 Q233642 Q46083 Q2341073 Q33745 Q199955 Q170314 Q6683 Q6286 Q178687 Q166001 Q12583 Q273348 Q2487 Q31944 Q2915203 Q6271 Q159950 Q179250 Q37643 Q82664 Q3242848 Q16335075 Q631163 Q189266 Q19686631 Q58947 Q80330 Q79791 Q48249 Q32929 Q26013 Q478301 Q431806 Q228911 Q8628 Q12551 Q182865 Q127751 Q151616 Q309184 Q164432 Q2577772 Q177918 Q26749 Q288251 Q553157 Q1501724 Q215112
(c(Q176799)|c(Q1190554),P361,c(Q350604))
action greater
action union
action find_reverse_tuple_counts
relation P361
type Q350604
type Q176799
action find_reverse_tuple_counts
relation P361
type Q350604
type Q1190554
action count
action filter_multi_types
action find_reverse
entity Q1640586
relation P361
type Q176799
type Q1190554
[ANSWERS]
[[{'concept': 'Q176799'}, {'concept': 'Q1190554'}], 'P361', {'concept': 'Q350604'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { { { ?c rdf:type ontology:Q176799 } UNION { ?c rdf:type ontology:Q1190554 } } . ?c property:P361 resource:Q1640586 } } . FILTER ( ?x > ?v ) . { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?x ) WHERE { ?s rdf:type ?o . VALUES ( ?o ) { ( ontology:Q1190554 ) ( ontology:Q176799 ) } } GROUP BY ?w } }
Pacific War Livonian Crusade Black Hawk War Croatian War of Independence Korean War French Revolutionary Wars First Indochina War Great Sioux War of 1876 Ottoman–Hungarian Wars Continuation War Winter War Nez Perce War War of the League of Cambrai Great Turkish War Seven Years' War War of the Breton Succession Ottoman wars in Europe Vietnam War Bosnian War Russo-Polish War Second Anglo-Maratha War Franco-Prussian war First Carlist War Peloponnesian War Hundred Days Second Sino-Japanese War Mexican–American War First Punic War First Sino-Japanese War Scanian War Spanish–American War Italian Wars Thirty Years' War Mahdist War Ethiopian–Adal war Second Punic War Russo-Japanese War French invasion of Russia Gulf War Iran–Iraq War First War of Scottish Independence War in Donbass Deluge Eastern Front Yemeni Civil War War of the Triple Alliance English Civil War Reconquista Falklands War War of the Austrian Succession War of 1812 Hussite Wars Arauco War Anglo-Zulu War War in the Vendée Hundred Years' War War in Afghanistan Wars of the Roses Great Northern War Boshin War Eighty Years' War Wars of the Three Kingdoms First Balkan War War of the Second Coalition Cisplatine War Romania during World War I Portuguese Restoration War Second Boer War
Yemeni Civil War War of 1812 Gulf War
action greater
action union
action find_reverse_tuple_counts
relation part of
type armed conflict
type military unit
action find_reverse_tuple_counts
relation part of
type armed conflict
type event
action count
action filter_multi_types
action find_reverse
entity Anglo-Scottish Wars
relation part of
type military unit
type event
[[{'concept': 'military unit'}, {'concept': 'event'}], 'part of', {'concept': 'armed conflict'}]
SELECT DISTINCT ?w WHERE { { SELECT DISTINCT ( COUNT ( ?c ) AS ?v ) WHERE { { { ?c rdf:type ontology:military_unit } UNION { ?c rdf:type ontology:event } } . ?c property:part_of resource:Anglo-Scottish_Wars } } . FILTER ( ?x > ?v ) . { SELECT DISTINCT ?w ( COUNT ( ?s ) AS ?x ) WHERE { ?s rdf:type ?o . VALUES ( ?o ) { ( ontology:event ) ( ontology:military_unit ) } } GROUP BY ?w } }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q638107 Q146444
P27
Q15617994
USER
Which administrative territories are Nutan or Sammy Winward an inhabitant of ?
OR((Q146444,P27,c(Q15617994)), (Q638107,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q146444
relation P27
action find
entity Q638107
relation P27
type Q15617994
{'OR': [['Q146444', 'P27', {'concept': 'Q15617994'}], ['Q638107', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q146444 property:P27 ?g } UNION { resource:Q638107 property:P27 ?g } } . ?g rdf:type ontology:Q15617994 }
Sammy Winward Nutan
action filter_type
action union
action find
entity Nutan
relation country of citizenship
action find
entity Sammy Winward
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Nutan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Sammy Winward', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Nutan property:country_of_citizenship ?g } UNION { resource:Sammy_Winward property:country_of_citizenship ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q668 Q145
SYSTEM
India, United Kingdom
Q668 Q145
OR((Q146444,P27,c(Q15617994)), (Q638107,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q146444
relation P27
action find
entity Q638107
relation P27
type Q15617994
[ANSWERS] are Nutan or Sammy Winward an inhabitant of
{'OR': [['Q146444', 'P27', {'concept': 'Q15617994'}], ['Q638107', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Q146444 property:P27 ?g } UNION { resource:Q638107 property:P27 ?g } } . ?g rdf:type ontology:Q15617994 }
India United Kingdom
India and United Kingdom are Nutan or Sammy Winward an inhabitant of
India United Kingdom
action filter_type
action union
action find
entity Nutan
relation country of citizenship
action find
entity Sammy Winward
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Nutan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Sammy Winward', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?g WHERE { { { resource:Nutan property:country_of_citizenship ?g } UNION { resource:Sammy_Winward property:country_of_citizenship ?g } } . ?g rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P530
Q15617994 Q15617994
USER
Which administrative territories have diplomatic relationships with min number of administrative territories ?
(c(Q15617994),P530,Q953)
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?z ) { SELECT DISTINCT ?y ( COUNT ( ?h ) AS ?b ) WHERE { ?y property:P530 ?h . ?h rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?y } } . { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?d ) WHERE { ?s property:P530 ?f . ?s rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?d = ?z ) }
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?z ) { SELECT DISTINCT ?y ( COUNT ( ?h ) AS ?b ) WHERE { ?y property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } } . { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?d ) WHERE { ?s property:diplomatic_relation ?f . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?d = ?z ) }
[]
designation for an administrative territorial entity designation for an administrative territorial entity
Q929 Q29999 Q232
SYSTEM
Central African Republic, Kingdom of the Netherlands, Kazakhstan
Q702 Q804 Q265 Q712 Q837 Q242 Q811 Q929 Q29999 Q854 Q730 Q232 Q1027 Q1032 Q697 Q695 Q754 Q912 Q683 Q836 Q817 Q1019 Q945 Q678 Q33788
(c(Q15617994),P530,Q953)
action argmin
action find_tuple_counts
relation P530
type Q15617994
type Q15617994
[ANSWERS] have diplomatic relationships with min number of administrative territories
[{'concept': 'Q15617994'}, 'P530', 'Q953']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?z ) { SELECT DISTINCT ?y ( COUNT ( ?h ) AS ?b ) WHERE { ?y property:P530 ?h . ?h rdf:type ontology:Q15617994 . ?y rdf:type ontology:Q15617994 } GROUP BY ?y } } . { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?d ) WHERE { ?s property:P530 ?f . ?s rdf:type ontology:Q15617994 . ?f rdf:type ontology:Q15617994 } GROUP BY ?s } . FILTER ( ?d = ?z ) }
Federated States of Micronesia Panama Uzbekistan Fiji Nepal Belize Nicaragua Central African Republic Kingdom of the Netherlands Sri Lanka Suriname Kazakhstan Mauritius Niger Nauru Palau Trinidad and Tobago Mali Samoa Myanmar Kuwait Madagascar Togo Tonga New Caledonia
Central African Republic, Kingdom of the Netherlands and Kazakhstan have diplomatic relationships with min number of administrative territories
Central African Republic Kingdom of the Netherlands Kazakhstan
action argmin
action find_tuple_counts
relation diplomatic relation
type designation for an administrative territorial entity
type designation for an administrative territorial entity
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', 'Zambia']
SELECT DISTINCT ?s WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?z ) { SELECT DISTINCT ?y ( COUNT ( ?h ) AS ?b ) WHERE { ?y property:diplomatic_relation ?h . ?h rdf:type ontology:designation_for_an_administrative_territorial_entity . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } } . { SELECT DISTINCT ?s ( COUNT ( ?f ) AS ?d ) WHERE { ?s property:diplomatic_relation ?f . ?s rdf:type ontology:designation_for_an_administrative_territorial_entity . ?f rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?s } . FILTER ( ?d = ?z ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P1001
Q12737077 Q14660
USER
How many occupations and flags have jurisdiction over that administrative territory ?
(c(Q12737077),P1001,Q929) (c(Q14660),P1001,Q929) (c(Q12737077),P1001,Q929) (c(Q14660),P1001,Q929) (c(Q12737077),P1001,Q29999) (c(Q14660),P1001,Q29999) (c(Q12737077),P1001,Q232) (c(Q14660),P1001,Q232)
[{'concept': 'Q12737077'}, 'P1001', 'Q929'] [{'concept': 'Q14660'}, 'P1001', 'Q929'] [{'concept': 'Q12737077'}, 'P1001', 'Q929'] [{'concept': 'Q14660'}, 'P1001', 'Q929'] [{'concept': 'Q12737077'}, 'P1001', 'Q29999'] [{'concept': 'Q14660'}, 'P1001', 'Q29999'] [{'concept': 'Q12737077'}, 'P1001', 'Q232'] [{'concept': 'Q14660'}, 'P1001', 'Q232']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P1001 resource:Q929 } UNION { ?y property:P1001 resource:Q929 } UNION { ?z property:P1001 resource:Q929 } UNION { ?y property:P1001 resource:Q929 } UNION { ?z property:P1001 resource:Q29999 } UNION { ?y property:P1001 resource:Q29999 } UNION { ?z property:P1001 resource:Q232 } UNION { ?y property:P1001 resource:Q232 } } . ?z rdf:type ontology:Q528892 . ?y rdf:type ontology:Q14660 }
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Central African Republic'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Central African Republic'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Central African Republic'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Central African Republic'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Kingdom of the Netherlands'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Kingdom of the Netherlands'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Kazakhstan'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Kazakhstan']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:applies_to_jurisdiction resource:Central_African_Republic } UNION { ?y property:applies_to_jurisdiction resource:Central_African_Republic } UNION { ?z property:applies_to_jurisdiction resource:Central_African_Republic } UNION { ?y property:applies_to_jurisdiction resource:Central_African_Republic } UNION { ?z property:applies_to_jurisdiction resource:Kingdom_of_the_Netherlands } UNION { ?y property:applies_to_jurisdiction resource:Kingdom_of_the_Netherlands } UNION { ?z property:applies_to_jurisdiction resource:Kazakhstan } UNION { ?y property:applies_to_jurisdiction resource:Kazakhstan } } . ?z rdf:type ontology:occupation . ?y rdf:type ontology:flag }
[]
occupation flag
Quantitative|Count|Mult. entity type|Clarification
Q929
SYSTEM
Did you mean Central African Republic ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P1001 resource:Q929 } UNION { ?y property:P1001 resource:Q929 } UNION { ?z property:P1001 resource:Q929 } UNION { ?y property:P1001 resource:Q929 } UNION { ?z property:P1001 resource:Q29999 } UNION { ?y property:P1001 resource:Q29999 } UNION { ?z property:P1001 resource:Q232 } UNION { ?y property:P1001 resource:Q232 } } . ?z rdf:type ontology:Q528892 . ?y rdf:type ontology:Q14660 }
Did you mean Central African Republic ?
Central African Republic
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:applies_to_jurisdiction resource:Central_African_Republic } UNION { ?y property:applies_to_jurisdiction resource:Central_African_Republic } UNION { ?z property:applies_to_jurisdiction resource:Central_African_Republic } UNION { ?y property:applies_to_jurisdiction resource:Central_African_Republic } UNION { ?z property:applies_to_jurisdiction resource:Kingdom_of_the_Netherlands } UNION { ?y property:applies_to_jurisdiction resource:Kingdom_of_the_Netherlands } UNION { ?z property:applies_to_jurisdiction resource:Kazakhstan } UNION { ?y property:applies_to_jurisdiction resource:Kazakhstan } } . ?z rdf:type ontology:occupation . ?y rdf:type ontology:flag }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q12737077),P1001,Q929) (c(Q14660),P1001,Q929) (c(Q12737077),P1001,Q929) (c(Q14660),P1001,Q929) (c(Q12737077),P1001,Q29999) (c(Q14660),P1001,Q29999) (c(Q12737077),P1001,Q232) (c(Q14660),P1001,Q232)
[{'concept': 'Q12737077'}, 'P1001', 'Q929'] [{'concept': 'Q14660'}, 'P1001', 'Q929'] [{'concept': 'Q12737077'}, 'P1001', 'Q929'] [{'concept': 'Q14660'}, 'P1001', 'Q929'] [{'concept': 'Q12737077'}, 'P1001', 'Q29999'] [{'concept': 'Q14660'}, 'P1001', 'Q29999'] [{'concept': 'Q12737077'}, 'P1001', 'Q232'] [{'concept': 'Q14660'}, 'P1001', 'Q232']
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Central African Republic'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Central African Republic'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Central African Republic'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Central African Republic'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Kingdom of the Netherlands'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Kingdom of the Netherlands'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Kazakhstan'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Kazakhstan']
[]
SYSTEM
2 occupations and 1 flags
Q21295977 Q16773091 Q165775
(c(Q12737077),P1001,Q929) (c(Q14660),P1001,Q929) (c(Q12737077),P1001,Q929) (c(Q14660),P1001,Q929) (c(Q12737077),P1001,Q29999) (c(Q14660),P1001,Q29999) (c(Q12737077),P1001,Q232) (c(Q14660),P1001,Q232)
[ANSWER]
[{'concept': 'Q12737077'}, 'P1001', 'Q929'] [{'concept': 'Q14660'}, 'P1001', 'Q929'] [{'concept': 'Q12737077'}, 'P1001', 'Q929'] [{'concept': 'Q14660'}, 'P1001', 'Q929'] [{'concept': 'Q12737077'}, 'P1001', 'Q29999'] [{'concept': 'Q14660'}, 'P1001', 'Q29999'] [{'concept': 'Q12737077'}, 'P1001', 'Q232'] [{'concept': 'Q14660'}, 'P1001', 'Q232']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P1001 resource:Q929 } UNION { ?y property:P1001 resource:Q929 } UNION { ?z property:P1001 resource:Q929 } UNION { ?y property:P1001 resource:Q929 } UNION { ?z property:P1001 resource:Q29999 } UNION { ?y property:P1001 resource:Q29999 } UNION { ?z property:P1001 resource:Q232 } UNION { ?y property:P1001 resource:Q232 } } . ?z rdf:type ontology:Q528892 . ?y rdf:type ontology:Q14660 }
Member of the National Assembly of the Central African Republic Prime Minister of the Central African Republic Flag of the Central African Republic
2 occupations and 1 flags
[{'concept': 'occupation'}, 'applies to jurisdiction', 'Central African Republic'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Central African Republic'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Central African Republic'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Central African Republic'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Kingdom of the Netherlands'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Kingdom of the Netherlands'] [{'concept': 'occupation'}, 'applies to jurisdiction', 'Kazakhstan'] [{'concept': 'flag'}, 'applies to jurisdiction', 'Kazakhstan']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:applies_to_jurisdiction resource:Central_African_Republic } UNION { ?y property:applies_to_jurisdiction resource:Central_African_Republic } UNION { ?z property:applies_to_jurisdiction resource:Central_African_Republic } UNION { ?y property:applies_to_jurisdiction resource:Central_African_Republic } UNION { ?z property:applies_to_jurisdiction resource:Kingdom_of_the_Netherlands } UNION { ?y property:applies_to_jurisdiction resource:Kingdom_of_the_Netherlands } UNION { ?z property:applies_to_jurisdiction resource:Kazakhstan } UNION { ?y property:applies_to_jurisdiction resource:Kazakhstan } } . ?z rdf:type ontology:occupation . ?y rdf:type ontology:flag }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q929
P47
Q15617994 Q56061
USER
How many administrative territories and administrative territories share border with Central African Republic ?
(Q929,P47,c(Q15617994)) (Q929,P47,c(Q56061))
action count
action union
action filter_type
action find
entity Q929
relation P47
type Q15617994
action filter_type
action find
entity Q929
relation P47
type Q56061
['Q929', 'P47', {'concept': 'Q15617994'}] ['Q929', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { { ?u rdf:type ontology:Q15617994 . resource:Q929 property:P47 ?u } UNION { resource:Q929 property:P47 ?u . ?u rdf:type ontology:Q56061 } }
Central African Republic
action count
action union
action filter_type
action find
entity Central African Republic
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Central African Republic
relation shares border with
type administrative territorial entity
['Central African Republic', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Central African Republic', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Central_African_Republic property:shares_border_with ?u } UNION { resource:Central_African_Republic property:shares_border_with ?u . ?u rdf:type ontology:administrative_territorial_entity } }
[]
designation for an administrative territorial entity administrative territorial entity
SYSTEM
7
Q1049 Q7172 Q1009 Q974 Q958 Q971 Q657
(Q929,P47,c(Q15617994)) (Q929,P47,c(Q56061))
action count
action union
action filter_type
action find
entity Q929
relation P47
type Q15617994
action filter_type
action find
entity Q929
relation P47
type Q56061
[ANSWER]
['Q929', 'P47', {'concept': 'Q15617994'}] ['Q929', 'P47', {'concept': 'Q56061'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { { ?u rdf:type ontology:Q15617994 . resource:Q929 property:P47 ?u } UNION { resource:Q929 property:P47 ?u . ?u rdf:type ontology:Q56061 } }
Sudan Arab League Cameroon Democratic Republic of the Congo South Sudan Republic of the Congo Chad
7
action count
action union
action filter_type
action find
entity Central African Republic
relation shares border with
type designation for an administrative territorial entity
action filter_type
action find
entity Central African Republic
relation shares border with
type administrative territorial entity
['Central African Republic', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Central African Republic', 'shares border with', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?u ) AS ?a ) WHERE { { ?u rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:Central_African_Republic property:shares_border_with ?u } UNION { resource:Central_African_Republic property:shares_border_with ?u . ?u rdf:type ontology:administrative_territorial_entity } }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P530
Q1048835 Q15617994
USER
Which political territories have diplomatic relations with exactly 1 administrative territory ?
(c(Q15617994),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?d ) WHERE { ?y property:P530 ?b . ?y rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } GROUP BY ?y } . FILTER ( ?d = 1 ) }
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?d ) WHERE { ?y property:diplomatic_relation ?b . ?y rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . FILTER ( ?d = 1 ) }
[]
political territorial entity designation for an administrative territorial entity
Q1000 Q769 Q778
SYSTEM
Gabon, Grenada, The Bahamas
Q1000 Q781 Q778 Q769
(c(Q15617994),P530,c(Q1048835))
action equal
action find_tuple_counts
relation P530
type Q1048835
type Q15617994
value 1
[ANSWERS] have diplomatic relations with exactly 1 administrative territory
[{'concept': 'Q15617994'}, 'P530', {'concept': 'Q1048835'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?d ) WHERE { ?y property:P530 ?b . ?y rdf:type ontology:Q1048835 . ?b rdf:type ontology:Q15617994 } GROUP BY ?y } . FILTER ( ?d = 1 ) }
Gabon Antigua and Barbuda The Bahamas Grenada
Gabon, Grenada and The Bahamas have diplomatic relations with exactly 1 administrative territory
Gabon Grenada The Bahamas
action equal
action find_tuple_counts
relation diplomatic relation
type political territorial entity
type designation for an administrative territorial entity
value 1
[{'concept': 'designation for an administrative territorial entity'}, 'diplomatic relation', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?y WHERE { { SELECT DISTINCT ?y ( COUNT ( ?b ) AS ?d ) WHERE { ?y property:diplomatic_relation ?b . ?y rdf:type ontology:political_territorial_entity . ?b rdf:type ontology:designation_for_an_administrative_territorial_entity } GROUP BY ?y } . FILTER ( ?d = 1 ) }
[]
Clarification
Quantitative|Count|Single entity type|Indirect
P47
Q15617994
USER
How many administrative territories are bordered by that political territory ?
(Q1000,P47,c(Q15617994))
['Q1000', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1241571 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
['Gabon', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Gabon property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Quantitative|Count|Single entity type|Clarification
Q1000
SYSTEM
Did you mean Gabon ?
(Q1000,P47,c(Q15617994)) (Q769,P47,c(Q15617994)) (Q778,P47,c(Q15617994))
[ANSWER]
['Q1000', 'P47', {'concept': 'Q15617994'}] ['Q769', 'P47', {'concept': 'Q15617994'}] ['Q778', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1241571 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
Did you mean Gabon ?
Gabon
['Gabon', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['Grenada', 'shares border with', {'concept': 'designation for an administrative territorial entity'}] ['The Bahamas', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Gabon property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(Q1000,P47,c(Q15617994))
['Q1000', 'P47', {'concept': 'Q15617994'}]
['Gabon', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
[]
SYSTEM
3
Q1009 Q983 Q971
(Q1000,P47,c(Q15617994))
[ANSWER]
['Q1000', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Q1241571 property:P47 ?z . ?z rdf:type ontology:Q15617994 }
Cameroon Equatorial Guinea Republic of the Congo
3
['Gabon', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?y ) WHERE { resource:Gabon property:shares_border_with ?z . ?z rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q350604 Q178561 Q1914636
USER
Which armed conflicts are min number of battles and activities a part of ?
(c(Q178561)|c(Q1914636),P361,c(Q350604))
action argmin
action union
action find_reverse_tuple_counts
relation P361
type Q350604
type Q178561
action find_reverse_tuple_counts
relation P361
type Q350604
type Q1914636
[[{'concept': 'Q178561'}, {'concept': 'Q1914636'}], 'P361', {'concept': 'Q350604'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?r ) { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?i ) WHERE { VALUES ( ?j ) { ( ontology:Q178561 ) ( ontology:Q1914636 ) } . ?q rdf:type ?j } GROUP BY ?e } } . { SELECT DISTINCT ?k ( COUNT ( ?d ) AS ?c ) WHERE { ?d rdf:type ?l . VALUES ( ?l ) { ( ontology:Q178561 ) ( ontology:Q1914636 ) } } GROUP BY ?k } . FILTER ( ?c = ?r ) }
action argmin
action union
action find_reverse_tuple_counts
relation part of
type armed conflict
type battle
action find_reverse_tuple_counts
relation part of
type armed conflict
type activity
[[{'concept': 'battle'}, {'concept': 'activity'}], 'part of', {'concept': 'armed conflict'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?r ) { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?i ) WHERE { VALUES ( ?j ) { ( ontology:battle ) ( ontology:activity ) } . ?q rdf:type ?j } GROUP BY ?e } } . { SELECT DISTINCT ?k ( COUNT ( ?d ) AS ?c ) WHERE { ?d rdf:type ?l . VALUES ( ?l ) { ( ontology:battle ) ( ontology:activity ) } } GROUP BY ?k } . FILTER ( ?c = ?r ) }
[]
armed conflict battle activity
Q154697 Q19686631 Q168442
SYSTEM
French and Indian War, Yemeni Civil War, Anglo-Spanish War (1625–1630)
Q8077397 Q1044829 Q1186260 Q1519107 Q184183 Q698281 Q196409 Q619749 Q879980 Q68969 Q1552718 Q17272643 Q2912306 Q699511 Q3540197 Q94916 Q381375 Q748780 Q430053 Q20747555 Q179275 Q1187249 Q807741 Q699602 Q75626 Q18920712 Q657055 Q643987 Q768496 Q1132393 Q2338771 Q620735 Q75665 Q1474893 Q558423 Q2632175 Q651008 Q3104848 Q233507 Q15353665 Q1080711 Q260684 Q129864 Q2444955 Q223126 Q122100 Q777345 Q1348630 Q609836 Q134949 Q327150 Q759988 Q1456086 Q3119188 Q1676845 Q636365 Q2060306 Q74623 Q317519 Q550172 Q1209169 Q233649 Q186336 Q11924845 Q631991 Q233642 Q748042 Q46083 Q1616064 Q2576016 Q2330558 Q1540737 Q2656995 Q2667645 Q2341073 Q553184 Q862257 Q6192082 Q249232 Q6861027 Q2419855 Q33745 Q2992536 Q199955 Q170314 Q6683 Q54434 Q551888 Q1672808 Q2082222 Q17512479 Q8064768 Q690361 Q2320981 Q1851858 Q1014253 Q178687 Q4200795 Q2342102 Q179077 Q14947002 Q1355145 Q1073446 Q329203 Q3902588 Q17324420 Q596373 Q76026 Q322607 Q321780 Q3042463 Q923852 Q2320020 Q273348 Q2326066 Q486831 Q49077 Q258679 Q233601 Q1187448 Q31944 Q1640586 Q2915203 Q2992403 Q123070 Q208261 Q76118 Q185729 Q1949299 Q696389 Q179250 Q12055176 Q3118990 Q1237867 Q849680 Q3621718 Q568387 Q82664 Q29242 Q60489 Q510588 Q3242848 Q598774 Q190029 Q7813573 Q16335075 Q631163 Q3119132 Q189266 Q438252 Q19686631 Q80330 Q989115 Q68478 Q79791 Q623171 Q2697981 Q870077 Q617827 Q1330607 Q418151 Q1139887 Q26013 Q478301 Q83085 Q154697 Q431806 Q228911 Q2985977 Q8628 Q2665664 Q1479636 Q617321 Q1455917 Q1235331 Q74298 Q1780850 Q15053704 Q182865 Q1429256 Q127751 Q120843 Q16911838 Q16362506 Q42937 Q644589 Q309184 Q3042457 Q168442 Q165136 Q937255 Q1567698 Q74109 Q49103 Q524189 Q2577772 Q177918 Q29269 Q2326099 Q26749 Q3119015 Q282135 Q553157 Q1501724 Q2991800 Q1069736 Q742813 Q924600 Q215112 Q759998 Q277392 Q2487361 Q49100 Q15542964 Q151622 Q49104
(c(Q178561)|c(Q1914636),P361,c(Q350604))
action argmin
action union
action find_reverse_tuple_counts
relation P361
type Q350604
type Q178561
action find_reverse_tuple_counts
relation P361
type Q350604
type Q1914636
Min number of battles and activities a part of are the [ANSWERS]
[[{'concept': 'Q178561'}, {'concept': 'Q1914636'}], 'P361', {'concept': 'Q350604'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?r ) { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?i ) WHERE { VALUES ( ?j ) { ( ontology:Q178561 ) ( ontology:Q1914636 ) } . ?q rdf:type ?j } GROUP BY ?e } } . { SELECT DISTINCT ?k ( COUNT ( ?d ) AS ?c ) WHERE { ?d rdf:type ?l . VALUES ( ?l ) { ( ontology:Q178561 ) ( ontology:Q1914636 ) } } GROUP BY ?k } . FILTER ( ?c = ?r ) }
Æthelwold's Revolt Polish–Muscovite War Creek War War in Afghanistan Second Balkan War Italian War of 1521–1526 Livonian Crusade Kurdish–Turkish conflict Black Hawk War Croatian War of Independence Granada War spillover of the Syrian Civil War Wars of the Diadochi Campaigns of 1796 in the French Revolutionary Wars Third English Civil War Second Italo-Ethiopian War Nagorno-Karabakh War First Indochina War Great Sioux War of 1876 Byzantine–Bulgarian war of 913–927 War in North-West Pakistan Ottoman–Portuguese conflicts Barbary Wars Cretan War First Macedonian War War in Afghanistan Greco-Turkish War (1897) Perusine War Banana Wars Mercenary War Cretan War (205–200 BC) Russo-Georgian War Second Macedonian War Cleomenean War Polish–Teutonic War Dunmore's War Corinthian War Fitna of al-Andalus Second Anglo-Afghan War South Sudanese conflict Ottoman–Hungarian Wars Alexander's Balkan campaign Indian Rebellion of 1857 Rhodesian Bush War Chaco War Continuation War Mad War Ridda wars Portuguese Colonial War Winter War Byzantine–Norman wars Zanj Rebellion Nez Perce War Fernandine Wars Boer Wa War of the League of Cambrai Red Cloud's War Great Turkish War Muslim conquest of Egypt War of the Breton Succession War in Abkhazia Second Margrave War Dutch Revolt Messenian Wars Russo-Polish War Second Anglo-Maratha War Irish Civil War Franco-Prussian war Mithridatic Wars Anastasian War Liège Wars Hispano-Moroccan War Northwest Indian War Mongol invasion of Poland First Carlist War Gaza–Israel conflict King Philip's War Jicarilla War War of the Third Coalition Achaean War Ukrainian–Soviet War Peloponnesian War Basque conflict Hundred Days Second Sino-Japanese War Mexican–American War War of Jenkins' Ear Wars of Alexander the Great Irish Confederate Wars Lazic War Arab Winter Zaian War Long War Williamite War in Ireland Dakota War of 1862 Mongol conquest of the Jin dynasty First Sino-Japanese War Indian campaign of Alexander the Great Indochina Wars Pontiac's War Chechen–Russian conflict Italian War of 1494–1498 Swedish–Novgorodian Wars First Boer War Little War in Hungary 2014 Israel–Gaza conflict Pyrrhic War Greco-Persian Wars War of Attrition Georgian–Abkhazian conflict Uruguayan War Russo-Crimean Wars Byzantine–Sassanid War of 572–591 Italian Wars Iberian War Roman–Syrian war Six-Day War Austro-Turkish War Second Carnatic War Zenkunen War Mahdist War Anglo-Scottish Wars Ethiopian–Adal war Franco-Syrian War Russo-Turkish War of 1768–1774 Ionian Revolt Third Macedonian War War on Terror Russo-Kazan Wars Soviet–Japanese border conflicts French invasion of Russia Angolan Civil War War for Brittany Liberal Wars American Indian Wars Arab–Khazar Wars Peasants' War Iran–Iraq War Georgian–Ossetian conflict Albanian–Venetian War War of the Lombards First War of Scottish Independence Polish–Swedish War (1600–11) Kosovo War Tokhtamysh–Timur war War in Donbass Deluge Indo-Pakistani wars and conflicts Eastern Front Old Zürich War Yemeni Civil War English Civil War First Italo-Ethiopian War Peruvian War of Independence Reconquista Sino-Vietnamese War Argentine Civil Wars Transalpine campaigns of the Old Swiss Confederacy Apache Wars Syrian Wars Second Opium War Russo-Persian War War of 1812 Hussite Wars Soviet–Afghan War French and Indian War Arauco War Anglo-Zulu War Polish–Swedish War (1626–29) War in the Vendée Prussian Crusade Federal War Anglo-Mysore Wars Umayyad conquest of Hispania Greek-Punic Wars Polish–Ottoman War Swedish-Norwegian War Coalition Wars War in Afghanistan War of the League of Cognac Wars of the Roses Second Chechen War Libyan civil war Lithuanian Crusade Trojan War Toyota War Boshin War Platine War Anglo-Spanish War (1625–1630) Swabian War Polish–Lithuanian–Teutonic War Russian–Lithuanian Wars Albanian resistance during World War II Lebanon War Cologne War Wars of the Three Kingdoms First Balkan War First Chechen War Byzantine–Sassanid War of 602–28 War of the Second Coalition Yakima War War of the Castilian Succession Romania during World War I Portuguese Restoration War Sviatoslav's invasion of Bulgaria Croat–Bosniak War Chincha Islands War War against Sigismund Second Boer War Berber Revolt Polish–Ottoman War Frans van Brederode's rebellion of 1488–1490 Yom Kippur War Italian War of 1542–46 Israeli–Palestinian conflict 2006 Lebanon War
Min number of battles and activities a part of are the French and Indian War, Yemeni Civil War and Anglo-Spanish War (1625–1630)
French and Indian War Yemeni Civil War Anglo-Spanish War (1625–1630)
action argmin
action union
action find_reverse_tuple_counts
relation part of
type armed conflict
type battle
action find_reverse_tuple_counts
relation part of
type armed conflict
type activity
[[{'concept': 'battle'}, {'concept': 'activity'}], 'part of', {'concept': 'armed conflict'}]
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MIN ( ?i ) AS ?r ) { SELECT DISTINCT ?e ( COUNT ( ?q ) AS ?i ) WHERE { VALUES ( ?j ) { ( ontology:battle ) ( ontology:activity ) } . ?q rdf:type ?j } GROUP BY ?e } } . { SELECT DISTINCT ?k ( COUNT ( ?d ) AS ?c ) WHERE { ?d rdf:type ?l . VALUES ( ?l ) { ( ontology:battle ) ( ontology:activity ) } } GROUP BY ?k } . FILTER ( ?c = ?r ) }
[]