Simple Question (Direct)
Simple Question
Q4723102
P607
Q198
USER
What battle were Alfred M. Pride a part of ?
(Q4723102,P607,c(Q198))
action filter_type
action find
entity Q4723102
relation P607
type Q198
['Q4723102', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q198 . resource:Q4723102 property:P607 ?g }
Alfred M. Pride
action filter_type
action find
entity Alfred M. Pride
relation conflict
type war
['Alfred M. Pride', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:war . resource:Alfred_M._Pride property:conflict ?g }
[]
war
Q362 Q361
SYSTEM
World War II, World War I
Q362 Q361
(Q4723102,P607,c(Q198))
action filter_type
action find
entity Q4723102
relation P607
type Q198
[ANSWERS] were Alfred M. Pride a part of
['Q4723102', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q198 . resource:Q4723102 property:P607 ?g }
World War II World War I
World War II and World War I were Alfred M. Pride a part of
World War II World War I
action filter_type
action find
entity Alfred M. Pride
relation conflict
type war
['Alfred M. Pride', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:war . resource:Alfred_M._Pride property:conflict ?g }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4723102
P119
Q39614
USER
Which cemetery is the resting place of Alfred M. Pride ?
(Q4723102,P119,c(Q39614))
action filter_type
action find
entity Q4723102
relation P119
type Q39614
['Q4723102', 'P119', {'concept': 'Q39614'}]
SELECT DISTINCT ?w WHERE { resource:Q4723102 property:P119 ?w . ?w rdf:type ontology:Q39614 }
Alfred M. Pride
action filter_type
action find
entity Alfred M. Pride
relation place of burial
type cemetery
['Alfred M. Pride', 'place of burial', {'concept': 'cemetery'}]
SELECT DISTINCT ?w WHERE { resource:Alfred_M._Pride property:place_of_burial ?w . ?w rdf:type ontology:cemetery }
[]
cemetery
Q216344
SYSTEM
Arlington National Cemetery
Q216344
(Q4723102,P119,c(Q39614))
action filter_type
action find
entity Q4723102
relation P119
type Q39614
The [ANSWER] is the resting place of Alfred M. Pride
['Q4723102', 'P119', {'concept': 'Q39614'}]
SELECT DISTINCT ?w WHERE { resource:Q4723102 property:P119 ?w . ?w rdf:type ontology:Q39614 }
Arlington National Cemetery
The Arlington National Cemetery is the resting place of Alfred M. Pride
Arlington National Cemetery
action filter_type
action find
entity Alfred M. Pride
relation place of burial
type cemetery
['Alfred M. Pride', 'place of burial', {'concept': 'cemetery'}]
SELECT DISTINCT ?w WHERE { resource:Alfred_M._Pride property:place_of_burial ?w . ?w rdf:type ontology:cemetery }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4723102
P166
Q1788716
USER
Which military decoration was received by Alfred M. Pride ?
(Q4723102,P166,c(Q1788716))
action filter_type
action find
entity Q4723102
relation P166
type Q1788716
['Q4723102', 'P166', {'concept': 'Q1788716'}]
SELECT DISTINCT ?r WHERE { resource:Q4723102 property:P166 ?r . ?r rdf:type ontology:Q1788716 }
Alfred M. Pride
action filter_type
action find
entity Alfred M. Pride
relation award received
type military decoration
['Alfred M. Pride', 'award received', {'concept': 'military decoration'}]
SELECT DISTINCT ?r WHERE { resource:Alfred_M._Pride property:award_received ?r . ?r rdf:type ontology:military_decoration }
[]
military decoration
Q17231624
SYSTEM
legionnaire of Legion of Merit
Q17231624
(Q4723102,P166,c(Q1788716))
action filter_type
action find
entity Q4723102
relation P166
type Q1788716
The [ANSWER] was received by Alfred M. Pride
['Q4723102', 'P166', {'concept': 'Q1788716'}]
SELECT DISTINCT ?r WHERE { resource:Q4723102 property:P166 ?r . ?r rdf:type ontology:Q1788716 }
legionnaire of Legion of Merit
The legionnaire of Legion of Merit was received by Alfred M. Pride
legionnaire of Legion of Merit
action filter_type
action find
entity Alfred M. Pride
relation award received
type military decoration
['Alfred M. Pride', 'award received', {'concept': 'military decoration'}]
SELECT DISTINCT ?r WHERE { resource:Alfred_M._Pride property:award_received ?r . ?r rdf:type ontology:military_decoration }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4723102
P241
Q781132
USER
Which military branch did Alfred M. Pride belong to ?
(Q4723102,P241,c(Q781132))
action filter_type
action find
entity Q4723102
relation P241
type Q781132
['Q4723102', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?m WHERE { resource:Q4723102 property:P241 ?m . ?m rdf:type ontology:Q781132 }
Alfred M. Pride
action filter_type
action find
entity Alfred M. Pride
relation military branch
type military branch
['Alfred M. Pride', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?m WHERE { resource:Alfred_M._Pride property:military_branch ?m . ?m rdf:type ontology:military_branch }
[]
military branch
Q11220
SYSTEM
United States Navy
Q11220
(Q4723102,P241,c(Q781132))
action filter_type
action find
entity Q4723102
relation P241
type Q781132
Alfred M. Pride belonged to [ANSWER]
['Q4723102', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?m WHERE { resource:Q4723102 property:P241 ?m . ?m rdf:type ontology:Q781132 }
United States Navy
Alfred M. Pride belonged to United States Navy
United States Navy
action filter_type
action find
entity Alfred M. Pride
relation military branch
type military branch
['Alfred M. Pride', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?m WHERE { resource:Alfred_M._Pride property:military_branch ?m . ?m rdf:type ontology:military_branch }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q11220 Q30
P17
Q15617994
USER
Is that military branch located in United States of America ?
(Q11220,P17,Q30)
action is_in
entity Q30
action find
entity Q11220
relation P17
['Q11220', 'P17', 'Q30']
ASK WHERE { resource:Q11220 property:P17 resource:Q30 }
United States Navy United States of America
action is_in
entity United States of America
action find
entity United States Navy
relation country
['United States Navy', 'country', 'United States of America']
ASK WHERE { resource:United_States_Navy property:country resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q11220,P17,Q30)
action is_in
entity Q30
action find
entity Q11220
relation P17
[ANSWER]
['Q11220', 'P17', 'Q30']
ASK WHERE { resource:Q11220 property:P17 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity United States Navy
relation country
['United States Navy', 'country', 'United States of America']
ASK WHERE { resource:United_States_Navy property:country resource:United_States_of_America }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q21616248 Q4723102
P27
Q15617994
USER
Which administrative territories do Alfred M. Pride or Dudu Dahan belong to ?
OR((Q4723102,P27,c(Q15617994)), (Q21616248,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q4723102
relation P27
action find
entity Q21616248
relation P27
type Q15617994
{'OR': [['Q4723102', 'P27', {'concept': 'Q15617994'}], ['Q21616248', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?i ) { ( resource:Q21616248 ) ( resource:Q4723102 ) } . ?i property:P27 ?m } . ?m rdf:type ontology:Q15617994 }
Dudu Dahan Alfred M. Pride
action filter_type
action union
action find
entity Alfred M. Pride
relation country of citizenship
action find
entity Dudu Dahan
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Alfred M. Pride', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Dudu Dahan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?i ) { ( resource:Dudu_Dahan ) ( resource:Alfred_M._Pride ) } . ?i property:country_of_citizenship ?m } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30 Q801
SYSTEM
United States of America, Israel
Q30 Q801
OR((Q4723102,P27,c(Q15617994)), (Q21616248,P27,c(Q15617994)))
action filter_type
action union
action find
entity Q4723102
relation P27
action find
entity Q21616248
relation P27
type Q15617994
[ANSWERS] do Alfred M. Pride or Dudu Dahan belong to
{'OR': [['Q4723102', 'P27', {'concept': 'Q15617994'}], ['Q21616248', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?i ) { ( resource:Q21616248 ) ( resource:Q4723102 ) } . ?i property:P27 ?m } . ?m rdf:type ontology:Q15617994 }
United States of America Israel
United States of America and Israel do Alfred M. Pride or Dudu Dahan belong to
United States of America Israel
action filter_type
action union
action find
entity Alfred M. Pride
relation country of citizenship
action find
entity Dudu Dahan
relation country of citizenship
type designation for an administrative territorial entity
{'OR': [['Alfred M. Pride', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}], ['Dudu Dahan', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?m WHERE { { VALUES ( ?i ) { ( resource:Dudu_Dahan ) ( resource:Alfred_M._Pride ) } . ?i property:country_of_citizenship ?m } . ?m rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P361
Q198 Q178561 Q12737077
USER
How many wars are exactly 1 battles or occupations a part of ?
(c(Q178561)|c(Q12737077),P361,c(Q198))
action count
action equal
action union
action find_reverse_tuple_counts
relation P361
type Q198
type Q178561
action find_reverse_tuple_counts
relation P361
type Q198
type Q12737077
value 1
[[{'concept': 'Q178561'}, {'concept': 'Q12737077'}], 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?h ) WHERE { { ?n property:P361 ?x . ?x rdf:type ontology:Q198 . ?n rdf:type ontology:Q178561 } UNION { ?n property:P361 ?x . ?x rdf:type ontology:Q198 . ?n rdf:type ontology:Q12737077 } } GROUP BY ?x } . FILTER ( ?h = 1 ) }
action count
action equal
action union
action find_reverse_tuple_counts
relation part of
type war
type battle
action find_reverse_tuple_counts
relation part of
type war
type occupation
value 1
[[{'concept': 'battle'}, {'concept': 'occupation'}], 'part of', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?h ) WHERE { { ?n property:part_of ?x . ?x rdf:type ontology:war . ?n rdf:type ontology:battle } UNION { ?n property:part_of ?x . ?x rdf:type ontology:war . ?n rdf:type ontology:occupation } } GROUP BY ?x } . FILTER ( ?h = 1 ) }
[]
war battle occupation
SYSTEM
2
Q10859 Q1238338
(c(Q178561)|c(Q12737077),P361,c(Q198))
action count
action equal
action union
action find_reverse_tuple_counts
relation P361
type Q198
type Q178561
action find_reverse_tuple_counts
relation P361
type Q198
type Q12737077
value 1
[ANSWER]
[[{'concept': 'Q178561'}, {'concept': 'Q12737077'}], 'P361', {'concept': 'Q198'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?h ) WHERE { { ?n property:P361 ?x . ?x rdf:type ontology:Q198 . ?n rdf:type ontology:Q178561 } UNION { ?n property:P361 ?x . ?x rdf:type ontology:Q198 . ?n rdf:type ontology:Q12737077 } } GROUP BY ?x } . FILTER ( ?h = 1 ) }
Spanish Civil War Caesar's Civil War
2
action count
action equal
action union
action find_reverse_tuple_counts
relation part of
type war
type battle
action find_reverse_tuple_counts
relation part of
type war
type occupation
value 1
[[{'concept': 'battle'}, {'concept': 'occupation'}], 'part of', {'concept': 'war'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { { SELECT DISTINCT ?x ( COUNT ( ?n ) AS ?h ) WHERE { { ?n property:part_of ?x . ?x rdf:type ontology:war . ?n rdf:type ontology:battle } UNION { ?n property:part_of ?x . ?x rdf:type ontology:war . ?n rdf:type ontology:occupation } } GROUP BY ?x } . FILTER ( ?h = 1 ) }
[]