Simple Question (Direct)
Simple Question
Q1860669
P607
Q198
USER
Which battle did Valery Sablin take part in ?
(Q1860669,P607,c(Q198))
action filter_type
action find
entity Q1860669
relation P607
type Q198
['Q1860669', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q198 . resource:Q1860669 property:P607 ?q }
Valery Sablin
action filter_type
action find
entity Valery Sablin
relation conflict
type war
['Valery Sablin', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:war . resource:Valery_Sablin property:conflict ?q }
[]
war
Q8683
SYSTEM
Cold War
Q8683
(Q1860669,P607,c(Q198))
action filter_type
action find
entity Q1860669
relation P607
type Q198
Valery Sablin took part in [ANSWER]
['Q1860669', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q198 . resource:Q1860669 property:P607 ?q }
Cold War
Valery Sablin took part in Cold War
Cold War
action filter_type
action find
entity Valery Sablin
relation conflict
type war
['Valery Sablin', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:war . resource:Valery_Sablin property:conflict ?q }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8683
P361
Q49394
USER
What is a component of that war ?
(c(Q49394),P361,Q8683)
action filter_type
action find_reverse
entity Q8683
relation P361
type Q49394
[{'concept': 'Q49394'}, 'P361', 'Q8683']
SELECT DISTINCT ?x WHERE { ?x property:P361 resource:Q8683 . ?x rdf:type ontology:Q49394 }
Cold War
action filter_type
action find_reverse
entity Cold War
relation part of
type weapon of mass destruction
[{'concept': 'weapon of mass destruction'}, 'part of', 'Cold War']
SELECT DISTINCT ?x WHERE { ?x property:part_of resource:Cold_War . ?x rdf:type ontology:weapon_of_mass_destruction }
[]
weapon of mass destruction
Q169384
SYSTEM
Zebra-Paket
Q169384
(c(Q49394),P361,Q8683)
action filter_type
action find_reverse
entity Q8683
relation P361
type Q49394
A component of that war is the [ANSWER]
[{'concept': 'Q49394'}, 'P361', 'Q8683']
SELECT DISTINCT ?x WHERE { ?x property:P361 resource:Q8683 . ?x rdf:type ontology:Q49394 }
Zebra-Paket
A component of that war is the Zebra-Paket
Zebra-Paket
action filter_type
action find_reverse
entity Cold War
relation part of
type weapon of mass destruction
[{'concept': 'weapon of mass destruction'}, 'part of', 'Cold War']
SELECT DISTINCT ?x WHERE { ?x property:part_of resource:Cold_War . ?x rdf:type ontology:weapon_of_mass_destruction }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q169384 Q8683
P361
Q198
USER
Is that weapon of mass destruction a portion of Cold War ?
(Q169384,P361,Q8683)
action is_in
entity Q8683
action find
entity Q169384
relation P361
['Q169384', 'P361', 'Q8683']
ASK WHERE { resource:Q169384 property:P361 resource:Q8683 }
Zebra-Paket Cold War
action is_in
entity Cold War
action find
entity Zebra-Paket
relation part of
['Zebra-Paket', 'part of', 'Cold War']
ASK WHERE { resource:Zebra-Paket property:part_of resource:Cold_War }
[]
war
SYSTEM
YES
(Q169384,P361,Q8683)
action is_in
entity Q8683
action find
entity Q169384
relation P361
[ANSWER]
['Q169384', 'P361', 'Q8683']
ASK WHERE { resource:Q169384 property:P361 resource:Q8683 }
Yes
action is_in
entity Cold War
action find
entity Zebra-Paket
relation part of
['Zebra-Paket', 'part of', 'Cold War']
ASK WHERE { resource:Zebra-Paket property:part_of resource:Cold_War }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q169384
P127
Q781132
USER
Which military branch is the owner of that weapon of mass destruction ?
action filter_type
action find
entity Q169384
relation P127
type Q781132
SELECT DISTINCT ?s WHERE { resource:Q169384 property:P127 ?s . ?s rdf:type ontology:Q781132 }
Zebra-Paket
action filter_type
action find
entity Zebra-Paket
relation owned by
type military branch
SELECT DISTINCT ?s WHERE { resource:Zebra-Paket property:owned_by ?s . ?s rdf:type ontology:military_branch }
[]
military branch
Q9212
SYSTEM
United States Army
Q9212
action filter_type
action find
entity Q169384
relation P127
type Q781132
[ANSWER] is the owner of that weapon of mass destruction
SELECT DISTINCT ?s WHERE { resource:Q169384 property:P127 ?s . ?s rdf:type ontology:Q781132 }
United States Army
United States Army is the owner of that weapon of mass destruction
United States Army
action filter_type
action find
entity Zebra-Paket
relation owned by
type military branch
SELECT DISTINCT ?s WHERE { resource:Zebra-Paket property:owned_by ?s . ?s rdf:type ontology:military_branch }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q2307521
P137
Q781132 Q5962346
USER
How many classification schemes were operated by more number of military branches than Losos-class submarine ?
(c(Q5962346),P137,c(Q781132))
action count
action greater
action find_tuple_counts
relation P137
type Q5962346
type Q781132
action count
action filter_type
action find
entity Q2307521
relation P137
type Q5962346
[{'concept': 'Q5962346'}, 'P137', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?e ) WHERE { ?w rdf:type ontology:Q5962346 . ?l rdf:type ontology:Q781132 . ?w property:P137 ?l } GROUP BY ?w } . FILTER ( ?e > ?s ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { resource:Q2307521 property:P137 ?c . ?c rdf:type ontology:Q5962346 } } }
Losos-class submarine
action count
action greater
action find_tuple_counts
relation operator
type classification scheme
type military branch
action count
action filter_type
action find
entity Losos-class submarine
relation operator
type classification scheme
[{'concept': 'classification scheme'}, 'operator', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?e ) WHERE { ?w rdf:type ontology:classification_scheme . ?l rdf:type ontology:military_branch . ?w property:operator ?l } GROUP BY ?w } . FILTER ( ?e > ?s ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { resource:Losos-class_submarine property:operator ?c . ?c rdf:type ontology:classification_scheme } } }
[]
military branch classification scheme
SYSTEM
14
Q699842 Q55520 Q686973 Q2449165 Q385734 Q1987866 Q765764 Q1998900 Q2975947 Q482835 Q876616 Q3503826 Q1544451 Q1124859
(c(Q5962346),P137,c(Q781132))
action count
action greater
action find_tuple_counts
relation P137
type Q5962346
type Q781132
action count
action filter_type
action find
entity Q2307521
relation P137
type Q5962346
[ANSWER]
[{'concept': 'Q5962346'}, 'P137', {'concept': 'Q781132'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?e ) WHERE { ?w rdf:type ontology:Q5962346 . ?l rdf:type ontology:Q781132 . ?w property:P137 ?l } GROUP BY ?w } . FILTER ( ?e > ?s ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { resource:Q2307521 property:P137 ?c . ?c rdf:type ontology:Q5962346 } } }
Balao-class submarine Kilo-class submarine Type 206 submarine Kasatka-class submarine Whiskey-class submarine Bars-class submarine Kobben-class submarine Russian Narval-class submarine Morzh-class submarine Type 209 submarine Akula-class submarine German Type UB II submarine Greater Underwater Propulsion Power Program Oberon-class submarine
14
action count
action greater
action find_tuple_counts
relation operator
type classification scheme
type military branch
action count
action filter_type
action find
entity Losos-class submarine
relation operator
type classification scheme
[{'concept': 'classification scheme'}, 'operator', {'concept': 'military branch'}]
SELECT DISTINCT ( COUNT ( ?w ) AS ?g ) WHERE { { SELECT DISTINCT ?w ( COUNT ( ?l ) AS ?e ) WHERE { ?w rdf:type ontology:classification_scheme . ?l rdf:type ontology:military_branch . ?w property:operator ?l } GROUP BY ?w } . FILTER ( ?e > ?s ) . { SELECT DISTINCT ( COUNT ( ?c ) AS ?s ) WHERE { resource:Losos-class_submarine property:operator ?c . ?c rdf:type ontology:classification_scheme } } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P607
Q198 Q502895 Q2235308
USER
Which wars did min number of people and ship types take part in ?
(c(Q502895)|c(Q2235308),P607,c(Q198))
action argmin
action union
action find_reverse_tuple_counts
relation P607
type Q198
type Q502895
action find_reverse_tuple_counts
relation P607
type Q198
type Q2235308
[[{'concept': 'Q502895'}, {'concept': 'Q2235308'}], 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?q ) { SELECT DISTINCT ?e ( COUNT ( ?t ) AS ?s ) WHERE { ?t rdf:type ?z . VALUES ( ?z ) { ( ontology:Q502895 ) ( ontology:Q2235308 ) } } GROUP BY ?e } } . { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?a ) WHERE { { ?h rdf:type ontology:Q198 . ?w rdf:type ontology:Q502895 . ?w property:P607 ?h } UNION { ?w property:P607 ?h . ?h rdf:type ontology:Q198 . ?w rdf:type ontology:Q2235308 } } GROUP BY ?h } . FILTER ( ?a = ?q ) }
action argmin
action union
action find_reverse_tuple_counts
relation conflict
type war
type common name
action find_reverse_tuple_counts
relation conflict
type war
type ship type
[[{'concept': 'common name'}, {'concept': 'ship type'}], 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?q ) { SELECT DISTINCT ?e ( COUNT ( ?t ) AS ?s ) WHERE { ?t rdf:type ?z . VALUES ( ?z ) { ( ontology:common_name ) ( ontology:ship_type ) } } GROUP BY ?e } } . { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?a ) WHERE { { ?h rdf:type ontology:war . ?w rdf:type ontology:common_name . ?w property:conflict ?h } UNION { ?w property:conflict ?h . ?h rdf:type ontology:war . ?w rdf:type ontology:ship_type } } GROUP BY ?h } . FILTER ( ?a = ?q ) }
[]
war common name ship type
Q17984356 Q15860072 Q18121212
SYSTEM
Iraqi Civil War, 2014–16 Russian military intervention in Ukraine, American-led intervention in Syria
Q18121212 Q15860072 Q17984356 Q17183365 Q18159629
(c(Q502895)|c(Q2235308),P607,c(Q198))
action argmin
action union
action find_reverse_tuple_counts
relation P607
type Q198
type Q502895
action find_reverse_tuple_counts
relation P607
type Q198
type Q2235308
Min number of people and ship types took in part the [ANSWERS]
[[{'concept': 'Q502895'}, {'concept': 'Q2235308'}], 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?q ) { SELECT DISTINCT ?e ( COUNT ( ?t ) AS ?s ) WHERE { ?t rdf:type ?z . VALUES ( ?z ) { ( ontology:Q502895 ) ( ontology:Q2235308 ) } } GROUP BY ?e } } . { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?a ) WHERE { { ?h rdf:type ontology:Q198 . ?w rdf:type ontology:Q502895 . ?w property:P607 ?h } UNION { ?w property:P607 ?h . ?h rdf:type ontology:Q198 . ?w rdf:type ontology:Q2235308 } } GROUP BY ?h } . FILTER ( ?a = ?q ) }
American-led intervention in Syria 2014–16 Russian military intervention in Ukraine Iraqi Civil War Sectarian violence in Iraq (2006–07) American-led intervention in Iraq
Min number of people and ship types took in part the Iraqi Civil War, 2014–16 Russian military intervention in Ukraine and American-led intervention in Syria
Iraqi Civil War 2014–16 Russian military intervention in Ukraine American-led intervention in Syria
action argmin
action union
action find_reverse_tuple_counts
relation conflict
type war
type common name
action find_reverse_tuple_counts
relation conflict
type war
type ship type
[[{'concept': 'common name'}, {'concept': 'ship type'}], 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?s ) AS ?q ) { SELECT DISTINCT ?e ( COUNT ( ?t ) AS ?s ) WHERE { ?t rdf:type ?z . VALUES ( ?z ) { ( ontology:common_name ) ( ontology:ship_type ) } } GROUP BY ?e } } . { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?a ) WHERE { { ?h rdf:type ontology:war . ?w rdf:type ontology:common_name . ?w property:conflict ?h } UNION { ?w property:conflict ?h . ?h rdf:type ontology:war . ?w rdf:type ontology:ship_type } } GROUP BY ?h } . FILTER ( ?a = ?q ) }
[]
Clarification
Simple Question|Single Entity|Indirect
Q15860072
P276
Q15324
USER
Where can that war be found ?
(Q15860072,P276,c(Q15324))
action filter_type
action find
entity Q15860072
relation P276
type Q15324
['Q15860072', 'P276', {'concept': 'Q15324'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15324 . resource:Q15860072 property:P276 ?t }
2014–16 Russian military intervention in Ukraine
action filter_type
action find
entity 2014–16 Russian military intervention in Ukraine
relation location
type body of water
['2014–16 Russian military intervention in Ukraine', 'location', {'concept': 'body of water'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:body_of_water . resource:2014–16_Russian_military_intervention_in_Ukraine property:location ?t }
[]
body of water
Clarification for simple ques.
Q17984356
SYSTEM
Did you mean Iraqi Civil War ?
Q17984356 Q15860072 Q18121212
(Q17984356,P276,c(Q15324)) (Q15860072,P276,c(Q15324)) (Q18121212,P276,c(Q15324))
[ANSWER]
['Q17984356', 'P276', {'concept': 'Q15324'}] ['Q15860072', 'P276', {'concept': 'Q15324'}] ['Q18121212', 'P276', {'concept': 'Q15324'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15324 . resource:Q15860072 property:P276 ?t }
Iraqi Civil War 2014–16 Russian military intervention in Ukraine American-led intervention in Syria
Did you mean Iraqi Civil War ?
Iraqi Civil War
['Iraqi Civil War', 'location', {'concept': 'body of water'}] ['2014–16 Russian military intervention in Ukraine', 'location', {'concept': 'body of water'}] ['American-led intervention in Syria', 'location', {'concept': 'body of water'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:body_of_water . resource:2014–16_Russian_military_intervention_in_Ukraine property:location ?t }
[]
Simple Question (Coreferenced)
USER
No, I meant 2014–16 Russian military intervention in Ukraine. Could you tell me the answer for that?
(Q15860072,P276,c(Q15324))
Q15860072
['Q15860072', 'P276', {'concept': 'Q15324'}]
['2014–16 Russian military intervention in Ukraine', 'location', {'concept': 'body of water'}]
[]
Q35000
SYSTEM
Sea of Azov
Q35000
(Q15860072,P276,c(Q15324))
action filter_type
action find
entity Q15860072
relation P276
type Q15324
That war can be found in [ANSWER]
['Q15860072', 'P276', {'concept': 'Q15324'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q15324 . resource:Q15860072 property:P276 ?t }
Sea of Azov
That war can be found in Sea of Azov
Sea of Azov
action filter_type
action find
entity 2014–16 Russian military intervention in Ukraine
relation location
type body of water
['2014–16 Russian military intervention in Ukraine', 'location', {'concept': 'body of water'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:body_of_water . resource:2014–16_Russian_military_intervention_in_Ukraine property:location ?t }
[]