Simple Question (Direct)
Simple Question
Q1559256
P21
Q290
USER
Which sex does John McCuish possess ?
(Q1559256,P21,c(Q290))
action filter_type
action find
entity Q1559256
relation P21
type Q290
['Q1559256', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q1559256 property:P21 ?k . ?k rdf:type ontology:Q290 }
John McCuish
action filter_type
action find
entity John McCuish
relation gender
type sex
['John McCuish', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:John_McCuish property:gender ?k . ?k rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1559256,P21,c(Q290))
action filter_type
action find
entity Q1559256
relation P21
type Q290
John McCuish possesses un [ANSWER]
['Q1559256', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?k WHERE { resource:Q1559256 property:P21 ?k . ?k rdf:type ontology:Q290 }
male
John McCuish possesses un male
male
action filter_type
action find
entity John McCuish
relation gender
type sex
['John McCuish', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?k WHERE { resource:John_McCuish property:gender ?k . ?k rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q6581097
P69
Q502895
USER
Who was a student at that sex ?
(c(Q502895),P69,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P69
type Q502895
[{'concept': 'Q502895'}, 'P69', 'Q6581097']
SELECT DISTINCT ?s WHERE { ?s property:P69 resource:Q6581097 . ?s rdf:type ontology:Q502895 }
male
action filter_type
action find_reverse
entity male
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'male']
SELECT DISTINCT ?s WHERE { ?s property:educated_at resource:male . ?s rdf:type ontology:common_name }
[]
common name
Q4662307
SYSTEM
Aaron Parchem
Q4662307
(c(Q502895),P69,Q6581097)
action filter_type
action find_reverse
entity Q6581097
relation P69
type Q502895
[ANSWER] was a student at that sex
[{'concept': 'Q502895'}, 'P69', 'Q6581097']
SELECT DISTINCT ?s WHERE { ?s property:P69 resource:Q6581097 . ?s rdf:type ontology:Q502895 }
Aaron Parchem
Aaron Parchem was a student at that sex
Aaron Parchem
action filter_type
action find_reverse
entity male
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'male']
SELECT DISTINCT ?s WHERE { ?s property:educated_at resource:male . ?s rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q4662307 Q9672
P1344
Q15900616
USER
Did Aaron Parchem participate in 2006 Winter Olympics ?
(Q4662307,P1344,Q9672)
action is_in
entity Q9672
action find
entity Q4662307
relation P1344
['Q4662307', 'P1344', 'Q9672']
ASK WHERE { resource:Q4662307 property:P1344 resource:Q9672 }
Aaron Parchem 2006 Winter Olympics
action is_in
entity 2006 Winter Olympics
action find
entity Aaron Parchem
relation participant of
['Aaron Parchem', 'participant of', '2006 Winter Olympics']
ASK WHERE { resource:Aaron_Parchem property:participant_of resource:2006_Winter_Olympics }
[]
event sequence
SYSTEM
YES
(Q4662307,P1344,Q9672)
action is_in
entity Q9672
action find
entity Q4662307
relation P1344
[ANSWER]
['Q4662307', 'P1344', 'Q9672']
ASK WHERE { resource:Q4662307 property:P1344 resource:Q9672 }
Yes
action is_in
entity 2006 Winter Olympics
action find
entity Aaron Parchem
relation participant of
['Aaron Parchem', 'participant of', '2006 Winter Olympics']
ASK WHERE { resource:Aaron_Parchem property:participant_of resource:2006_Winter_Olympics }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1559256
P607
Q198
USER
What was the war that John McCuish took part in
(Q1559256,P607,c(Q198))
action filter_type
action find
entity Q1559256
relation P607
type Q198
['Q1559256', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?m WHERE { resource:Q1559256 property:P607 ?m . ?m rdf:type ontology:Q198 }
John McCuish
action filter_type
action find
entity John McCuish
relation conflict
type war
['John McCuish', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?m WHERE { resource:John_McCuish property:conflict ?m . ?m rdf:type ontology:war }
[]
war
Q362
SYSTEM
World War II
Q362
(Q1559256,P607,c(Q198))
action filter_type
action find
entity Q1559256
relation P607
type Q198
The war that John McCuish took part in was in [ANSWER]
['Q1559256', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?m WHERE { resource:Q1559256 property:P607 ?m . ?m rdf:type ontology:Q198 }
World War II
The war that John McCuish took part in was in World War II
World War II
action filter_type
action find
entity John McCuish
relation conflict
type war
['John McCuish', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?m WHERE { resource:John_McCuish property:conflict ?m . ?m rdf:type ontology:war }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q1049945
P607
Q198 Q2235308 Q502895
USER
How many wars did approximately the same number of ship types and people take part in as Jacobite rising of 1745 ?
(c(Q2235308)|c(Q502895),P607,c(Q198))
action count
action approx
action union
action find_reverse_tuple_counts
relation P607
type Q198
type Q2235308
action find_reverse_tuple_counts
relation P607
type Q198
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q1049945
relation P607
type Q2235308
type Q502895
[[{'concept': 'Q2235308'}, {'concept': 'Q502895'}], 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) ?o WHERE { VALUES ( ?j ) { ( ontology:Q2235308 ) ( ontology:Q502895 ) } . ?s rdf:type ?j } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { ?g property:P607 resource:Q1049945 . { VALUES ( ?t ) { ( ontology:Q2235308 ) ( ontology:Q502895 ) } . ?g rdf:type ?t } } } . FILTER ( ?u = ?x ) }
Jacobite rising of 1745
action count
action approx
action union
action find_reverse_tuple_counts
relation conflict
type war
type ship type
action find_reverse_tuple_counts
relation conflict
type war
type common name
action count
action filter_multi_types
action find_reverse
entity Jacobite rising of 1745
relation conflict
type ship type
type common name
[[{'concept': 'ship type'}, {'concept': 'common name'}], 'conflict', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) ?o WHERE { VALUES ( ?j ) { ( ontology:ship_type ) ( ontology:common_name ) } . ?s rdf:type ?j } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { ?g property:conflict resource:Jacobite_rising_of_1745 . { VALUES ( ?t ) { ( ontology:ship_type ) ( ontology:common_name ) } . ?g rdf:type ?t } } } . FILTER ( ?u = ?x ) }
[]
war ship type common name
SYSTEM
49
Q8683 Q211855 Q1006311 Q795269 Q3067868 Q3778746 Q920894 Q81545 Q10859 Q163883 Q18121212 Q1021160 Q15860072 Q17984356 Q1072889 Q1980081 Q633862 Q209297 Q242352 Q2105495 Q178810 Q545449 Q2658255 Q16954835 Q208484 Q4971401 Q2086498 Q1049945 Q75984 Q1021172 Q1021175 Q1122110 Q43378 Q8676 Q1127302 Q1052332 Q1070890 Q188972 Q12302518 Q475678 Q213394 Q17183365 Q17507684 Q179975 Q18159629 Q2672972 Q243620 Q79911 Q142529
(c(Q2235308)|c(Q502895),P607,c(Q198))
action count
action approx
action union
action find_reverse_tuple_counts
relation P607
type Q198
type Q2235308
action find_reverse_tuple_counts
relation P607
type Q198
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q1049945
relation P607
type Q2235308
type Q502895
[ANSWER]
[[{'concept': 'Q2235308'}, {'concept': 'Q502895'}], 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) ?o WHERE { VALUES ( ?j ) { ( ontology:Q2235308 ) ( ontology:Q502895 ) } . ?s rdf:type ?j } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { ?g property:P607 resource:Q1049945 . { VALUES ( ?t ) { ( ontology:Q2235308 ) ( ontology:Q502895 ) } . ?g rdf:type ?t } } } . FILTER ( ?u = ?x ) }
Cold War Finnish Civil War war of national liberation Sierra Leone Civil War Colombian Civil War Sioux Wars First Italian War of Independence 2011 Libyan Civil War Spanish Civil War Ten-Day War American-led intervention in Syria Armagnac–Burgundian Civil War 2014–16 Russian military intervention in Ukraine Iraqi Civil War Chilean War of Independence Civil war in Afghanistan Cold War Farroupilha Revolution Yugoslav Wars 1383-85 Portuguese Interregnum Syrian Civil War Iraq War Byzantine civil war of 1341–1347 Nagorno-Karabakh conflict Lebanese Civil War British military intervention in the Sierra Leone Civil War First Barons' War Jacobite rising of 1745 Dirty War Republic of the Congo Civil War First Ivorian Civil War Civil war in Tajikistan Thousand Days' War American Civil War Estonian War of Independence War in Somalia Georgian Civil War Greek Civil War Civil war in Afghanistan Mexican Drug War Sri Lankan Civil War Sectarian violence in Iraq (2006–07) military intervention against ISIL Chinese Civil War American-led intervention in Iraq Uruguayan Civil War Somali Civil War Russian Civil War Algerian Civil War
49
action count
action approx
action union
action find_reverse_tuple_counts
relation conflict
type war
type ship type
action find_reverse_tuple_counts
relation conflict
type war
type common name
action count
action filter_multi_types
action find_reverse
entity Jacobite rising of 1745
relation conflict
type ship type
type common name
[[{'concept': 'ship type'}, {'concept': 'common name'}], 'conflict', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?o ) AS ?z ) WHERE { { SELECT DISTINCT ( COUNT ( ?s ) AS ?u ) ?o WHERE { VALUES ( ?j ) { ( ontology:ship_type ) ( ontology:common_name ) } . ?s rdf:type ?j } GROUP BY ?o } . { SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { ?g property:conflict resource:Jacobite_rising_of_1745 . { VALUES ( ?t ) { ( ontology:ship_type ) ( ontology:common_name ) } . ?g rdf:type ?t } } } . FILTER ( ?u = ?x ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q1072889
P607
Q198 Q2235308 Q502895
USER
And how about Chilean War of Independence?
(c(Q2235308)|c(Q502895),P607,c(Q198))
action count
action approx
action union
action find_reverse_tuple_counts
relation P607
type Q198
type Q2235308
action find_reverse_tuple_counts
relation P607
type Q198
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q1072889
relation P607
type Q2235308
type Q502895
[[{'concept': 'Q2235308'}, {'concept': 'Q502895'}], 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { { ?q rdf:type ontology:Q2235308 } UNION { ?q rdf:type ontology:Q502895 } } . ?q property:P607 resource:Q1072889 } } . FILTER ( ?t = ?f ) . { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?t ) WHERE { { ?e property:P607 ?n . ?n rdf:type ontology:Q198 . ?e rdf:type ontology:Q502895 } UNION { ?e property:P607 ?n . ?e rdf:type ontology:Q2235308 . ?n rdf:type ontology:Q198 } } GROUP BY ?n } }
Chilean War of Independence
action count
action approx
action union
action find_reverse_tuple_counts
relation conflict
type war
type ship type
action find_reverse_tuple_counts
relation conflict
type war
type common name
action count
action filter_multi_types
action find_reverse
entity Chilean War of Independence
relation conflict
type ship type
type common name
[[{'concept': 'ship type'}, {'concept': 'common name'}], 'conflict', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { { ?q rdf:type ontology:ship_type } UNION { ?q rdf:type ontology:common_name } } . ?q property:conflict resource:Chilean_War_of_Independence } } . FILTER ( ?t = ?f ) . { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?t ) WHERE { { ?e property:conflict ?n . ?n rdf:type ontology:war . ?e rdf:type ontology:common_name } UNION { ?e property:conflict ?n . ?e rdf:type ontology:ship_type . ?n rdf:type ontology:war } } GROUP BY ?n } }
[]
war ship type common name
SYSTEM
49
Q8683 Q211855 Q1006311 Q795269 Q3067868 Q3778746 Q920894 Q81545 Q10859 Q163883 Q18121212 Q1021160 Q15860072 Q17984356 Q1072889 Q1980081 Q633862 Q209297 Q242352 Q2105495 Q178810 Q545449 Q2658255 Q16954835 Q208484 Q4971401 Q2086498 Q1049945 Q75984 Q1021172 Q1021175 Q1122110 Q43378 Q8676 Q1127302 Q1052332 Q1070890 Q188972 Q12302518 Q475678 Q213394 Q17183365 Q17507684 Q179975 Q18159629 Q2672972 Q243620 Q79911 Q142529
(c(Q2235308)|c(Q502895),P607,c(Q198))
action count
action approx
action union
action find_reverse_tuple_counts
relation P607
type Q198
type Q2235308
action find_reverse_tuple_counts
relation P607
type Q198
type Q502895
action count
action filter_multi_types
action find_reverse
entity Q1072889
relation P607
type Q2235308
type Q502895
[ANSWER]
[[{'concept': 'Q2235308'}, {'concept': 'Q502895'}], 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { { ?q rdf:type ontology:Q2235308 } UNION { ?q rdf:type ontology:Q502895 } } . ?q property:P607 resource:Q1072889 } } . FILTER ( ?t = ?f ) . { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?t ) WHERE { { ?e property:P607 ?n . ?n rdf:type ontology:Q198 . ?e rdf:type ontology:Q502895 } UNION { ?e property:P607 ?n . ?e rdf:type ontology:Q2235308 . ?n rdf:type ontology:Q198 } } GROUP BY ?n } }
Cold War Finnish Civil War war of national liberation Sierra Leone Civil War Colombian Civil War Sioux Wars First Italian War of Independence 2011 Libyan Civil War Spanish Civil War Ten-Day War American-led intervention in Syria Armagnac–Burgundian Civil War 2014–16 Russian military intervention in Ukraine Iraqi Civil War Chilean War of Independence Civil war in Afghanistan Cold War Farroupilha Revolution Yugoslav Wars 1383-85 Portuguese Interregnum Syrian Civil War Iraq War Byzantine civil war of 1341–1347 Nagorno-Karabakh conflict Lebanese Civil War British military intervention in the Sierra Leone Civil War First Barons' War Jacobite rising of 1745 Dirty War Republic of the Congo Civil War First Ivorian Civil War Civil war in Tajikistan Thousand Days' War American Civil War Estonian War of Independence War in Somalia Georgian Civil War Greek Civil War Civil war in Afghanistan Mexican Drug War Sri Lankan Civil War Sectarian violence in Iraq (2006–07) military intervention against ISIL Chinese Civil War American-led intervention in Iraq Uruguayan Civil War Somali Civil War Russian Civil War Algerian Civil War
49
action count
action approx
action union
action find_reverse_tuple_counts
relation conflict
type war
type ship type
action find_reverse_tuple_counts
relation conflict
type war
type common name
action count
action filter_multi_types
action find_reverse
entity Chilean War of Independence
relation conflict
type ship type
type common name
[[{'concept': 'ship type'}, {'concept': 'common name'}], 'conflict', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?f ) WHERE { { { ?q rdf:type ontology:ship_type } UNION { ?q rdf:type ontology:common_name } } . ?q property:conflict resource:Chilean_War_of_Independence } } . FILTER ( ?t = ?f ) . { SELECT DISTINCT ?n ( COUNT ( ?e ) AS ?t ) WHERE { { ?e property:conflict ?n . ?n rdf:type ontology:war . ?e rdf:type ontology:common_name } UNION { ?e property:conflict ?n . ?e rdf:type ontology:ship_type . ?n rdf:type ontology:war } } GROUP BY ?n } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q362
P710
Q15617994
USER
Who were the artist who participated in World War II ?
(Q362,P710,c(Q15617994))
action filter_type
action find
entity Q362
relation P710
type Q15617994
['Q362', 'P710', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q15617994 . resource:Q362 property:P710 ?b }
World War II
action filter_type
action find
entity World War II
relation participant
type designation for an administrative territorial entity
['World War II', 'participant', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:World_War_II property:participant ?b }
[]
designation for an administrative territorial entity
Q38 Q30 Q142
SYSTEM
Italy, United States of America, France
Q142 Q17 Q30 Q38 Q145
(Q362,P710,c(Q15617994))
action filter_type
action find
entity Q362
relation P710
type Q15617994
The artist participated in World War II were in [ANSWERS]
['Q362', 'P710', {'concept': 'Q15617994'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Q15617994 . resource:Q362 property:P710 ?b }
France Japan United States of America Italy United Kingdom
The artist participated in World War II were in Italy, United States of America and France
Italy United States of America France
action filter_type
action find
entity World War II
relation participant
type designation for an administrative territorial entity
['World War II', 'participant', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:designation_for_an_administrative_territorial_entity . resource:World_War_II property:participant ?b }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q46003
Q15617994
USER
And also tell me about Battle of Rajovka?
(Q46003,P710,c(Q15617994))
action filter_type
action find
entity Q46003
relation P710
type Q15617994
['Q46003', 'P710', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q46003 property:P710 ?l . ?l rdf:type ontology:Q15617994 }
Battle of Rajovka
action filter_type
action find
entity Battle of Rajovka
relation participant
type designation for an administrative territorial entity
['Battle of Rajovka', 'participant', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Battle_of_Rajovka property:participant ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q159 Q34
SYSTEM
Russia, Sweden
Q159 Q34
(Q46003,P710,c(Q15617994))
action filter_type
action find
entity Q46003
relation P710
type Q15617994
[ANSWERS]
['Q46003', 'P710', {'concept': 'Q15617994'}]
SELECT DISTINCT ?l WHERE { resource:Q46003 property:P710 ?l . ?l rdf:type ontology:Q15617994 }
Russia Sweden
Russia Sweden
action filter_type
action find
entity Battle of Rajovka
relation participant
type designation for an administrative territorial entity
['Battle of Rajovka', 'participant', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?l WHERE { resource:Battle_of_Rajovka property:participant ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q34
P163
Q14660
USER
Which flag is associated with that administrative territory ?
(Q34,P163,c(Q14660))
action filter_type
action find
entity Q34
relation P163
type Q14660
['Q34', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?p WHERE { resource:Q34 property:P163 ?p . ?p rdf:type ontology:Q14660 }
Sweden
action filter_type
action find
entity Sweden
relation flag
type flag
['Sweden', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?p WHERE { resource:Sweden property:flag ?p . ?p rdf:type ontology:flag }
[]
flag
Clarification for simple ques.
Q159
SYSTEM
Did you mean Russia ?
Q159 Q34
(Q159,P163,c(Q14660)) (Q34,P163,c(Q14660))
[ANSWER]
['Q159', 'P163', {'concept': 'Q14660'}] ['Q34', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?p WHERE { resource:Q34 property:P163 ?p . ?p rdf:type ontology:Q14660 }
Russia Sweden
Did you mean Russia ?
Russia
['Russia', 'flag', {'concept': 'flag'}] ['Sweden', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?p WHERE { resource:Sweden property:flag ?p . ?p rdf:type ontology:flag }
[]
Simple Question (Coreferenced)
USER
No, I meant Sweden. Could you tell me the answer for that?
(Q34,P163,c(Q14660))
Q34
['Q34', 'P163', {'concept': 'Q14660'}]
['Sweden', 'flag', {'concept': 'flag'}]
[]
Q81286
SYSTEM
flag of Sweden
Q81286
(Q34,P163,c(Q14660))
action filter_type
action find
entity Q34
relation P163
type Q14660
The [ANSWER] is associated with that administrative territory
['Q34', 'P163', {'concept': 'Q14660'}]
SELECT DISTINCT ?p WHERE { resource:Q34 property:P163 ?p . ?p rdf:type ontology:Q14660 }
flag of Sweden
The flag of Sweden is associated with that administrative territory
flag of Sweden
action filter_type
action find
entity Sweden
relation flag
type flag
['Sweden', 'flag', {'concept': 'flag'}]
SELECT DISTINCT ?p WHERE { resource:Sweden property:flag ?p . ?p rdf:type ontology:flag }
[]