Simple Question (Direct)
Simple Question
Q2027014
P21
Q290
USER
Which sex does Dzhabrail Yamadayev belong to ?
(Q2027014,P21,c(Q290))
action filter_type
action find
entity Q2027014
relation P21
type Q290
['Q2027014', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q2027014 property:P21 ?z . ?z rdf:type ontology:Q290 }
Dzhabrail Yamadayev
action filter_type
action find
entity Dzhabrail Yamadayev
relation gender
type sex
['Dzhabrail Yamadayev', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Dzhabrail_Yamadayev property:gender ?z . ?z rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2027014,P21,c(Q290))
action filter_type
action find
entity Q2027014
relation P21
type Q290
Dzhabrail Yamadayev belongs to [ANSWER]
['Q2027014', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?z WHERE { resource:Q2027014 property:P21 ?z . ?z rdf:type ontology:Q290 }
male
Dzhabrail Yamadayev belongs to male
male
action filter_type
action find
entity Dzhabrail Yamadayev
relation gender
type sex
['Dzhabrail Yamadayev', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?z WHERE { resource:Dzhabrail_Yamadayev property:gender ?z . ?z rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2027014
P607
Q350604
USER
What wars was Dzhabrail Yamadayev a part of ?
(Q2027014,P607,c(Q350604))
action filter_type
action find
entity Q2027014
relation P607
type Q350604
['Q2027014', 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?y WHERE { resource:Q2027014 property:P607 ?y . ?y rdf:type ontology:Q350604 }
Dzhabrail Yamadayev
action filter_type
action find
entity Dzhabrail Yamadayev
relation conflict
type armed conflict
['Dzhabrail Yamadayev', 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?y WHERE { resource:Dzhabrail_Yamadayev property:conflict ?y . ?y rdf:type ontology:armed_conflict }
[]
armed conflict
Q29269 Q120843
SYSTEM
First Chechen War, Second Chechen War
Q29269 Q120843
(Q2027014,P607,c(Q350604))
action filter_type
action find
entity Q2027014
relation P607
type Q350604
Dzhabrail Yamadayev was the [ANSWERS]
['Q2027014', 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?y WHERE { resource:Q2027014 property:P607 ?y . ?y rdf:type ontology:Q350604 }
First Chechen War Second Chechen War
Dzhabrail Yamadayev was the First Chechen War and Second Chechen War
First Chechen War Second Chechen War
action filter_type
action find
entity Dzhabrail Yamadayev
relation conflict
type armed conflict
['Dzhabrail Yamadayev', 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?y WHERE { resource:Dzhabrail_Yamadayev property:conflict ?y . ?y rdf:type ontology:armed_conflict }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q221711
Q350604
USER
And how about Steyr AUG?
(Q221711,P607,c(Q350604))
action filter_type
action find
entity Q221711
relation P607
type Q350604
['Q221711', 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?g WHERE { resource:Q221711 property:P607 ?g . ?g rdf:type ontology:Q350604 }
Steyr AUG
action filter_type
action find
entity Steyr AUG
relation conflict
type armed conflict
['Steyr AUG', 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?g WHERE { resource:Steyr_AUG property:conflict ?g . ?g rdf:type ontology:armed_conflict }
[]
armed conflict
Q182865
SYSTEM
War in Afghanistan
Q182865
(Q221711,P607,c(Q350604))
action filter_type
action find
entity Q221711
relation P607
type Q350604
[ANSWER]
['Q221711', 'P607', {'concept': 'Q350604'}]
SELECT DISTINCT ?g WHERE { resource:Q221711 property:P607 ?g . ?g rdf:type ontology:Q350604 }
War in Afghanistan
War in Afghanistan
action filter_type
action find
entity Steyr AUG
relation conflict
type armed conflict
['Steyr AUG', 'conflict', {'concept': 'armed conflict'}]
SELECT DISTINCT ?g WHERE { resource:Steyr_AUG property:conflict ?g . ?g rdf:type ontology:armed_conflict }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q350604 Q178561 Q180684
USER
How many armed conflicts are atmost 14 battles or conflicts a part of ?
(c(Q178561)|c(Q180684),P361,c(Q350604))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P361
type Q350604
type Q178561
action find_reverse_tuple_counts
relation P361
type Q350604
type Q180684
value 14
[[{'concept': 'Q178561'}, {'concept': 'Q180684'}], 'P361', {'concept': 'Q350604'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?a ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?c ) WHERE { { ?j property:P361 ?h . ?h rdf:type ontology:Q350604 . ?j rdf:type ontology:Q178561 } UNION { ?j property:P361 ?h . ?h rdf:type ontology:Q350604 . ?j rdf:type ontology:Q180684 } } GROUP BY ?h } . FILTER ( ?c <= 14 ) }
action count
action atmost
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 conflict
value 14
[[{'concept': 'battle'}, {'concept': 'conflict'}], 'part of', {'concept': 'armed conflict'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?a ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?c ) WHERE { { ?j property:part_of ?h . ?h rdf:type ontology:armed_conflict . ?j rdf:type ontology:battle } UNION { ?j property:part_of ?h . ?h rdf:type ontology:armed_conflict . ?j rdf:type ontology:conflict } } GROUP BY ?h } . FILTER ( ?c <= 14 ) }
[]
armed conflict battle conflict
SYSTEM
251
Q8077397 Q1044829 Q184425 Q1186260 Q1519107 Q184183 Q698281 Q196409 Q619749 Q1153331 Q879980 Q68969 Q1552718 Q8663 Q17272643 Q2912306 Q699511 Q3540197 Q6334 Q94916 Q381375 Q748780 Q430053 Q20747555 Q179275 Q1187249 Q807741 Q699602 Q75626 Q18920712 Q657055 Q643987 Q768496 Q1132393 Q2338771 Q620735 Q7572892 Q75665 Q1474893 Q558423 Q2632175 Q651008 Q3104848 Q233507 Q15353665 Q4122570 Q1080711 Q260684 Q129864 Q2444955 Q223126 Q203824 Q122100 Q777345 Q1348630 Q609836 Q134949 Q327150 Q759988 Q1456086 Q3119188 Q369291 Q1676845 Q636365 Q2060306 Q74623 Q317519 Q33143 Q550172 Q698985 Q655480 Q8740 Q181533 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 Q1074467 Q8064768 Q690361 Q6286 Q2320981 Q1851858 Q1014253 Q178687 Q4200795 Q2342102 Q179077 Q14947002 Q1355145 Q1073446 Q329203 Q786171 Q166001 Q3902588 Q12583 Q17324420 Q596373 Q2599340 Q76026 Q322607 Q321780 Q3042463 Q923852 Q2320020 Q273348 Q2326066 Q486831 Q49077 Q258679 Q2487 Q233601 Q1187448 Q1361354 Q3651696 Q31944 Q1640586 Q154981 Q2915203 Q2992403 Q6271 Q426201 Q123070 Q208261 Q76118 Q185729 Q1949299 Q159950 Q696389 Q179250 Q12055176 Q3118990 Q1237867 Q849680 Q3621718 Q568387 Q37643 Q82664 Q29242 Q60489 Q510588 Q3242848 Q598774 Q190029 Q7813573 Q16335075 Q631163 Q3119132 Q189266 Q438252 Q19686631 Q58947 Q80330 Q989115 Q68478 Q79791 Q48249 Q623171 Q2697981 Q870077 Q617827 Q1330607 Q418151 Q32929 Q1139887 Q26013 Q478301 Q83085 Q154697 Q431806 Q228911 Q2985977 Q8628 Q2665664 Q1479636 Q617321 Q1455917 Q1235331 Q74298 Q1780850 Q15053704 Q12551 Q182865 Q1429256 Q127751 Q120843 Q16911838 Q16362506 Q42937 Q151616 Q644589 Q309184 Q3042457 Q164432 Q168442 Q165136 Q937255 Q1567698 Q74109 Q49103 Q524189 Q2577772 Q177918 Q29269 Q2326099 Q26749 Q288251 Q3119015 Q282135 Q553157 Q706183 Q1501724 Q2991800 Q1069736 Q742813 Q924600 Q215112 Q759998 Q277392 Q2487361 Q49100 Q15542964 Q151622 Q49104
(c(Q178561)|c(Q180684),P361,c(Q350604))
action count
action atmost
action union
action find_reverse_tuple_counts
relation P361
type Q350604
type Q178561
action find_reverse_tuple_counts
relation P361
type Q350604
type Q180684
value 14
[ANSWER]
[[{'concept': 'Q178561'}, {'concept': 'Q180684'}], 'P361', {'concept': 'Q350604'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?a ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?c ) WHERE { { ?j property:P361 ?h . ?h rdf:type ontology:Q350604 . ?j rdf:type ontology:Q178561 } UNION { ?j property:P361 ?h . ?h rdf:type ontology:Q350604 . ?j rdf:type ontology:Q180684 } } GROUP BY ?h } . FILTER ( ?c <= 14 ) }
Æthelwold's Revolt Polish–Muscovite War Pacific War Creek War War in Afghanistan Second Balkan War Italian War of 1521–1526 Livonian Crusade Kurdish–Turkish conflict Ottoman–Venetian War Black Hawk War Croatian War of Independence Granada War Korean War spillover of the Syrian Civil War Wars of the Diadochi Campaigns of 1796 in the French Revolutionary Wars Third English Civil War Third Punic 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 Spain in the American Revolutionary 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 War of Knives Ottoman–Hungarian Wars Alexander's Balkan campaign Indian Rebellion of 1857 Rhodesian Bush War Chaco War Italo-Turkish War Continuation War Mad War Ridda wars Portuguese Colonial War Winter War Byzantine–Norman wars Zanj Rebellion Nez Perce War Fernandine Wars Anglo-Spanish War (1654–1660) Boer Wa War of the League of Cambrai Red Cloud's War Great Turkish War Muslim conquest of Egypt Seven Years' War War of the Breton Succession Ottoman wars in Europe Quasi-War Vietnam War Bosnian War 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 War of Chioggia Zaian War Long War First Punic 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 Ottoman–Habsburg wars Scanian War Little War in Hungary Spanish–American War 2014 Israel–Gaza conflict Pyrrhic War War of the Sicilian Vespers 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 Thirty Years' War Second Carnatic War Zenkunen War Nine Years' War Anglo-French War Mahdist War Anglo-Scottish Wars Second Schleswig War Ethiopian–Adal war Franco-Syrian War Second Punic War Gunboat War Russo-Turkish War of 1768–1774 Ionian Revolt Third Macedonian War War on Terror Russo-Kazan Wars Russo-Japanese War Soviet–Japanese border conflicts French invasion of Russia Angolan Civil War War for Brittany Liberal Wars American Indian Wars Arab–Khazar Wars Peasants' War Gulf 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 War of the Triple Alliance English Civil War First Italo-Ethiopian War Peruvian War of Independence Reconquista Falklands War Sino-Vietnamese War Argentine Civil Wars Transalpine campaigns of the Old Swiss Confederacy Apache Wars Syrian Wars Second Opium War War of the Austrian Succession 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 Hundred Years' War War in Afghanistan War of the League of Cognac Wars of the Roses Second Chechen War Libyan civil war Lithuanian Crusade Trojan War Great Northern War Toyota War Boshin War Platine War Eighty Years' 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 Cisplatine War Yakima War War of the Castilian Succession Romania during World War I Sino-French War 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
251
action count
action atmost
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 conflict
value 14
[[{'concept': 'battle'}, {'concept': 'conflict'}], 'part of', {'concept': 'armed conflict'}]
SELECT DISTINCT ( COUNT ( ?h ) AS ?a ) WHERE { { SELECT DISTINCT ?h ( COUNT ( ?j ) AS ?c ) WHERE { { ?j property:part_of ?h . ?h rdf:type ontology:armed_conflict . ?j rdf:type ontology:battle } UNION { ?j property:part_of ?h . ?h rdf:type ontology:armed_conflict . ?j rdf:type ontology:conflict } } GROUP BY ?h } . FILTER ( ?c <= 14 ) }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q130759 Q2027014
P106
Q12737077
USER
Which occupations have Dzhabrail Yamadayev or Christoph Willibald von Gluck as his/her as a career ?
OR((Q2027014,P106,c(Q12737077)), (Q130759,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q2027014
relation P106
action find
entity Q130759
relation P106
type Q12737077
{'OR': [['Q2027014', 'P106', {'concept': 'Q12737077'}], ['Q130759', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q12737077 . { ?o property:P106 ?a . VALUES ( ?o ) { ( resource:Q2027014 ) ( resource:Q130759 ) } } }
Christoph Willibald von Gluck Dzhabrail Yamadayev
action filter_type
action union
action find
entity Dzhabrail Yamadayev
relation occupation
action find
entity Christoph Willibald von Gluck
relation occupation
type occupation
{'OR': [['Dzhabrail Yamadayev', 'occupation', {'concept': 'occupation'}], ['Christoph Willibald von Gluck', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:occupation . { ?o property:occupation ?a . VALUES ( ?o ) { ( resource:Dzhabrail_Yamadayev ) ( resource:Christoph_Willibald_von_Gluck ) } } }
[]
occupation
Q14915627 Q36834 Q47064
SYSTEM
musicologist, composer, military personnel
Q14915627 Q36834 Q47064
OR((Q2027014,P106,c(Q12737077)), (Q130759,P106,c(Q12737077)))
action filter_type
action union
action find
entity Q2027014
relation P106
action find
entity Q130759
relation P106
type Q12737077
[ANSWERS] have Dzhabrail Yamadayev or Christoph Willibald von Gluck as his/her as a career
{'OR': [['Q2027014', 'P106', {'concept': 'Q12737077'}], ['Q130759', 'P106', {'concept': 'Q12737077'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q12737077 . { ?o property:P106 ?a . VALUES ( ?o ) { ( resource:Q2027014 ) ( resource:Q130759 ) } } }
musicologist composer military personnel
Musicologist, composer and military personnel have Dzhabrail Yamadayev or Christoph Willibald von Gluck as his/her as a career
musicologist composer military personnel
action filter_type
action union
action find
entity Dzhabrail Yamadayev
relation occupation
action find
entity Christoph Willibald von Gluck
relation occupation
type occupation
{'OR': [['Dzhabrail Yamadayev', 'occupation', {'concept': 'occupation'}], ['Christoph Willibald von Gluck', 'occupation', {'concept': 'occupation'}]]}
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:occupation . { ?o property:occupation ?a . VALUES ( ?o ) { ( resource:Dzhabrail_Yamadayev ) ( resource:Christoph_Willibald_von_Gluck ) } } }
[]
Clarification
Comparative|Count over More/Less|Mult. entity type|Indirect
P101
Q12737077 Q502895 Q2342494
USER
How many occupations do lesser number of people and collectables belong to than that occupation ?
(c(Q502895)|c(Q2342494),P101,c(Q12737077))
[[{'concept': 'Q502895'}, {'concept': 'Q2342494'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:Q627436 ?y } UNION { ?x property:Q627436 ?y } } . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q528892 . ?x rdf:type ontology:Q2342494 }
[[{'concept': 'common name'}, {'concept': 'collectable'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:field_of_work ?y } UNION { ?x property:field_of_work ?y } } . ?z rdf:type ontology:common_name . ?y rdf:type ontology:occupation . ?x rdf:type ontology:collectable }
[]
occupation common name collectable
Comparative|Count over More/Less|Mult. entity type|Clarification
Q36834
SYSTEM
Did you mean composer ?
(c(Q502895)|c(Q2342494),P101,c(Q12737077))
[ANSWER]
[[{'concept': 'Q502895'}, {'concept': 'Q2342494'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:Q627436 ?y } UNION { ?x property:Q627436 ?y } } . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q528892 . ?x rdf:type ontology:Q2342494 }
Did you mean composer ?
composer
[[{'concept': 'common name'}, {'concept': 'collectable'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:field_of_work ?y } UNION { ?x property:field_of_work ?y } } . ?z rdf:type ontology:common_name . ?y rdf:type ontology:occupation . ?x rdf:type ontology:collectable }
[]
Comparative Reasoning (Count) (All)
USER
No, I meant musicologist. Could you tell me the answer for that?
(c(Q502895)|c(Q2342494),P101,c(Q12737077))
Q14915627
[[{'concept': 'Q502895'}, {'concept': 'Q2342494'}], 'P101', {'concept': 'Q12737077'}]
[[{'concept': 'common name'}, {'concept': 'collectable'}], 'field of work', {'concept': 'occupation'}]
[]
SYSTEM
10
Q652122 Q211423 Q2259451 Q326358 Q705908 Q2205972 Q901 Q3387717 Q154549 Q2490358
(c(Q502895)|c(Q2342494),P101,c(Q12737077))
[ANSWER]
[[{'concept': 'Q502895'}, {'concept': 'Q2342494'}], 'P101', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:Q627436 ?y } UNION { ?x property:Q627436 ?y } } . ?z rdf:type ontology:Q502895 . ?y rdf:type ontology:Q528892 . ?x rdf:type ontology:Q2342494 }
sewing goldsmith stage actor joiner agency agreement stained-glass artist scientist theatre director carpenter choreographer
10
[[{'concept': 'common name'}, {'concept': 'collectable'}], 'field of work', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?y ) AS ?w ) WHERE { { { ?z property:field_of_work ?y } UNION { ?x property:field_of_work ?y } } . ?z rdf:type ontology:common_name . ?y rdf:type ontology:occupation . ?x rdf:type ontology:collectable }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P921
Q12737077 Q191067 Q838948
USER
Which occupations were the main subjects in the work approximately 26 articles and works of art ?
(c(Q191067)|c(Q838948),P921,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
value 26
[[{'concept': 'Q191067'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?p ) WHERE { ?w rdf:type ?x . VALUES ( ?x ) { ( ontology:Q191067 ) ( ontology:Q838948 ) } } GROUP BY ?u } . FILTER ( ?p = 26 ) }
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
value 26
[[{'concept': 'article'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?p ) WHERE { ?w rdf:type ?x . VALUES ( ?x ) { ( ontology:article ) ( ontology:work_of_art ) } } GROUP BY ?u } . FILTER ( ?p = 26 ) }
[]
occupation article work of art
Q164236 Q33231
SYSTEM
war correspondent, photographer
Q164236 Q33231
(c(Q191067)|c(Q838948),P921,c(Q12737077))
action approx
action union
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q191067
action find_reverse_tuple_counts
relation P921
type Q12737077
type Q838948
value 26
The [ANSWERS] were the main subjects in the work approximately 26 articles and works of art
[[{'concept': 'Q191067'}, {'concept': 'Q838948'}], 'P921', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?p ) WHERE { ?w rdf:type ?x . VALUES ( ?x ) { ( ontology:Q191067 ) ( ontology:Q838948 ) } } GROUP BY ?u } . FILTER ( ?p = 26 ) }
war correspondent photographer
The war correspondent and photographer were the main subjects in the work approximately 26 articles and works of art
war correspondent photographer
action approx
action union
action find_reverse_tuple_counts
relation main subject
type occupation
type article
action find_reverse_tuple_counts
relation main subject
type occupation
type work of art
value 26
[[{'concept': 'article'}, {'concept': 'work of art'}], 'main subject', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ?u ( COUNT ( ?w ) AS ?p ) WHERE { ?w rdf:type ?x . VALUES ( ?x ) { ( ontology:article ) ( ontology:work_of_art ) } } GROUP BY ?u } . FILTER ( ?p = 26 ) }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q11412854
P106
Q502895
USER
Do Naoko Yoshioka have the profession as those occupations ?
(Q11412854,P106,Q164236) (Q11412854,P106,Q33231)
action is_in
entity prev_answer
action find
entity Q11412854
relation P106
['Q11412854', 'P106', 'Q164236'] ['Q11412854', 'P106', 'Q33231']
ASK WHERE { VALUES ( ?s ) { ( resource:Q164236 ) ( resource:Q33231 ) } . resource:Q11412854 property:P106 ?s }
Naoko Yoshioka
action is_in
entity prev_answer
action find
entity Naoko Yoshioka
relation occupation
['Naoko Yoshioka', 'occupation', 'war correspondent'] ['Naoko Yoshioka', 'occupation', 'photographer']
ASK WHERE { VALUES ( ?s ) { ( resource:war_correspondent ) ( resource:photographer ) } . resource:Naoko_Yoshioka property:occupation ?s }
[]
common name
SYSTEM
NO
(Q11412854,P106,Q164236) (Q11412854,P106,Q33231)
action is_in
entity prev_answer
action find
entity Q11412854
relation P106
[ANSWER]
['Q11412854', 'P106', 'Q164236'] ['Q11412854', 'P106', 'Q33231']
ASK WHERE { VALUES ( ?s ) { ( resource:Q164236 ) ( resource:Q33231 ) } . resource:Q11412854 property:P106 ?s }
No
action is_in
entity prev_answer
action find
entity Naoko Yoshioka
relation occupation
['Naoko Yoshioka', 'occupation', 'war correspondent'] ['Naoko Yoshioka', 'occupation', 'photographer']
ASK WHERE { VALUES ( ?s ) { ( resource:war_correspondent ) ( resource:photographer ) } . resource:Naoko_Yoshioka property:occupation ?s }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q2027014 Q26696948 Q267027
P106
Q12737077
USER
Does Dzhabrail Yamadayev have the profession of mayor of Pozaldez and soaper ?
(Q2027014,P106,Q26696948) (Q2027014,P106,Q267027)
action is_in
entity Q2027014
action intersection
action find_reverse
entity Q26696948
relation P106
action find_reverse
entity Q267027
relation P106
['Q2027014', 'P106', 'Q26696948'] ['Q2027014', 'P106', 'Q267027']
ASK WHERE { resource:Q2027014 property:P106 resource:Q26696948 . resource:Q2027014 property:P106 resource:Q267027 }
Dzhabrail Yamadayev mayor of Pozaldez soaper
action is_in
entity Dzhabrail Yamadayev
action intersection
action find_reverse
entity mayor of Pozaldez
relation occupation
action find_reverse
entity soaper
relation occupation
['Dzhabrail Yamadayev', 'occupation', 'mayor of Pozaldez'] ['Dzhabrail Yamadayev', 'occupation', 'soaper']
ASK WHERE { resource:Dzhabrail_Yamadayev property:occupation resource:mayor_of_Pozaldez . resource:Dzhabrail_Yamadayev property:occupation resource:soaper }
[]
occupation
SYSTEM
NO
(Q2027014,P106,Q26696948) (Q2027014,P106,Q267027)
action is_in
entity Q2027014
action intersection
action find_reverse
entity Q26696948
relation P106
action find_reverse
entity Q267027
relation P106
[ANSWER]
['Q2027014', 'P106', 'Q26696948'] ['Q2027014', 'P106', 'Q267027']
ASK WHERE { resource:Q2027014 property:P106 resource:Q26696948 . resource:Q2027014 property:P106 resource:Q267027 }
No
action is_in
entity Dzhabrail Yamadayev
action intersection
action find_reverse
entity mayor of Pozaldez
relation occupation
action find_reverse
entity soaper
relation occupation
['Dzhabrail Yamadayev', 'occupation', 'mayor of Pozaldez'] ['Dzhabrail Yamadayev', 'occupation', 'soaper']
ASK WHERE { resource:Dzhabrail_Yamadayev property:occupation resource:mayor_of_Pozaldez . resource:Dzhabrail_Yamadayev property:occupation resource:soaper }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2027014
P166
Q618779
USER
What was won by that person ?
action filter_type
action find
entity Q2027014
relation P166
type Q618779
SELECT DISTINCT ?a WHERE { resource:Q2027014 property:P166 ?a . ?a rdf:type ontology:Q618779 }
Dzhabrail Yamadayev
action filter_type
action find
entity Dzhabrail Yamadayev
relation award received
type award
SELECT DISTINCT ?a WHERE { resource:Dzhabrail_Yamadayev property:award_received ?a . ?a rdf:type ontology:award }
[]
award
Q654471
SYSTEM
Hero of the Russian Federation
Q654471
action filter_type
action find
entity Q2027014
relation P166
type Q618779
The [ANSWER] was won by that person
SELECT DISTINCT ?a WHERE { resource:Q2027014 property:P166 ?a . ?a rdf:type ontology:Q618779 }
Hero of the Russian Federation
The Hero of the Russian Federation was won by that person
Hero of the Russian Federation
action filter_type
action find
entity Dzhabrail Yamadayev
relation award received
type award
SELECT DISTINCT ?a WHERE { resource:Dzhabrail_Yamadayev property:award_received ?a . ?a rdf:type ontology:award }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2027014
P19
Q56061
USER
Which administrative territory is the place of birth of that person ?
(Q654471,P19,c(Q56061))
action filter_type
action find
entity Q2027014
relation P19
type Q56061
['Q654471', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q2027014 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Dzhabrail Yamadayev
action filter_type
action find
entity Dzhabrail Yamadayev
relation place of birth
type administrative territorial entity
['Hero of the Russian Federation', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Dzhabrail_Yamadayev property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q134693
SYSTEM
Gudermes
Q134693
(Q654471,P19,c(Q56061))
action filter_type
action find
entity Q2027014
relation P19
type Q56061
[ANSWER] is the place of birth of that person
['Q654471', 'P19', {'concept': 'Q56061'}]
SELECT DISTINCT ?h WHERE { resource:Q2027014 property:P19 ?h . ?h rdf:type ontology:Q56061 }
Gudermes
Gudermes is the place of birth of that person
Gudermes
action filter_type
action find
entity Dzhabrail Yamadayev
relation place of birth
type administrative territorial entity
['Hero of the Russian Federation', 'place of birth', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Dzhabrail_Yamadayev property:place_of_birth ?h . ?h rdf:type ontology:administrative_territorial_entity }
[]