Simple Question (Direct)
Simple Question
Q1234699
P607
Q198
USER
What was the war that Giorgio Parodi took part in
(Q1234699,P607,c(Q198))
action filter_type
action find
entity Q1234699
relation P607
type Q198
['Q1234699', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?s WHERE { resource:Q1234699 property:P607 ?s . ?s rdf:type ontology:Q198 }
Giorgio Parodi
action filter_type
action find
entity Giorgio Parodi
relation conflict
type war
['Giorgio Parodi', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?s WHERE { resource:Giorgio_Parodi property:conflict ?s . ?s rdf:type ontology:war }
[]
war
Q362
SYSTEM
World War II
Q362
(Q1234699,P607,c(Q198))
action filter_type
action find
entity Q1234699
relation P607
type Q198
The war that Giorgio Parodi took part in was during [ANSWER]
['Q1234699', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?s WHERE { resource:Q1234699 property:P607 ?s . ?s rdf:type ontology:Q198 }
World War II
The war that Giorgio Parodi took part in was during World War II
World War II
action filter_type
action find
entity Giorgio Parodi
relation conflict
type war
['Giorgio Parodi', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?s WHERE { resource:Giorgio_Parodi property:conflict ?s . ?s rdf:type ontology:war }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q362
P793
Q1190554
USER
What has that war as a significant associated event ?
(c(Q1190554),P793,Q362)
action filter_type
action find_reverse
entity Q362
relation P793
type Q1190554
[{'concept': 'Q1190554'}, 'P793', 'Q362']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q1190554 . ?h property:P793 resource:Q362 }
World War II
action filter_type
action find_reverse
entity World War II
relation significant event
type event
[{'concept': 'event'}, 'significant event', 'World War II']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:event . ?h property:significant_event resource:World_War_II }
[]
event
Q830166
SYSTEM
Ohi Day
Q830166
(c(Q1190554),P793,Q362)
action filter_type
action find_reverse
entity Q362
relation P793
type Q1190554
[ANSWER] has that war as a significant associated event
[{'concept': 'Q1190554'}, 'P793', 'Q362']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q1190554 . ?h property:P793 resource:Q362 }
Ohi Day
Ohi Day has that war as a significant associated event
Ohi Day
action filter_type
action find_reverse
entity World War II
relation significant event
type event
[{'concept': 'event'}, 'significant event', 'World War II']
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:event . ?h property:significant_event resource:World_War_II }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q18033270
Q1190554
USER
And also tell me about coat of arms of Brakel?
(Q18033270,P793,c(Q1190554))
action filter_type
action find
entity Q18033270
relation P793
type Q1190554
['Q18033270', 'P793', {'concept': 'Q1190554'}]
SELECT DISTINCT ?f WHERE { resource:Q18033270 property:P793 ?f . ?f rdf:type ontology:Q1190554 }
coat of arms of Brakel
action filter_type
action find
entity coat of arms of Brakel
relation significant event
type event
['coat of arms of Brakel', 'significant event', {'concept': 'event'}]
SELECT DISTINCT ?f WHERE { resource:coat_of_arms_of_Brakel property:significant_event ?f . ?f rdf:type ontology:event }
[]
event
Q21014657
SYSTEM
assignment
Q21014657
(Q18033270,P793,c(Q1190554))
action filter_type
action find
entity Q18033270
relation P793
type Q1190554
[ANSWER]
['Q18033270', 'P793', {'concept': 'Q1190554'}]
SELECT DISTINCT ?f WHERE { resource:Q18033270 property:P793 ?f . ?f rdf:type ontology:Q1190554 }
assignment
assignment
action filter_type
action find
entity coat of arms of Brakel
relation significant event
type event
['coat of arms of Brakel', 'significant event', {'concept': 'event'}]
SELECT DISTINCT ?f WHERE { resource:coat_of_arms_of_Brakel property:significant_event ?f . ?f rdf:type ontology:event }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q1190554 Q15619164 Q176799
USER
Which events are min number of abstract beings and military units a part of ?
(c(Q15619164)|c(Q176799),P361,c(Q1190554))
action argmin
action union
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q15619164
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q176799
[[{'concept': 'Q15619164'}, {'concept': 'Q176799'}], 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?o ) { SELECT DISTINCT ?g ( COUNT ( ?w ) AS ?b ) WHERE { VALUES ( ?s ) { ( ontology:Q176799 ) ( ontology:Q15619164 ) } . ?w rdf:type ?s } GROUP BY ?g } } . { SELECT DISTINCT ?v ( COUNT ( ?f ) AS ?e ) WHERE { { ?v rdf:type ontology:Q1190554 . ?f rdf:type ontology:Q15619164 . ?f property:P361 ?v } UNION { ?v rdf:type ontology:Q1190554 . ?f rdf:type ontology:Q176799 . ?f property:P361 ?v } } GROUP BY ?v } . FILTER ( ?e = ?o ) }
action argmin
action union
action find_reverse_tuple_counts
relation part of
type event
type abstract being
action find_reverse_tuple_counts
relation part of
type event
type military unit
[[{'concept': 'abstract being'}, {'concept': 'military unit'}], 'part of', {'concept': 'event'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?o ) { SELECT DISTINCT ?g ( COUNT ( ?w ) AS ?b ) WHERE { VALUES ( ?s ) { ( ontology:military_unit ) ( ontology:abstract_being ) } . ?w rdf:type ?s } GROUP BY ?g } } . { SELECT DISTINCT ?v ( COUNT ( ?f ) AS ?e ) WHERE { { ?v rdf:type ontology:event . ?f rdf:type ontology:abstract_being . ?f property:part_of ?v } UNION { ?v rdf:type ontology:event . ?f rdf:type ontology:military_unit . ?f property:part_of ?v } } GROUP BY ?v } . FILTER ( ?e = ?o ) }
[]
event abstract being military unit
Q218678 Q51654 Q16470
SYSTEM
North African Campaign, Second Crusade, Normandy landings
Q87138 Q11347454 Q19364861 Q15726688 Q5887669 Q152218 Q716562 Q19870743 Q1458235 Q11663 Q576338 Q287942 Q15833607 Q1245157 Q4709161 Q1093550 Q869045 Q7573442 Q3445341 Q696844 Q49092 Q5685042 Q19362030 Q842774 Q654006 Q1934591 Q2091916 Q683912 Q638530 Q20821272 Q132568 Q737907 Q7569936 Q4126360 Q2334719 Q164348 Q184637 Q2495510 Q1842866 Q221941 Q576292 Q815216 Q250747 Q193603 Q827612 Q15946570 Q186284 Q233505 Q7109930 Q17021072 Q2067876 Q109251 Q5916 Q492126 Q195983 Q16471 Q16470 Q697022 Q737542 Q2408799 Q638608 Q385378 Q4978527 Q4513932 Q4141642 Q217145 Q1765465 Q51661 Q51660 Q392213 Q21030182 Q4743407 Q46857 Q151290 Q1514908 Q1154050 Q151340 Q15013125 Q212658 Q18639147 Q517578 Q830059 Q374814 Q870196 Q523154 Q1136575 Q16146546 Q629965 Q20857240 Q8669 Q1151913 Q952881 Q21482801 Q814235 Q482456 Q174205 Q189508 Q1417059 Q646322 Q572291 Q1647768 Q743776 Q51662 Q19429010 Q138107 Q83055 Q2946372 Q254106 Q7860 Q210714 Q8016240 Q477973 Q916495 Q582584 Q1756029 Q18817 Q7885422 Q1657839 Q3119190 Q1827267 Q714274 Q1144824 Q6644923 Q201676 Q246863 Q327035 Q430726 Q216184 Q1340107 Q1225409 Q2704441 Q4366849 Q48314 Q2026016 Q5547987 Q298864 Q223604 Q202161 Q168556 Q18536369 Q605977 Q18378977 Q789406 Q630259 Q253684 Q19864219 Q18145759 Q28545 Q15303938 Q464512 Q7573405 Q8050376 Q7506756 Q2288144 Q151018 Q688308 Q7333201 Q856216 Q829875 Q324438 Q221967 Q239060 Q15553019 Q154031 Q218678 Q169072 Q1130507 Q202298 Q1134220 Q631795 Q340075 Q464980 Q51656 Q51657 Q150701 Q51655 Q4825628 Q687572 Q3310304 Q673175 Q27653685 Q1758572 Q468293 Q7567350 Q290178 Q7968673 Q164983 Q2889354 Q18606884 Q821283 Q1525846 Q2524228 Q6068230 Q162362 Q3509177 Q153650 Q261776 Q6165880 Q3491709 Q208156 Q154182 Q23687335 Q750567 Q296754 Q51649 Q4825457 Q736268 Q17005775 Q1498028 Q315921 Q315342 Q194132 Q123210 Q1372308 Q4465891 Q476300 Q6449024 Q712461 Q377269 Q847301 Q1993443 Q2649081 Q18326286 Q482090 Q162357 Q2117576 Q1413732 Q6133239 Q17189951 Q426227 Q51654 Q604897 Q953045 Q21083298 Q6762017 Q27145365 Q18208094 Q1440764 Q426099 Q3769089 Q685683 Q807843 Q696823 Q130861 Q692065 Q235344 Q617333 Q697625 Q165725 Q3778609 Q7127419 Q2761147 Q417744 Q684324 Q617409 Q11448 Q1070342 Q482979 Q158677 Q10862448 Q152004 Q16918333 Q3402214
(c(Q15619164)|c(Q176799),P361,c(Q1190554))
action argmin
action union
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q15619164
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q176799
[ANSWERS] are min number of abstract beings and military units a part of
[[{'concept': 'Q15619164'}, {'concept': 'Q176799'}], 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?o ) { SELECT DISTINCT ?g ( COUNT ( ?w ) AS ?b ) WHERE { VALUES ( ?s ) { ( ontology:Q176799 ) ( ontology:Q15619164 ) } . ?w rdf:type ?s } GROUP BY ?g } } . { SELECT DISTINCT ?v ( COUNT ( ?f ) AS ?e ) WHERE { { ?v rdf:type ontology:Q1190554 . ?f rdf:type ontology:Q15619164 . ?f property:P361 ?v } UNION { ?v rdf:type ontology:Q1190554 . ?f rdf:type ontology:Q176799 . ?f property:P361 ?v } } GROUP BY ?v } . FILTER ( ?e = ?o ) }
Greco-Turkish War Neapolitan campaigns of Louis the Great Internal conflict in Bangladesh Esperanto meeting Nicaraguan civil war Nine Years' War Battle of Hakodate Anglo-French war of 1202–14 Battle of the Upper Baetis weather Japanese invasions of Korea Russo-Turkish War Annexation of Crimea by the Russian Federation Battle of Loos Albanian Revolt of 1911 Western Sahara conflict Queen Anne's War Spanish reconquest of Mexico Saintonge War Battle of Anzio 1948 Arab–Israeli War Hawkesbury and Nepean Wars aftermath of the 2014–15 Yemeni coup d'état Polish–Ukrainian War Second Northern War Battle of North Borneo Reform War Operation Tractable Texas Revolution axiomatisation Battle of the Somme Latin War Southern Front of the Russian Civil War Glyndŵr Rising legal case Hungarian Revolution of 1956 Ten Years' War Battle of Reval Battle of Aleppo War of the Quadruple Alliance Fourth Anglo-Dutch War Siege of Sevastopol Race to the Sea ontogeny Jugurthine War Yemeni Crisis Polish–Soviet War Second Barbary War Ottoman Invasion of Mani Pemmican War Polish–Swedish War (1600-29) Samnite Wars spaceflight Frisian–Frankish wars Franco-Flemish War Invasion of Normandy Normandy landings Battle of the Scheldt Genpei War Battle of the Misrata frontline software development construction Bruce campaign in Ireland Montenegrin–Ottoman War Anglo-Russian invasion of Holland Guadalcanal Campaign Middle Eastern theatre of World War I Seventh Crusade Sixth Crusade Siege of Orléans Battle of Kunduz American Civil Liberties Union v. National Security Agency scientific method Battle of Moscow Cuban War of Independence Peninsula Campaign Battle of France Latin War War of the Polish Succession Byzantine–Bulgarian war of 894–896 King George's War Battle of Red Cliffs certification Russo-Swedish War Caucasus Campaign Vandalic War Civil conflict in the Philippines Russo-Swedish War European migrant crisis Arab–Israeli conflict First Anglo-Dutch War French intervention in Mexico Islamic terrorism crisis in France German Campaign of 1813 Fall of Saigon Russo-Turkish War Glorious Revolution First Fitna Franco-Dutch War Guelders Wars First Mithridatic War First Peloponnesian War Northern Crusades 2014 Odessa clashes War of the Sixth Coalition Operation Barbarossa Northern Mali conflict Crimean War nature 2011 military intervention in Libya trial Gothic War Second Anglo-Dutch War First Anglo–Sikh War Operation Tonga War of the First Coalition Battle for Narva (1944) Ten Days' Campaign Roman-Etruscan Wars Byzantine–Seljuq wars Allied advance from Paris to the Rhine Battle of Messines Operation Hydra funeral Livonian War Battle of Gazala Anglo-Spanish War (1585–1604) Western Front (World War II) Cantabrian Wars Moro conflict Chilean Civil War of 1891 Battle of the Border Battle of Waterloo Operation Cartwheel Georgian-Seljuk wars Neapolitan War Greco-Italian War Gallic War Schmalkaldic War Battle of Donetsk Airport War of the Fourth Coalition Naderian Wars Balkans Campaign Byzantine–Ottoman Wars French campaign in Egypt and Syria Anbar offensive 2014–15 Yemeni coup d'état teaching Islamic Front–Free Syrian Army conflict Battle of Balaclava Spanish invasion of Portugal Yavapai War Siamese revolution of 1688 Byzantine–Bulgarian wars Battle of the Bulge Swedish War of Liberation Rif Dimashq offensive Beaver Wars Nigerian Civil War War of the Pyrenees Brusilov Offensive Arab Revolt (1916–1918) Anbar clashes (2013–2014) German Peasants' War North African Campaign Colombian armed conflict Hundred Days Offensive Japanese tea ceremony Mongol invasion of Rus' Kalmar War Moroccan–Portuguese conflicts exhibition Fourth Crusade Albigensian Crusade War of the Spanish Succession Third Crusade reprisal operations Battle of the Frontiers Second War of Scottish Independence French Wars of Religion War in the Black Sea Hook and Cod wars First Barbary War South German Offensive economic crisis War of the Bucket Gallipoli campaign Monastir Offensive Old Towns and New Needs; also the Town Extension Plan Battle of Warsaw 2012 Tuareg rebellion Italian War of 1551–1559 Iraqi–Kurdish conflict Balkans Campaign Battle of Narva Austro-Prussian War Battles of Rzhev Soviet invasion of Manchuria Glencairn's rising Mongol invasions of Japan Battle of Berlin Warburton Lectures Spring Offensive Battle of Singapore First Crusade Austrian-Hungarian War Finnish War Idlib Governorate clashes Hildesheim Diocesan Feud Thirteen Years' War Burgundian Wars Operation Torch Russo-Turkish War Jōkyū War Ottoman–Persian War competition Kuwait–Nejd Border War Battle of Aizu Dutch–Portuguese War political campaign Battle of the St. Lawrence Battle of the Netherlands Kublai Khan's Campaigns steelmaking Battle of Smolensk Puget Sound War Kashmir conflict Operation Zafar 7 KYOTO Cross Media Experience Battle of Passchendaele Second Crusade Battle of Dien Bien Phu metalwork Israeli–Palestinian conflict Marian civil war battles of Schooneveld Turkish involvement in the Syrian Civil War Battle of Timor Siege of Antwerp Second Fitna First Schleswig War Bishops' Wars Battle for Caen Battle of Kursk Leningrad–Novgorod Offensive Battle of the Alamola Franco-Spanish War (1635–1659) Battle of Belgium Balkan Wars Despenser War Palestinian insurgency in South Lebanon meeting Dano-Swedish War War of the Fifth Coalition Argentine War of Independence radioactivity King William's War Battle of Pusan Perimeter Northern Seven Years' War Liberation Day War of the Pacific Ukrainian crisis Invasion of Portugal
North African Campaign, Second Crusade and Normandy landings are min number of abstract beings and military units a part of
North African Campaign Second Crusade Normandy landings
action argmin
action union
action find_reverse_tuple_counts
relation part of
type event
type abstract being
action find_reverse_tuple_counts
relation part of
type event
type military unit
[[{'concept': 'abstract being'}, {'concept': 'military unit'}], 'part of', {'concept': 'event'}]
SELECT DISTINCT ?v WHERE { { SELECT DISTINCT ( MIN ( ?b ) AS ?o ) { SELECT DISTINCT ?g ( COUNT ( ?w ) AS ?b ) WHERE { VALUES ( ?s ) { ( ontology:military_unit ) ( ontology:abstract_being ) } . ?w rdf:type ?s } GROUP BY ?g } } . { SELECT DISTINCT ?v ( COUNT ( ?f ) AS ?e ) WHERE { { ?v rdf:type ontology:event . ?f rdf:type ontology:abstract_being . ?f property:part_of ?v } UNION { ?v rdf:type ontology:event . ?f rdf:type ontology:military_unit . ?f property:part_of ?v } } GROUP BY ?v } . FILTER ( ?e = ?o ) }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P710
Q1048835 Q3024240
USER
How many political territories or former countries attended that event ?
(Q51654,P710,c(Q1048835)) (Q51654,P710,c(Q3024240)) (Q218678,P710,c(Q1048835)) (Q218678,P710,c(Q3024240)) (Q51654,P710,c(Q1048835)) (Q51654,P710,c(Q3024240)) (Q16470,P710,c(Q1048835)) (Q16470,P710,c(Q3024240))
['Q51654', 'P710', {'concept': 'Q1048835'}] ['Q51654', 'P710', {'concept': 'Q3024240'}] ['Q218678', 'P710', {'concept': 'Q1048835'}] ['Q218678', 'P710', {'concept': 'Q3024240'}] ['Q51654', 'P710', {'concept': 'Q1048835'}] ['Q51654', 'P710', {'concept': 'Q3024240'}] ['Q16470', 'P710', {'concept': 'Q1048835'}] ['Q16470', 'P710', {'concept': 'Q3024240'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q51654 property:P710 ?z } UNION { resource:Q51654 property:P710 ?y } UNION { resource:Q218678 property:P710 ?z } UNION { resource:Q218678 property:P710 ?y } UNION { resource:Q51654 property:P710 ?z } UNION { resource:Q51654 property:P710 ?y } UNION { resource:Q16470 property:P710 ?z } UNION { resource:Q16470 property:P710 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q3024240 }
['Second Crusade', 'participant', {'concept': 'political territorial entity'}] ['Second Crusade', 'participant', {'concept': 'former country'}] ['North African Campaign', 'participant', {'concept': 'political territorial entity'}] ['North African Campaign', 'participant', {'concept': 'former country'}] ['Second Crusade', 'participant', {'concept': 'political territorial entity'}] ['Second Crusade', 'participant', {'concept': 'former country'}] ['Normandy landings', 'participant', {'concept': 'political territorial entity'}] ['Normandy landings', 'participant', {'concept': 'former country'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Second_Crusade property:participant ?z } UNION { resource:Second_Crusade property:participant ?y } UNION { resource:North_African_Campaign property:participant ?z } UNION { resource:North_African_Campaign property:participant ?y } UNION { resource:Second_Crusade property:participant ?z } UNION { resource:Second_Crusade property:participant ?y } UNION { resource:Normandy_landings property:participant ?z } UNION { resource:Normandy_landings property:participant ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:former_country }
[]
political territorial entity former country
Quantitative|Count|Mult. entity type|Clarification
Q218678
SYSTEM
Did you mean North African Campaign ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q51654 property:P710 ?z } UNION { resource:Q51654 property:P710 ?y } UNION { resource:Q218678 property:P710 ?z } UNION { resource:Q218678 property:P710 ?y } UNION { resource:Q51654 property:P710 ?z } UNION { resource:Q51654 property:P710 ?y } UNION { resource:Q16470 property:P710 ?z } UNION { resource:Q16470 property:P710 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q3024240 }
Did you mean North African Campaign ?
North African Campaign
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Second_Crusade property:participant ?z } UNION { resource:Second_Crusade property:participant ?y } UNION { resource:North_African_Campaign property:participant ?z } UNION { resource:North_African_Campaign property:participant ?y } UNION { resource:Second_Crusade property:participant ?z } UNION { resource:Second_Crusade property:participant ?y } UNION { resource:Normandy_landings property:participant ?z } UNION { resource:Normandy_landings property:participant ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:former_country }
[]
Quantitative Reasoning (Count) (All)
USER
No, I meant Second Crusade. Could you tell me the answer for that?
(Q51654,P710,c(Q1048835)) (Q51654,P710,c(Q3024240)) (Q218678,P710,c(Q1048835)) (Q218678,P710,c(Q3024240)) (Q51654,P710,c(Q1048835)) (Q51654,P710,c(Q3024240)) (Q16470,P710,c(Q1048835)) (Q16470,P710,c(Q3024240))
Q51654
['Q51654', 'P710', {'concept': 'Q1048835'}] ['Q51654', 'P710', {'concept': 'Q3024240'}] ['Q218678', 'P710', {'concept': 'Q1048835'}] ['Q218678', 'P710', {'concept': 'Q3024240'}] ['Q51654', 'P710', {'concept': 'Q1048835'}] ['Q51654', 'P710', {'concept': 'Q3024240'}] ['Q16470', 'P710', {'concept': 'Q1048835'}] ['Q16470', 'P710', {'concept': 'Q3024240'}]
['Second Crusade', 'participant', {'concept': 'political territorial entity'}] ['Second Crusade', 'participant', {'concept': 'former country'}] ['North African Campaign', 'participant', {'concept': 'political territorial entity'}] ['North African Campaign', 'participant', {'concept': 'former country'}] ['Second Crusade', 'participant', {'concept': 'political territorial entity'}] ['Second Crusade', 'participant', {'concept': 'former country'}] ['Normandy landings', 'participant', {'concept': 'political territorial entity'}] ['Normandy landings', 'participant', {'concept': 'former country'}]
[]
SYSTEM
4
Q1232887 Q157070 Q35 Q12544
(Q51654,P710,c(Q1048835)) (Q51654,P710,c(Q3024240)) (Q218678,P710,c(Q1048835)) (Q218678,P710,c(Q3024240)) (Q51654,P710,c(Q1048835)) (Q51654,P710,c(Q3024240)) (Q16470,P710,c(Q1048835)) (Q16470,P710,c(Q3024240))
[ANSWER]
['Q51654', 'P710', {'concept': 'Q1048835'}] ['Q51654', 'P710', {'concept': 'Q3024240'}] ['Q218678', 'P710', {'concept': 'Q1048835'}] ['Q218678', 'P710', {'concept': 'Q3024240'}] ['Q51654', 'P710', {'concept': 'Q1048835'}] ['Q51654', 'P710', {'concept': 'Q3024240'}] ['Q16470', 'P710', {'concept': 'Q1048835'}] ['Q16470', 'P710', {'concept': 'Q3024240'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Q51654 property:P710 ?z } UNION { resource:Q51654 property:P710 ?y } UNION { resource:Q218678 property:P710 ?z } UNION { resource:Q218678 property:P710 ?y } UNION { resource:Q51654 property:P710 ?z } UNION { resource:Q51654 property:P710 ?y } UNION { resource:Q16470 property:P710 ?z } UNION { resource:Q16470 property:P710 ?y } } . ?z rdf:type ontology:Q1048835 . ?y rdf:type ontology:Q3024240 }
County of Savoy County of Flanders Denmark Byzantine Empire
4
['Second Crusade', 'participant', {'concept': 'political territorial entity'}] ['Second Crusade', 'participant', {'concept': 'former country'}] ['North African Campaign', 'participant', {'concept': 'political territorial entity'}] ['North African Campaign', 'participant', {'concept': 'former country'}] ['Second Crusade', 'participant', {'concept': 'political territorial entity'}] ['Second Crusade', 'participant', {'concept': 'former country'}] ['Normandy landings', 'participant', {'concept': 'political territorial entity'}] ['Normandy landings', 'participant', {'concept': 'former country'}]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { resource:Second_Crusade property:participant ?z } UNION { resource:Second_Crusade property:participant ?y } UNION { resource:North_African_Campaign property:participant ?z } UNION { resource:North_African_Campaign property:participant ?y } UNION { resource:Second_Crusade property:participant ?z } UNION { resource:Second_Crusade property:participant ?y } UNION { resource:Normandy_landings property:participant ?z } UNION { resource:Normandy_landings property:participant ?y } } . ?z rdf:type ontology:political_territorial_entity . ?y rdf:type ontology:former_country }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q198 Q12737077 Q1190554
USER
Which wars are min number of occupations and events a part of ?
(c(Q12737077)|c(Q1190554),P361,c(Q198))
action argmin
action union
action find_reverse_tuple_counts
relation P361
type Q198
type Q12737077
action find_reverse_tuple_counts
relation P361
type Q198
type Q1190554
[[{'concept': 'Q12737077'}, {'concept': 'Q1190554'}], 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?x ) { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?m ) WHERE { ?z rdf:type ?k . VALUES ( ?k ) { ( ontology:Q12737077 ) ( ontology:Q1190554 ) } } GROUP BY ?q } } . { SELECT DISTINCT ?u ( COUNT ( ?s ) AS ?d ) WHERE { { ?s property:P361 ?u . ?u rdf:type ontology:Q198 . ?s rdf:type ontology:Q12737077 } UNION { ?s property:P361 ?u . ?u rdf:type ontology:Q198 . ?s rdf:type ontology:Q1190554 } } GROUP BY ?u } . FILTER ( ?d = ?x ) }
action argmin
action union
action find_reverse_tuple_counts
relation part of
type war
type occupation
action find_reverse_tuple_counts
relation part of
type war
type event
[[{'concept': 'occupation'}, {'concept': 'event'}], 'part of', {'concept': 'war'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?x ) { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?m ) WHERE { ?z rdf:type ?k . VALUES ( ?k ) { ( ontology:occupation ) ( ontology:event ) } } GROUP BY ?q } } . { SELECT DISTINCT ?u ( COUNT ( ?s ) AS ?d ) WHERE { { ?s property:part_of ?u . ?u rdf:type ontology:war . ?s rdf:type ontology:occupation } UNION { ?s property:part_of ?u . ?u rdf:type ontology:war . ?s rdf:type ontology:event } } GROUP BY ?u } . FILTER ( ?d = ?x ) }
[]
war occupation event
Q18121212 Q15059994 Q1021160
SYSTEM
American-led intervention in Syria, Iran–Israel proxy conflict, Armagnac–Burgundian Civil War
Q795269 Q18121212 Q1021160 Q1758829 Q242352 Q15059994 Q1052332 Q475678 Q18159629
(c(Q12737077)|c(Q1190554),P361,c(Q198))
action argmin
action union
action find_reverse_tuple_counts
relation P361
type Q198
type Q12737077
action find_reverse_tuple_counts
relation P361
type Q198
type Q1190554
[ANSWERS] are min number of occupations and events a part of
[[{'concept': 'Q12737077'}, {'concept': 'Q1190554'}], 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?x ) { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?m ) WHERE { ?z rdf:type ?k . VALUES ( ?k ) { ( ontology:Q12737077 ) ( ontology:Q1190554 ) } } GROUP BY ?q } } . { SELECT DISTINCT ?u ( COUNT ( ?s ) AS ?d ) WHERE { { ?s property:P361 ?u . ?u rdf:type ontology:Q198 . ?s rdf:type ontology:Q12737077 } UNION { ?s property:P361 ?u . ?u rdf:type ontology:Q198 . ?s rdf:type ontology:Q1190554 } } GROUP BY ?u } . FILTER ( ?d = ?x ) }
Sierra Leone Civil War American-led intervention in Syria Armagnac–Burgundian Civil War urban guerrilla warfare Yugoslav Wars Iran–Israel proxy conflict War in Somalia Mexican Drug War American-led intervention in Iraq
American-led intervention in Syria, Iran–Israel proxy conflict and Armagnac–Burgundian Civil War are min number of occupations and events a part of
American-led intervention in Syria Iran–Israel proxy conflict Armagnac–Burgundian Civil War
action argmin
action union
action find_reverse_tuple_counts
relation part of
type war
type occupation
action find_reverse_tuple_counts
relation part of
type war
type event
[[{'concept': 'occupation'}, {'concept': 'event'}], 'part of', {'concept': 'war'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MIN ( ?m ) AS ?x ) { SELECT DISTINCT ?q ( COUNT ( ?z ) AS ?m ) WHERE { ?z rdf:type ?k . VALUES ( ?k ) { ( ontology:occupation ) ( ontology:event ) } } GROUP BY ?q } } . { SELECT DISTINCT ?u ( COUNT ( ?s ) AS ?d ) WHERE { { ?s property:part_of ?u . ?u rdf:type ontology:war . ?s rdf:type ontology:occupation } UNION { ?s property:part_of ?u . ?u rdf:type ontology:war . ?s rdf:type ontology:event } } GROUP BY ?u } . FILTER ( ?d = ?x ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q16470
P710
Q502895
USER
Who attended Normandy landings ?
(Q16470,P710,c(Q502895))
action filter_type
action find
entity Q16470
relation P710
type Q502895
['Q16470', 'P710', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q16470 property:P710 ?z . ?z rdf:type ontology:Q502895 }
Normandy landings
action filter_type
action find
entity Normandy landings
relation participant
type common name
['Normandy landings', 'participant', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Normandy_landings property:participant ?z . ?z rdf:type ontology:common_name }
[]
common name
Q9916 Q334980 Q152025
SYSTEM
Dwight D. Eisenhower, Arthur Tedder, 1st Baron Tedder, Bernard Law Montgomery, 1st Viscount Montgomery of Alamein
Q70527 Q207955 Q152025 Q503384 Q710439 Q334980 Q67682 Q540593 Q62106 Q14060 Q57457 Q9916
(Q16470,P710,c(Q502895))
action filter_type
action find
entity Q16470
relation P710
type Q502895
[ANSWERS]
['Q16470', 'P710', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q16470 property:P710 ?z . ?z rdf:type ontology:Q502895 }
Gerd von Rundstedt Omar Bradley Bernard Law Montgomery, 1st Viscount Montgomery of Alamein Trafford Leigh-Mallory Bertram Ramsay Arthur Tedder, 1st Baron Tedder Wilhelm Falley Miles Dempsey Hans von Salmuth Erwin Rommel Friedrich Dollmann Dwight D. Eisenhower
Dwight D. Eisenhower, Arthur Tedder, 1st Baron Tedder and Bernard Law Montgomery, 1st Viscount Montgomery of Alamein attended Normandy landings
Dwight D. Eisenhower Arthur Tedder, 1st Baron Tedder Bernard Law Montgomery, 1st Viscount Montgomery of Alamein
action filter_type
action find
entity Normandy landings
relation participant
type common name
['Normandy landings', 'participant', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Normandy_landings property:participant ?z . ?z rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q9916 Q334980 Q152025
P710
Q1190554
USER
Which events were those people a participant of ?
(c(Q1190554),P710,Q9916) (c(Q1190554),P710,Q334980) (c(Q1190554),P710,Q152025)
action filter_type
action find_reverse
entity prev_answer
relation P710
type Q1190554
[{'concept': 'Q1190554'}, 'P710', 'Q9916'] [{'concept': 'Q1190554'}, 'P710', 'Q334980'] [{'concept': 'Q1190554'}, 'P710', 'Q152025']
SELECT DISTINCT ?o WHERE { ?o property:P710 ?b . ?o rdf:type ontology:Q1190554 . VALUES ( ?b ) { ( resource:Q70527 ) ( resource:Q207955 ) ( resource:Q152025 ) } }
Dwight D. Eisenhower Arthur Tedder, 1st Baron Tedder Bernard Law Montgomery, 1st Viscount Montgomery of Alamein
action filter_type
action find_reverse
entity prev_answer
relation participant
type event
[{'concept': 'event'}, 'participant', 'Dwight D. Eisenhower'] [{'concept': 'event'}, 'participant', 'Arthur Tedder, 1st Baron Tedder'] [{'concept': 'event'}, 'participant', 'Bernard Law Montgomery, 1st Viscount Montgomery of Alamein']
SELECT DISTINCT ?o WHERE { ?o property:participant ?b . ?o rdf:type ontology:event . VALUES ( ?b ) { ( resource:Gerd_von_Rundstedt ) ( resource:Omar_Bradley ) ( resource:Bernard_Law_Montgomery,_1st_Viscount_Montgomery_of_Alamein ) } }
[]
event
Q218678 Q218678 Q16470
SYSTEM
North African Campaign for 1st, 2nd, Normandy landings for 3rd
Q16470 Q218678 Q16470 Q16470 Q218678
(c(Q1190554),P710,Q9916) (c(Q1190554),P710,Q334980) (c(Q1190554),P710,Q152025)
action filter_type
action find_reverse
entity prev_answer
relation P710
type Q1190554
[ANSWERS]
[{'concept': 'Q1190554'}, 'P710', 'Q9916'] [{'concept': 'Q1190554'}, 'P710', 'Q334980'] [{'concept': 'Q1190554'}, 'P710', 'Q152025']
SELECT DISTINCT ?o WHERE { ?o property:P710 ?b . ?o rdf:type ontology:Q1190554 . VALUES ( ?b ) { ( resource:Q70527 ) ( resource:Q207955 ) ( resource:Q152025 ) } }
Normandy landings North African Campaign Normandy landings Normandy landings North African Campaign
Which events were those people a participant of
North African Campaign North African Campaign Normandy landings
action filter_type
action find_reverse
entity prev_answer
relation participant
type event
[{'concept': 'event'}, 'participant', 'Dwight D. Eisenhower'] [{'concept': 'event'}, 'participant', 'Arthur Tedder, 1st Baron Tedder'] [{'concept': 'event'}, 'participant', 'Bernard Law Montgomery, 1st Viscount Montgomery of Alamein']
SELECT DISTINCT ?o WHERE { ?o property:participant ?b . ?o rdf:type ontology:event . VALUES ( ?b ) { ( resource:Gerd_von_Rundstedt ) ( resource:Omar_Bradley ) ( resource:Bernard_Law_Montgomery,_1st_Viscount_Montgomery_of_Alamein ) } }
[]