Simple Question (Direct)
Simple Question
Q3157455
P607
Q1190554
USER
Which battle did Ivan Pozharsky take part in ?
(Q3157455,P607,c(Q1190554))
action filter_type
action find
entity Q3157455
relation P607
type Q1190554
['Q3157455', 'P607', {'concept': 'Q1190554'}]
SELECT DISTINCT ?n WHERE { resource:Q3157455 property:P607 ?n . ?n rdf:type ontology:Q1190554 }
Ivan Pozharsky
action filter_type
action find
entity Ivan Pozharsky
relation conflict
type event
['Ivan Pozharsky', 'conflict', {'concept': 'event'}]
SELECT DISTINCT ?n WHERE { resource:Ivan_Pozharsky property:conflict ?n . ?n rdf:type ontology:event }
[]
event
Q697579
SYSTEM
Battle of Lake Khasan
Q697579
(Q3157455,P607,c(Q1190554))
action filter_type
action find
entity Q3157455
relation P607
type Q1190554
Ivan Pozharsky took part in [ANSWER]
['Q3157455', 'P607', {'concept': 'Q1190554'}]
SELECT DISTINCT ?n WHERE { resource:Q3157455 property:P607 ?n . ?n rdf:type ontology:Q1190554 }
Battle of Lake Khasan
Ivan Pozharsky took part in Battle of Lake Khasan
Battle of Lake Khasan
action filter_type
action find
entity Ivan Pozharsky
relation conflict
type event
['Ivan Pozharsky', 'conflict', {'concept': 'event'}]
SELECT DISTINCT ?n WHERE { resource:Ivan_Pozharsky property:conflict ?n . ?n rdf:type ontology:event }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q697579 Q159 Q1025
P17
Q15617994
USER
Is that event located in Russia and Mauritania ?
(Q697579,P17,Q159) (Q697579,P17,Q1025)
action is_in
entity Q697579
action intersection
action find_reverse
entity Q159
relation P17
action find_reverse
entity Q1025
relation P17
['Q697579', 'P17', 'Q159'] ['Q697579', 'P17', 'Q1025']
ASK WHERE { resource:Q697579 property:P17 resource:Q159 . resource:Q697579 property:P17 resource:Q1025 }
Battle of Lake Khasan Russia Mauritania
action is_in
entity Battle of Lake Khasan
action intersection
action find_reverse
entity Russia
relation country
action find_reverse
entity Mauritania
relation country
['Battle of Lake Khasan', 'country', 'Russia'] ['Battle of Lake Khasan', 'country', 'Mauritania']
ASK WHERE { resource:Battle_of_Lake_Khasan property:country resource:Russia . resource:Battle_of_Lake_Khasan property:country resource:Mauritania }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q697579,P17,Q159) (Q697579,P17,Q1025)
action is_in
entity Q697579
action intersection
action find_reverse
entity Q159
relation P17
action find_reverse
entity Q1025
relation P17
[ANSWER]
['Q697579', 'P17', 'Q159'] ['Q697579', 'P17', 'Q1025']
ASK WHERE { resource:Q697579 property:P17 resource:Q159 . resource:Q697579 property:P17 resource:Q1025 }
YES and NO respectively
action is_in
entity Battle of Lake Khasan
action intersection
action find_reverse
entity Russia
relation country
action find_reverse
entity Mauritania
relation country
['Battle of Lake Khasan', 'country', 'Russia'] ['Battle of Lake Khasan', 'country', 'Mauritania']
ASK WHERE { resource:Battle_of_Lake_Khasan property:country resource:Russia . resource:Battle_of_Lake_Khasan property:country resource:Mauritania }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q697579 Q4488927
P607
Q502895
USER
How many people did Battle of Lake Khasan or Pacification of Libya fight in ?
(c(Q502895),P607,Q697579) (c(Q502895),P607,Q4488927)
action count
action union
action filter_type
action find_reverse
entity Q697579
relation P607
type Q502895
action filter_type
action find_reverse
entity Q4488927
relation P607
type Q502895
[{'concept': 'Q502895'}, 'P607', 'Q697579'] [{'concept': 'Q502895'}, 'P607', 'Q4488927']
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { ?j property:P607 ?b . VALUES ( ?b ) { ( resource:Q4488927 ) ( resource:Q697579 ) } }
Battle of Lake Khasan Pacification of Libya
action count
action union
action filter_type
action find_reverse
entity Battle of Lake Khasan
relation conflict
type common name
action filter_type
action find_reverse
entity Pacification of Libya
relation conflict
type common name
[{'concept': 'common name'}, 'conflict', 'Battle of Lake Khasan'] [{'concept': 'common name'}, 'conflict', 'Pacification of Libya']
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { ?j property:conflict ?b . VALUES ( ?b ) { ( resource:Pacification_of_Libya ) ( resource:Battle_of_Lake_Khasan ) } }
[]
common name
SYSTEM
9
Q3157455 Q200085 Q2497621 Q481381 Q4137697 Q18203719 Q4153599 Q571045 Q319156
(c(Q502895),P607,Q697579) (c(Q502895),P607,Q4488927)
action count
action union
action filter_type
action find_reverse
entity Q697579
relation P607
type Q502895
action filter_type
action find_reverse
entity Q4488927
relation P607
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P607', 'Q697579'] [{'concept': 'Q502895'}, 'P607', 'Q4488927']
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { ?j property:P607 ?b . VALUES ( ?b ) { ( resource:Q4488927 ) ( resource:Q697579 ) } }
Ivan Pozharsky Pietro Badoglio David Dragunsky Boris Yeryomin Andrei Getman Georgy Osipov Viktor Josifovič Davidkov Kōtoku Satō Rodolfo Graziani
9
action count
action union
action filter_type
action find_reverse
entity Battle of Lake Khasan
relation conflict
type common name
action filter_type
action find_reverse
entity Pacification of Libya
relation conflict
type common name
[{'concept': 'common name'}, 'conflict', 'Battle of Lake Khasan'] [{'concept': 'common name'}, 'conflict', 'Pacification of Libya']
SELECT DISTINCT ( COUNT ( ?j ) AS ?s ) WHERE { ?j property:conflict ?b . VALUES ( ?b ) { ( resource:Pacification_of_Libya ) ( resource:Battle_of_Lake_Khasan ) } }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P361
Q1190554 Q176799 Q180684
USER
Which events are max number of military units or conflicts a part of ?
(c(Q176799)|c(Q180684),P361,c(Q1190554))
action argmax
action union
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q176799
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q180684
[[{'concept': 'Q176799'}, {'concept': 'Q180684'}], 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?b ) WHERE { VALUES ( ?w ) { ( ontology:Q176799 ) ( ontology:Q180684 ) } . ?u rdf:type ?w } GROUP BY ?p } . FILTER ( ?b = ?j ) . { SELECT DISTINCT ( MAX ( ?h ) AS ?j ) { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?h ) WHERE { { ?s property:P361 ?e . ?e rdf:type ontology:Q1190554 . ?s rdf:type ontology:Q180684 } UNION { ?s property:P361 ?e . ?e rdf:type ontology:Q1190554 . ?s rdf:type ontology:Q176799 } } GROUP BY ?e } } }
action argmax
action union
action find_reverse_tuple_counts
relation part of
type event
type military unit
action find_reverse_tuple_counts
relation part of
type event
type conflict
[[{'concept': 'military unit'}, {'concept': 'conflict'}], 'part of', {'concept': 'event'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?b ) WHERE { VALUES ( ?w ) { ( ontology:military_unit ) ( ontology:conflict ) } . ?u rdf:type ?w } GROUP BY ?p } . FILTER ( ?b = ?j ) . { SELECT DISTINCT ( MAX ( ?h ) AS ?j ) { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?h ) WHERE { { ?s property:part_of ?e . ?e rdf:type ontology:event . ?s rdf:type ontology:conflict } UNION { ?s property:part_of ?e . ?e rdf:type ontology:event . ?s rdf:type ontology:military_unit } } GROUP BY ?e } } }
[]
event military unit conflict
Q1842866
SYSTEM
Battle of Aleppo
Q1842866
(c(Q176799)|c(Q180684),P361,c(Q1190554))
action argmax
action union
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q176799
action find_reverse_tuple_counts
relation P361
type Q1190554
type Q180684
Which events is max number of military units or conflicts a part of
[[{'concept': 'Q176799'}, {'concept': 'Q180684'}], 'P361', {'concept': 'Q1190554'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?b ) WHERE { VALUES ( ?w ) { ( ontology:Q176799 ) ( ontology:Q180684 ) } . ?u rdf:type ?w } GROUP BY ?p } . FILTER ( ?b = ?j ) . { SELECT DISTINCT ( MAX ( ?h ) AS ?j ) { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?h ) WHERE { { ?s property:P361 ?e . ?e rdf:type ontology:Q1190554 . ?s rdf:type ontology:Q180684 } UNION { ?s property:P361 ?e . ?e rdf:type ontology:Q1190554 . ?s rdf:type ontology:Q176799 } } GROUP BY ?e } } }
Battle of Aleppo
Which events is max number of military units or conflicts a part of
Battle of Aleppo
action argmax
action union
action find_reverse_tuple_counts
relation part of
type event
type military unit
action find_reverse_tuple_counts
relation part of
type event
type conflict
[[{'concept': 'military unit'}, {'concept': 'conflict'}], 'part of', {'concept': 'event'}]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ?p ( COUNT ( ?u ) AS ?b ) WHERE { VALUES ( ?w ) { ( ontology:military_unit ) ( ontology:conflict ) } . ?u rdf:type ?w } GROUP BY ?p } . FILTER ( ?b = ?j ) . { SELECT DISTINCT ( MAX ( ?h ) AS ?j ) { SELECT DISTINCT ?e ( COUNT ( ?s ) AS ?h ) WHERE { { ?s property:part_of ?e . ?e rdf:type ontology:event . ?s rdf:type ontology:conflict } UNION { ?s property:part_of ?e . ?e rdf:type ontology:event . ?s rdf:type ontology:military_unit } } GROUP BY ?e } } }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q1842866 Q7097569
P361
Q180684
USER
Is Operation Spear a component of that event ?
(Q7097569,P361,Q1842866)
action is_in
entity Q7097569
action find
entity Q1842866
relation P361
['Q7097569', 'P361', 'Q1842866']
ASK WHERE { resource:Q1842866 property:P361 resource:Q7097569 }
Battle of Aleppo Operation Spear
action is_in
entity Operation Spear
action find
entity Battle of Aleppo
relation part of
['Operation Spear', 'part of', 'Battle of Aleppo']
ASK WHERE { resource:Battle_of_Aleppo property:part_of resource:Operation_Spear }
[]
conflict
SYSTEM
NO
(Q7097569,P361,Q1842866)
action is_in
entity Q7097569
action find
entity Q1842866
relation P361
[ANSWER]
['Q7097569', 'P361', 'Q1842866']
ASK WHERE { resource:Q1842866 property:P361 resource:Q7097569 }
No
action is_in
entity Operation Spear
action find
entity Battle of Aleppo
relation part of
['Operation Spear', 'part of', 'Battle of Aleppo']
ASK WHERE { resource:Battle_of_Aleppo property:part_of resource:Operation_Spear }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q3157455
P20
Q337567
USER
Where did Ivan Pozharsky die ?
(Q3157455,P20,c(Q337567))
action filter_type
action find
entity Q3157455
relation P20
type Q337567
['Q3157455', 'P20', {'concept': 'Q337567'}]
SELECT DISTINCT ?u WHERE { resource:Q3157455 property:P20 ?u . ?u rdf:type ontology:Q337567 }
Ivan Pozharsky
action filter_type
action find
entity Ivan Pozharsky
relation place of death
type still waters
['Ivan Pozharsky', 'place of death', {'concept': 'still waters'}]
SELECT DISTINCT ?u WHERE { resource:Ivan_Pozharsky property:place_of_death ?u . ?u rdf:type ontology:still_waters }
[]
still waters
Q718192
SYSTEM
Lake Khasan
Q718192
(Q3157455,P20,c(Q337567))
action filter_type
action find
entity Q3157455
relation P20
type Q337567
Ivan Pozharsky died in [ANSWER]
['Q3157455', 'P20', {'concept': 'Q337567'}]
SELECT DISTINCT ?u WHERE { resource:Q3157455 property:P20 ?u . ?u rdf:type ontology:Q337567 }
Lake Khasan
Ivan Pozharsky died in Lake Khasan
Lake Khasan
action filter_type
action find
entity Ivan Pozharsky
relation place of death
type still waters
['Ivan Pozharsky', 'place of death', {'concept': 'still waters'}]
SELECT DISTINCT ?u WHERE { resource:Ivan_Pozharsky property:place_of_death ?u . ?u rdf:type ontology:still_waters }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q718192
P276
Q1190554
USER
Which event is situated at that still waters ?
(c(Q1190554),P276,Q718192)
action filter_type
action find_reverse
entity Q718192
relation P276
type Q1190554
[{'concept': 'Q1190554'}, 'P276', 'Q718192']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q1190554 . ?c property:P276 resource:Q718192 }
Lake Khasan
action filter_type
action find_reverse
entity Lake Khasan
relation location
type event
[{'concept': 'event'}, 'location', 'Lake Khasan']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:event . ?c property:location resource:Lake_Khasan }
[]
event
Q697579
SYSTEM
Battle of Lake Khasan
Q697579
(c(Q1190554),P276,Q718192)
action filter_type
action find_reverse
entity Q718192
relation P276
type Q1190554
[ANSWER] is situated at that still waters
[{'concept': 'Q1190554'}, 'P276', 'Q718192']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q1190554 . ?c property:P276 resource:Q718192 }
Battle of Lake Khasan
Battle of Lake Khasan is situated at that still waters
Battle of Lake Khasan
action filter_type
action find_reverse
entity Lake Khasan
relation location
type event
[{'concept': 'event'}, 'location', 'Lake Khasan']
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:event . ?c property:location resource:Lake_Khasan }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q7107208 Q3157455
P166
Q618779
USER
Which awards were received by Ivan Pozharsky or Osmond Ingram ?
OR((Q3157455,P166,c(Q618779)), (Q7107208,P166,c(Q618779)))
action filter_type
action union
action find
entity Q3157455
relation P166
action find
entity Q7107208
relation P166
type Q618779
{'OR': [['Q3157455', 'P166', {'concept': 'Q618779'}], ['Q7107208', 'P166', {'concept': 'Q618779'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q7107208 property:P166 ?i } UNION { resource:Q3157455 property:P166 ?i } } . ?i rdf:type ontology:Q618779 }
Osmond Ingram Ivan Pozharsky
action filter_type
action union
action find
entity Ivan Pozharsky
relation award received
action find
entity Osmond Ingram
relation award received
type award
{'OR': [['Ivan Pozharsky', 'award received', {'concept': 'award'}], ['Osmond Ingram', 'award received', {'concept': 'award'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Osmond_Ingram property:award_received ?i } UNION { resource:Ivan_Pozharsky property:award_received ?i } } . ?i rdf:type ontology:award }
[]
award
Q178473 Q185493 Q203535 Q695106
SYSTEM
Hero of the Soviet Union, Order of Lenin, Medal of Honor, Order of the Red Star
Q178473 Q185493 Q203535 Q695106
OR((Q3157455,P166,c(Q618779)), (Q7107208,P166,c(Q618779)))
action filter_type
action union
action find
entity Q3157455
relation P166
action find
entity Q7107208
relation P166
type Q618779
[ANSWERS] were received by Ivan Pozharsky or Osmond Ingram
{'OR': [['Q3157455', 'P166', {'concept': 'Q618779'}], ['Q7107208', 'P166', {'concept': 'Q618779'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q7107208 property:P166 ?i } UNION { resource:Q3157455 property:P166 ?i } } . ?i rdf:type ontology:Q618779 }
Hero of the Soviet Union Order of Lenin Medal of Honor Order of the Red Star
Hero of the Soviet Union, Order of Lenin, Medal of Honor and Order of the Red Star were received by Ivan Pozharsky or Osmond Ingram
Hero of the Soviet Union Order of Lenin Medal of Honor Order of the Red Star
action filter_type
action union
action find
entity Ivan Pozharsky
relation award received
action find
entity Osmond Ingram
relation award received
type award
{'OR': [['Ivan Pozharsky', 'award received', {'concept': 'award'}], ['Osmond Ingram', 'award received', {'concept': 'award'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Osmond_Ingram property:award_received ?i } UNION { resource:Ivan_Pozharsky property:award_received ?i } } . ?i rdf:type ontology:award }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7107208
P241
Q781132
USER
Which military branch did Osmond Ingram belong to ?
(Q7107208,P241,c(Q781132))
action filter_type
action find
entity Q7107208
relation P241
type Q781132
['Q7107208', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?w WHERE { resource:Q7107208 property:P241 ?w . ?w rdf:type ontology:Q781132 }
Osmond Ingram
action filter_type
action find
entity Osmond Ingram
relation military branch
type military branch
['Osmond Ingram', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?w WHERE { resource:Osmond_Ingram property:military_branch ?w . ?w rdf:type ontology:military_branch }
[]
military branch
Q11220
SYSTEM
United States Navy
Q11220
(Q7107208,P241,c(Q781132))
action filter_type
action find
entity Q7107208
relation P241
type Q781132
Osmond Ingram belonged to [ANSWER]
['Q7107208', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?w WHERE { resource:Q7107208 property:P241 ?w . ?w rdf:type ontology:Q781132 }
United States Navy
Osmond Ingram belonged to United States Navy
United States Navy
action filter_type
action find
entity Osmond Ingram
relation military branch
type military branch
['Osmond Ingram', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?w WHERE { resource:Osmond_Ingram property:military_branch ?w . ?w rdf:type ontology:military_branch }
[]