Simple Question (Direct)
Simple Question
Q1362004
P607
Q350604
USER
Which battle did Peter Schoomaker take part in ?
(Q1362004,P607,c(Q350604))
action filter_type
action find
entity Q1362004
relation P607
type Q350604
['Q1362004', 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?v WHERE { resource:Q1362004 property:P607 ?v . ?v rdf:type ontology:Q350604 }
Peter Schoomaker
action filter_type
action find
entity Peter Schoomaker
relation conflict
type armed conflict
['Peter Schoomaker', 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?v WHERE { resource:Peter_Schoomaker property:conflict ?v . ?v rdf:type ontology:armed_conflict }
[]
armed conflict
Q37643
SYSTEM
Gulf War
Q37643
(Q1362004,P607,c(Q350604))
action filter_type
action find
entity Q1362004
relation P607
type Q350604
Peter Schoomaker took part in [ANSWER]
['Q1362004', 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?v WHERE { resource:Q1362004 property:P607 ?v . ?v rdf:type ontology:Q350604 }
Gulf War
Peter Schoomaker took part in Gulf War
Gulf War
action filter_type
action find
entity Peter Schoomaker
relation conflict
type armed conflict
['Peter Schoomaker', 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?v WHERE { resource:Peter_Schoomaker property:conflict ?v . ?v rdf:type ontology:armed_conflict }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1362004
P410
Q4189293
USER
What is the title conferred upon Peter Schoomaker ?
(Q1362004,P410,c(Q4189293))
action filter_type
action find
entity Q1362004
relation P410
type Q4189293
['Q1362004', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?p WHERE { resource:Q1362004 property:P410 ?p . ?p rdf:type ontology:Q4189293 }
Peter Schoomaker
action filter_type
action find
entity Peter Schoomaker
relation military rank
type title
['Peter Schoomaker', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?p WHERE { resource:Peter_Schoomaker property:military_rank ?p . ?p rdf:type ontology:title }
[]
title
Q2608441
SYSTEM
general
Q2608441
(Q1362004,P410,c(Q4189293))
action filter_type
action find
entity Q1362004
relation P410
type Q4189293
The title conferred upon Peter Schoomaker is a [ANSWER]
['Q1362004', 'P410', {'concept': 'Q4189293'}]
SELECT DISTINCT ?p WHERE { resource:Q1362004 property:P410 ?p . ?p rdf:type ontology:Q4189293 }
general
The title conferred upon Peter Schoomaker is a general
general
action filter_type
action find
entity Peter Schoomaker
relation military rank
type title
['Peter Schoomaker', 'military rank', {'concept': 'title'}]
SELECT DISTINCT ?p WHERE { resource:Peter_Schoomaker property:military_rank ?p . ?p rdf:type ontology:title }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P361
Q1190554 Q350604
USER
Which events are min number of armed conflicts a component of ?
(c(Q350604),P361,Q3402214)
action argmin
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q350604
[{'concept': 'Q350604'}, 'P361', 'Q3402214']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?d ) AS ?c ) { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:P361 ?o . ?o rdf:type ontology:Q1190554 . ?k rdf:type ontology:Q350604 } GROUP BY ?o } } . { SELECT DISTINCT ?r ( COUNT ( ?h ) AS ?t ) WHERE { ?h property:P361 ?r . ?r rdf:type ontology:Q1190554 . ?h rdf:type ontology:Q350604 } GROUP BY ?r } . FILTER ( ?t = ?c ) }
action argmin
action find_reverse_tuple_counts
relation part of
type event
type armed conflict
[{'concept': 'armed conflict'}, 'part of', 'Invasion of Portugal']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?d ) AS ?c ) { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:part_of ?o . ?o rdf:type ontology:event . ?k rdf:type ontology:armed_conflict } GROUP BY ?o } } . { SELECT DISTINCT ?r ( COUNT ( ?h ) AS ?t ) WHERE { ?h property:part_of ?r . ?r rdf:type ontology:event . ?h rdf:type ontology:armed_conflict } GROUP BY ?r } . FILTER ( ?t = ?c ) }
[]
event armed conflict
Q218678 Q51654 Q16470
SYSTEM
North African Campaign, Second Crusade, Normandy landings
Q87138 Q11347454 Q19364861 Q15726688 Q5887669 Q152218 Q716562 Q1458235 Q11663 Q576338 Q287942 Q15833607 Q1245157 Q4709161 Q1093550 Q869045 Q7573442 Q3445341 Q696844 Q49092 Q5685042 Q842774 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 Q109251 Q5916 Q492126 Q195983 Q16471 Q16470 Q697022 Q737542 Q2408799 Q638608 Q385378 Q4978527 Q4513932 Q4141642 Q217145 Q1765465 Q51661 Q51660 Q392213 Q21030182 Q4743407 Q46857 Q151290 Q1154050 Q151340 Q15013125 Q212658 Q18639147 Q517578 Q830059 Q374814 Q870196 Q523154 Q1136575 Q16146546 Q629965 Q20857240 Q1151913 Q952881 Q21482801 Q814235 Q482456 Q174205 Q189508 Q1417059 Q646322 Q572291 Q1647768 Q743776 Q19429010 Q138107 Q83055 Q2946372 Q254106 Q7860 Q210714 Q8016240 Q477973 Q916495 Q582584 Q1756029 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 Q630259 Q253684 Q19864219 Q18145759 Q28545 Q15303938 Q640100 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 Q27653685 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 Q6133239 Q17189951 Q426227 Q51654 Q604897 Q953045 Q21083298 Q6762017 Q27145365 Q18208094 Q1440764 Q426099 Q3769089 Q685683 Q807843 Q696823 Q130861 Q692065 Q235344 Q617333 Q697625 Q3778609 Q7127419 Q2761147 Q417744 Q684324 Q617409 Q11448 Q1070342 Q482979 Q158677 Q10862448 Q152004 Q3402214
(c(Q350604),P361,Q3402214)
action argmin
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q350604
[ANSWERS] are min number of armed conflicts a component of
[{'concept': 'Q350604'}, 'P361', 'Q3402214']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?d ) AS ?c ) { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:P361 ?o . ?o rdf:type ontology:Q1190554 . ?k rdf:type ontology:Q350604 } GROUP BY ?o } } . { SELECT DISTINCT ?r ( COUNT ( ?h ) AS ?t ) WHERE { ?h property:P361 ?r . ?r rdf:type ontology:Q1190554 . ?h rdf:type ontology:Q350604 } GROUP BY ?r } . FILTER ( ?t = ?c ) }
Greco-Turkish War Neapolitan campaigns of Louis the Great Internal conflict in Bangladesh Esperanto meeting Nicaraguan civil war Nine Years' War Battle of Hakodate 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 Polish–Ukrainian 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 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 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 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 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 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 Byzantine–Ottoman Wars French campaign in Egypt and Syria Anbar offensive 2014–15 Yemeni coup d'état teaching Islamic Front–Free Syrian Army conflict Battles of the Bruch 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 War in the Black Sea 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 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 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 Invasion of Portugal
North African Campaign, Second Crusade and Normandy landings are min number of armed conflicts a component of
North African Campaign Second Crusade Normandy landings
action argmin
action find_reverse_tuple_counts
relation part of
type event
type armed conflict
[{'concept': 'armed conflict'}, 'part of', 'Invasion of Portugal']
SELECT DISTINCT ?r WHERE { { SELECT DISTINCT ( MIN ( ?d ) AS ?c ) { SELECT DISTINCT ?o ( COUNT ( ?k ) AS ?d ) WHERE { ?k property:part_of ?o . ?o rdf:type ontology:event . ?k rdf:type ontology:armed_conflict } GROUP BY ?o } } . { SELECT DISTINCT ?r ( COUNT ( ?h ) AS ?t ) WHERE { ?h property:part_of ?r . ?r rdf:type ontology:event . ?h rdf:type ontology:armed_conflict } GROUP BY ?r } . FILTER ( ?t = ?c ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q51654
P710
Q7275
USER
Which states were participants of that event ?
(Q51654,P710,c(Q7275))
action filter_type
action find
entity Q51654
relation P710
type Q7275
['Q51654', 'P710', {'concept': 'Q7275'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q7275 . resource:Q51654 property:P710 ?j }
Second Crusade
action filter_type
action find
entity Second Crusade
relation participant
type state
['Second Crusade', 'participant', {'concept': 'state'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:state . resource:Second_Crusade property:participant ?j }
[]
state
Clarification for simple ques.
Q218678
SYSTEM
Did you mean North African Campaign ?
Q218678 Q51654 Q16470
(Q218678,P710,c(Q7275)) (Q51654,P710,c(Q7275)) (Q16470,P710,c(Q7275))
[ANSWER]
['Q218678', 'P710', {'concept': 'Q7275'}] ['Q51654', 'P710', {'concept': 'Q7275'}] ['Q16470', 'P710', {'concept': 'Q7275'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q7275 . resource:Q51654 property:P710 ?j }
North African Campaign Second Crusade Normandy landings
Did you mean North African Campaign ?
North African Campaign
['North African Campaign', 'participant', {'concept': 'state'}] ['Second Crusade', 'participant', {'concept': 'state'}] ['Normandy landings', 'participant', {'concept': 'state'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:state . resource:Second_Crusade property:participant ?j }
[]
Simple Question (Coreferenced)
USER
No, I meant Second Crusade. Could you tell me the answer for that?
(Q51654,P710,c(Q7275))
Q51654
['Q51654', 'P710', {'concept': 'Q7275'}]
['Second Crusade', 'participant', {'concept': 'state'}]
[]
Q188586 Q170174 Q179876
SYSTEM
Kingdom of Sicily, Papal States, Kingdom of England
Q577867 Q55502 Q45670 Q975405 Q842091 Q170174 Q188586 Q12548 Q175276 Q189545 Q6563843 Q174306 Q2162698 Q235030 Q179876
(Q51654,P710,c(Q7275))
action filter_type
action find
entity Q51654
relation P710
type Q7275
[ANSWERS] were participants of that event
['Q51654', 'P710', {'concept': 'Q7275'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:Q7275 . resource:Q51654 property:P710 ?j }
Kingdom of Poland Kingdom of Jerusalem Kingdom of Portugal Sultanate of Rum Duchy of Normandy Papal States Kingdom of Sicily Holy Roman Empire Kingdom of León Zengid dynasty Nizari Ismaili state Republic of Genoa Duchy of Bohemia Principality of Antioch Kingdom of England
Kingdom of Sicily, Papal States and Kingdom of England were participants of that event
Kingdom of Sicily Papal States Kingdom of England
action filter_type
action find
entity Second Crusade
relation participant
type state
['Second Crusade', 'participant', {'concept': 'state'}]
SELECT DISTINCT ?j WHERE { ?j rdf:type ontology:state . resource:Second_Crusade property:participant ?j }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q188586 Q170174 Q179876
P20
Q502895
USER
Who died in Kingdom of Sicily, Papal States and Kingdom of England ?
(c(Q502895),P20,Q188586) (c(Q502895),P20,Q170174) (c(Q502895),P20,Q179876)
action union
action filter_type
action find_reverse
entity Q188586
relation P20
type Q502895
action filter_type
action find_reverse
entity Q170174
relation P20
type Q502895
action filter_type
action find_reverse
entity Q179876
relation P20
type Q502895
[{'concept': 'Q502895'}, 'P20', 'Q188586'] [{'concept': 'Q502895'}, 'P20', 'Q170174'] [{'concept': 'Q502895'}, 'P20', 'Q179876']
SELECT DISTINCT ?p WHERE { { ?p property:P20 resource:Q188586 . ?p rdf:type ontology:Q502895 } UNION { ?p property:P20 resource:Q170174 . ?p rdf:type ontology:Q502895 } }
Kingdom of Sicily Papal States Kingdom of England
action union
action filter_type
action find_reverse
entity Kingdom of Sicily
relation place of death
type common name
action filter_type
action find_reverse
entity Papal States
relation place of death
type common name
action filter_type
action find_reverse
entity Kingdom of England
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Kingdom of Sicily'] [{'concept': 'common name'}, 'place of death', 'Papal States'] [{'concept': 'common name'}, 'place of death', 'Kingdom of England']
SELECT DISTINCT ?p WHERE { { ?p property:place_of_death resource:Kingdom_of_Sicily . ?p rdf:type ontology:common_name } UNION { ?p property:place_of_death resource:Papal_States . ?p rdf:type ontology:common_name } }
[]
common name
Q242640 Q654278 Q1385235
SYSTEM
Margaret Cavendish, Duchess of Newcastle-upon-Tyne, Dafydd ab Owain Gwynedd, Giambattista Orsini
Q2891442 Q1385235 Q4228446 Q5888256 Q2305179 Q242640 Q654278 Q954735 Q2068895
(c(Q502895),P20,Q188586) (c(Q502895),P20,Q170174) (c(Q502895),P20,Q179876)
action union
action filter_type
action find_reverse
entity Q188586
relation P20
type Q502895
action filter_type
action find_reverse
entity Q170174
relation P20
type Q502895
action filter_type
action find_reverse
entity Q179876
relation P20
type Q502895
[ANSWERS] died in Kingdom of Sicily, Papal States and Kingdom of England
[{'concept': 'Q502895'}, 'P20', 'Q188586'] [{'concept': 'Q502895'}, 'P20', 'Q170174'] [{'concept': 'Q502895'}, 'P20', 'Q179876']
SELECT DISTINCT ?p WHERE { { ?p property:P20 resource:Q188586 . ?p rdf:type ontology:Q502895 } UNION { ?p property:P20 resource:Q170174 . ?p rdf:type ontology:Q502895 } }
Antonio Pimentel Giambattista Orsini Lorenzo Onofrio Colonnà John of Gloucester Richard Hathwaye Margaret Cavendish, Duchess of Newcastle-upon-Tyne Dafydd ab Owain Gwynedd Samuel Daniel Henry Chettle
Margaret Cavendish, Duchess of Newcastle-upon-Tyne, Dafydd ab Owain Gwynedd and Giambattista Orsini died in Kingdom of Sicily, Papal States and Kingdom of England
Margaret Cavendish, Duchess of Newcastle-upon-Tyne Dafydd ab Owain Gwynedd Giambattista Orsini
action union
action filter_type
action find_reverse
entity Kingdom of Sicily
relation place of death
type common name
action filter_type
action find_reverse
entity Papal States
relation place of death
type common name
action filter_type
action find_reverse
entity Kingdom of England
relation place of death
type common name
[{'concept': 'common name'}, 'place of death', 'Kingdom of Sicily'] [{'concept': 'common name'}, 'place of death', 'Papal States'] [{'concept': 'common name'}, 'place of death', 'Kingdom of England']
SELECT DISTINCT ?p WHERE { { ?p property:place_of_death resource:Kingdom_of_Sicily . ?p rdf:type ontology:common_name } UNION { ?p property:place_of_death resource:Papal_States . ?p rdf:type ontology:common_name } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q242640 Q654278 Q1385235
P21
Q290
USER
Which sexes do Margaret Cavendish, Duchess of Newcastle-upon-Tyne, Dafydd ab Owain Gwynedd and Giambattista Orsini have ?
(Q242640,P21,c(Q290)) (Q654278,P21,c(Q290)) (Q1385235,P21,c(Q290))
action union
action filter_type
action find
entity Q242640
relation P21
type Q290
action filter_type
action find
entity Q654278
relation P21
type Q290
action filter_type
action find
entity Q1385235
relation P21
type Q290
['Q242640', 'P21', {'concept': 'Q290'}] ['Q654278', 'P21', {'concept': 'Q290'}] ['Q1385235', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { { resource:Q242640 property:P21 ?h . ?h rdf:type ontology:Q290 } UNION { ?h rdf:type ontology:Q290 . resource:Q654278 property:P21 ?h } }
Margaret Cavendish, Duchess of Newcastle-upon-Tyne Dafydd ab Owain Gwynedd Giambattista Orsini
action union
action filter_type
action find
entity Margaret Cavendish, Duchess of Newcastle-upon-Tyne
relation gender
type sex
action filter_type
action find
entity Dafydd ab Owain Gwynedd
relation gender
type sex
action filter_type
action find
entity Giambattista Orsini
relation gender
type sex
['Margaret Cavendish, Duchess of Newcastle-upon-Tyne', 'gender', {'concept': 'sex'}] ['Dafydd ab Owain Gwynedd', 'gender', {'concept': 'sex'}] ['Giambattista Orsini', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { { resource:Margaret_Cavendish,_Duchess_of_Newcastle-upon-Tyne property:gender ?h . ?h rdf:type ontology:sex } UNION { ?h rdf:type ontology:sex . resource:Dafydd_ab_Owain_Gwynedd property:gender ?h } }
[]
sex
Q6581072 Q6581097 Q6581097
SYSTEM
male for 2nd, 3rd, female for 1st
Q6581072 Q6581097 Q6581097
(Q242640,P21,c(Q290)) (Q654278,P21,c(Q290)) (Q1385235,P21,c(Q290))
action union
action filter_type
action find
entity Q242640
relation P21
type Q290
action filter_type
action find
entity Q654278
relation P21
type Q290
action filter_type
action find
entity Q1385235
relation P21
type Q290
[ANSWERS]
['Q242640', 'P21', {'concept': 'Q290'}] ['Q654278', 'P21', {'concept': 'Q290'}] ['Q1385235', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?h WHERE { { resource:Q242640 property:P21 ?h . ?h rdf:type ontology:Q290 } UNION { ?h rdf:type ontology:Q290 . resource:Q654278 property:P21 ?h } }
female male male
Margaret Cavendish , Duchess of Newcastle-upon-Tyne , Dafydd ab Owain Gwynedd and Giambattista Orsini have been female, male and male
female male male
action union
action filter_type
action find
entity Margaret Cavendish, Duchess of Newcastle-upon-Tyne
relation gender
type sex
action filter_type
action find
entity Dafydd ab Owain Gwynedd
relation gender
type sex
action filter_type
action find
entity Giambattista Orsini
relation gender
type sex
['Margaret Cavendish, Duchess of Newcastle-upon-Tyne', 'gender', {'concept': 'sex'}] ['Dafydd ab Owain Gwynedd', 'gender', {'concept': 'sex'}] ['Giambattista Orsini', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?h WHERE { { resource:Margaret_Cavendish,_Duchess_of_Newcastle-upon-Tyne property:gender ?h . ?h rdf:type ontology:sex } UNION { ?h rdf:type ontology:sex . resource:Dafydd_ab_Owain_Gwynedd property:gender ?h } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q242640
P1038
Q502895
USER
Who is a kin of that one ?
(c(Q502895),P1038,Q242640)
action filter_type
action find_reverse
entity Q242640
relation P1038
type Q502895
[{'concept': 'Q502895'}, 'P1038', 'Q242640']
SELECT DISTINCT ?d WHERE { ?d property:P1038 resource:Q242640 . ?d rdf:type ontology:Q502895 }
Margaret Cavendish, Duchess of Newcastle-upon-Tyne
action filter_type
action find_reverse
entity Margaret Cavendish, Duchess of Newcastle-upon-Tyne
relation relative
type common name
[{'concept': 'common name'}, 'relative', 'Margaret Cavendish, Duchess of Newcastle-upon-Tyne']
SELECT DISTINCT ?d WHERE { ?d property:relative resource:Margaret_Cavendish,_Duchess_of_Newcastle-upon-Tyne . ?d rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q242640
SYSTEM
Did you mean Margaret Cavendish, Duchess of Newcastle-upon-Tyne ?
Q6581072 Q6581097 Q6581097
(c(Q502895),P1038,Q6581072) (c(Q502895),P1038,Q6581097) (c(Q502895),P1038,Q6581097)
[ANSWER]
[{'concept': 'Q502895'}, 'P1038', 'Q6581072'] [{'concept': 'Q502895'}, 'P1038', 'Q6581097'] [{'concept': 'Q502895'}, 'P1038', 'Q6581097']
SELECT DISTINCT ?d WHERE { ?d property:P1038 resource:Q242640 . ?d rdf:type ontology:Q502895 }
female male male
Did you mean Margaret Cavendish, Duchess of Newcastle-upon-Tyne ?
Margaret Cavendish, Duchess of Newcastle-upon-Tyne
[{'concept': 'common name'}, 'relative', 'female'] [{'concept': 'common name'}, 'relative', 'male'] [{'concept': 'common name'}, 'relative', 'male']
SELECT DISTINCT ?d WHERE { ?d property:relative resource:Margaret_Cavendish,_Duchess_of_Newcastle-upon-Tyne . ?d rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P1038,Q242640)
[{'concept': 'Q502895'}, 'P1038', 'Q242640']
[{'concept': 'common name'}, 'relative', 'Margaret Cavendish, Duchess of Newcastle-upon-Tyne']
[]
Q6151235
SYSTEM
Jane Cavendish
Q6151235
(c(Q502895),P1038,Q242640)
action filter_type
action find_reverse
entity Q242640
relation P1038
type Q502895
A kin of that one is Lady [ANSWER]
[{'concept': 'Q502895'}, 'P1038', 'Q242640']
SELECT DISTINCT ?d WHERE { ?d property:P1038 resource:Q242640 . ?d rdf:type ontology:Q502895 }
Jane Cavendish
A kin of that one is Lady Jane Cavendish
Jane Cavendish
action filter_type
action find_reverse
entity Margaret Cavendish, Duchess of Newcastle-upon-Tyne
relation relative
type common name
[{'concept': 'common name'}, 'relative', 'Margaret Cavendish, Duchess of Newcastle-upon-Tyne']
SELECT DISTINCT ?d WHERE { ?d property:relative resource:Margaret_Cavendish,_Duchess_of_Newcastle-upon-Tyne . ?d rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q6151235
P26 P21
Q502895
USER
Which people are the life partner of Jane Cavendish and are a male ?
AND((c(Q502895),P26,Q6151235), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q6151235
relation P26
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P26', 'Q6151235'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?g WHERE { ?g property:P26 resource:Q6151235 . ?g property:P21 resource:Q6581097 . ?g rdf:type ontology:Q502895 }
male Jane Cavendish
action filter_type
action intersection
action find_reverse
entity Jane Cavendish
relation spouse
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'spouse', 'Jane Cavendish'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?g WHERE { ?g property:spouse resource:Jane_Cavendish . ?g property:gender resource:male . ?g rdf:type ontology:common_name }
[]
common name
Q5076225
SYSTEM
Charles Cheyne, 1st Viscount Newhaven
Q5076225
AND((c(Q502895),P26,Q6151235), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q6151235
relation P26
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] is the life partner of Jane Cavendish and is a male
{'AND': [[{'concept': 'Q502895'}, 'P26', 'Q6151235'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?g WHERE { ?g property:P26 resource:Q6151235 . ?g property:P21 resource:Q6581097 . ?g rdf:type ontology:Q502895 }
Charles Cheyne, 1st Viscount Newhaven
Charles Cheyne, 1st Viscount Newhaven is the life partner of Jane Cavendish and is a male
Charles Cheyne, 1st Viscount Newhaven
action filter_type
action intersection
action find_reverse
entity Jane Cavendish
relation spouse
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'spouse', 'Jane Cavendish'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?g WHERE { ?g property:spouse resource:Jane_Cavendish . ?g property:gender resource:male . ?g rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q6273860 Q242640
P106
Q12737077
USER
Which occupations do Margaret Cavendish, Duchess of Newcastle-upon-Tyne and Jonathan Mayhew do for a living ?
AND((Q242640,P106,c(Q12737077)), (Q6273860,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q242640
relation P106
action find
entity Q6273860
relation P106
type Q12737077
{'AND': [['Q242640', 'P106', {'concept': 'Q12737077'}], ['Q6273860', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?v WHERE { resource:Q242640 property:P106 ?v . resource:Q6273860 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
Jonathan Mayhew Margaret Cavendish, Duchess of Newcastle-upon-Tyne
action filter_type
action intersection
action find
entity Margaret Cavendish, Duchess of Newcastle-upon-Tyne
relation occupation
action find
entity Jonathan Mayhew
relation occupation
type occupation
{'AND': [['Margaret Cavendish, Duchess of Newcastle-upon-Tyne', 'occupation', {'concept': 'occupation'}], ['Jonathan Mayhew', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?v WHERE { resource:Margaret_Cavendish,_Duchess_of_Newcastle-upon-Tyne property:occupation ?v . resource:Jonathan_Mayhew property:occupation ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q36180
SYSTEM
writer
Q36180
AND((Q242640,P106,c(Q12737077)), (Q6273860,P106,c(Q12737077)))
action filter_type
action intersection
action find
entity Q242640
relation P106
action find
entity Q6273860
relation P106
type Q12737077
Margaret Cavendish , Duchess of Newcastle-upon-Tyne and Jonathan Mayhew do for a living as [ANSWER]
{'AND': [['Q242640', 'P106', {'concept': 'Q12737077'}], ['Q6273860', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?v WHERE { resource:Q242640 property:P106 ?v . resource:Q6273860 property:P106 ?v . ?v rdf:type ontology:Q12737077 }
writer
Margaret Cavendish , Duchess of Newcastle-upon-Tyne and Jonathan Mayhew do for a living as writer
writer
action filter_type
action intersection
action find
entity Margaret Cavendish, Duchess of Newcastle-upon-Tyne
relation occupation
action find
entity Jonathan Mayhew
relation occupation
type occupation
{'AND': [['Margaret Cavendish, Duchess of Newcastle-upon-Tyne', 'occupation', {'concept': 'occupation'}], ['Jonathan Mayhew', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?v WHERE { resource:Margaret_Cavendish,_Duchess_of_Newcastle-upon-Tyne property:occupation ?v . resource:Jonathan_Mayhew property:occupation ?v . ?v rdf:type ontology:occupation }
[]