Simple Question (Direct)
Simple Question
Q177497
P69
Q1935049
USER
Where was John G. Barnard educated ?
(Q177497,P69,c(Q1935049))
action filter_type
action find
entity Q177497
relation P69
type Q1935049
['Q177497', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?h WHERE { resource:Q177497 property:P69 ?h . ?h rdf:type ontology:Q1935049 }
John G. Barnard
action filter_type
action find
entity John G. Barnard
relation educated at
type military school
['John G. Barnard', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?h WHERE { resource:John_G._Barnard property:educated_at ?h . ?h rdf:type ontology:military_school }
[]
military school
Q9219
SYSTEM
United States Military Academy at West Point
Q9219
(Q177497,P69,c(Q1935049))
action filter_type
action find
entity Q177497
relation P69
type Q1935049
John G. Barnard was educated the [ANSWER]
['Q177497', 'P69', {'concept': 'Q1935049'}]
SELECT DISTINCT ?h WHERE { resource:Q177497 property:P69 ?h . ?h rdf:type ontology:Q1935049 }
United States Military Academy at West Point
John G. Barnard was educated the United States Military Academy at West Point
United States Military Academy at West Point
action filter_type
action find
entity John G. Barnard
relation educated at
type military school
['John G. Barnard', 'educated at', {'concept': 'military school'}]
SELECT DISTINCT ?h WHERE { resource:John_G._Barnard property:educated_at ?h . ?h rdf:type ontology:military_school }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9219
P112
Q502895
USER
What is the name of the founder of that military school ?
(Q9219,P112,c(Q502895))
action filter_type
action find
entity Q9219
relation P112
type Q502895
['Q9219', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q9219 property:P112 ?o . ?o rdf:type ontology:Q502895 }
United States Military Academy at West Point
action filter_type
action find
entity United States Military Academy at West Point
relation founder
type common name
['United States Military Academy at West Point', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:United_States_Military_Academy_at_West_Point property:founder ?o . ?o rdf:type ontology:common_name }
[]
common name
Q23
SYSTEM
George Washington
Q23
(Q9219,P112,c(Q502895))
action filter_type
action find
entity Q9219
relation P112
type Q502895
The name of the founder of that military school is the [ANSWER]
['Q9219', 'P112', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q9219 property:P112 ?o . ?o rdf:type ontology:Q502895 }
George Washington
The name of the founder of that military school is the George Washington
George Washington
action filter_type
action find
entity United States Military Academy at West Point
relation founder
type common name
['United States Military Academy at West Point', 'founder', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:United_States_Military_Academy_at_West_Point property:founder ?o . ?o rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q9219 Q875637
P69
Q502895
USER
How many people were a student at United States Military Academy at West Point and College of William & Mary ?
(c(Q502895),P69,Q9219) (c(Q502895),P69,Q875637)
action count
action intersection
action filter_type
action find_reverse
entity Q9219
relation P69
type Q502895
action filter_type
action find_reverse
entity Q875637
relation P69
type Q502895
[{'concept': 'Q502895'}, 'P69', 'Q9219'] [{'concept': 'Q502895'}, 'P69', 'Q875637']
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { ?e property:P69 resource:Q875637 . ?e rdf:type ontology:Q502895 . ?e rdf:type ontology:Q502895 . ?e property:P69 resource:Q9219 }
United States Military Academy at West Point College of William & Mary
action count
action intersection
action filter_type
action find_reverse
entity United States Military Academy at West Point
relation educated at
type common name
action filter_type
action find_reverse
entity College of William & Mary
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'United States Military Academy at West Point'] [{'concept': 'common name'}, 'educated at', 'College of William & Mary']
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { ?e property:educated_at resource:College_of_William_&_Mary . ?e rdf:type ontology:common_name . ?e rdf:type ontology:common_name . ?e property:educated_at resource:United_States_Military_Academy_at_West_Point }
[]
common name
SYSTEM
2
Q8009882 Q14602250
(c(Q502895),P69,Q9219) (c(Q502895),P69,Q875637)
action count
action intersection
action filter_type
action find_reverse
entity Q9219
relation P69
type Q502895
action filter_type
action find_reverse
entity Q875637
relation P69
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P69', 'Q9219'] [{'concept': 'Q502895'}, 'P69', 'Q875637']
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { ?e property:P69 resource:Q875637 . ?e rdf:type ontology:Q502895 . ?e rdf:type ontology:Q502895 . ?e property:P69 resource:Q9219 }
William Gilham Delmar T. Spivey
2
action count
action intersection
action filter_type
action find_reverse
entity United States Military Academy at West Point
relation educated at
type common name
action filter_type
action find_reverse
entity College of William & Mary
relation educated at
type common name
[{'concept': 'common name'}, 'educated at', 'United States Military Academy at West Point'] [{'concept': 'common name'}, 'educated at', 'College of William & Mary']
SELECT DISTINCT ( COUNT ( ?e ) AS ?f ) WHERE { ?e property:educated_at resource:College_of_William_&_Mary . ?e rdf:type ontology:common_name . ?e rdf:type ontology:common_name . ?e property:educated_at resource:United_States_Military_Academy_at_West_Point }
[]