Simple Question (Direct)
Simple Question
Q4741834
P21
Q290
USER
Which sex does Ambrose McCarthy Patterson belong to ?
(Q4741834,P21,c(Q290))
action filter_type
action find
entity Q4741834
relation P21
type Q290
['Q4741834', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q4741834 property:P21 ?s . ?s rdf:type ontology:Q290 }
Ambrose McCarthy Patterson
action filter_type
action find
entity Ambrose McCarthy Patterson
relation gender
type sex
['Ambrose McCarthy Patterson', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Ambrose_McCarthy_Patterson property:gender ?s . ?s rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q4741834,P21,c(Q290))
action filter_type
action find
entity Q4741834
relation P21
type Q290
Ambrose McCarthy Patterson belongs to [ANSWER]
['Q4741834', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?s WHERE { resource:Q4741834 property:P21 ?s . ?s rdf:type ontology:Q290 }
male
Ambrose McCarthy Patterson belongs to male
male
action filter_type
action find
entity Ambrose McCarthy Patterson
relation gender
type sex
['Ambrose McCarthy Patterson', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?s WHERE { resource:Ambrose_McCarthy_Patterson property:gender ?s . ?s rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q4741834
P108
Q3918
USER
Which university does that person work for ?
(Q6581097,P108,c(Q3918))
action filter_type
action find
entity Q4741834
relation P108
type Q3918
['Q6581097', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q3918 . resource:Q4741834 property:P108 ?r }
Ambrose McCarthy Patterson
action filter_type
action find
entity Ambrose McCarthy Patterson
relation employer
type university
['male', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:university . resource:Ambrose_McCarthy_Patterson property:employer ?r }
[]
university
Q219563
SYSTEM
University of Washington
Q219563
(Q6581097,P108,c(Q3918))
action filter_type
action find
entity Q4741834
relation P108
type Q3918
That person works at [ANSWER]
['Q6581097', 'P108', {'concept': 'Q3918'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:Q3918 . resource:Q4741834 property:P108 ?r }
University of Washington
That person works at University of Washington
University of Washington
action filter_type
action find
entity Ambrose McCarthy Patterson
relation employer
type university
['male', 'employer', {'concept': 'university'}]
SELECT DISTINCT ?r WHERE { ?r rdf:type ontology:university . resource:Ambrose_McCarthy_Patterson property:employer ?r }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators|Indirect
P137
Q1076486 Q811979
USER
How many sports venues and architectural structures were operated by that university ?
(c(Q1076486),P137,Q219563) (c(Q811979),P137,Q219563) (c(Q1076486),P137,Q219563) (c(Q811979),P137,Q219563)
action count
action union
action filter_type
action find_reverse
entity Q219563
relation P137
type Q1076486
action filter_type
action find_reverse
entity Q219563
relation P137
type Q811979
[{'concept': 'Q1076486'}, 'P137', 'Q219563'] [{'concept': 'Q811979'}, 'P137', 'Q219563'] [{'concept': 'Q1076486'}, 'P137', 'Q219563'] [{'concept': 'Q811979'}, 'P137', 'Q219563']
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { ?c property:P137 resource:Q219563 . ?c rdf:type ontology:Q1076486 } UNION { ?c property:P137 resource:Q219563 . ?c rdf:type ontology:Q811979 } }
action count
action union
action filter_type
action find_reverse
entity University of Washington
relation operator
type sports venue
action filter_type
action find_reverse
entity University of Washington
relation operator
type architectural structure
[{'concept': 'sports venue'}, 'operator', 'University of Washington'] [{'concept': 'architectural structure'}, 'operator', 'University of Washington'] [{'concept': 'sports venue'}, 'operator', 'University of Washington'] [{'concept': 'architectural structure'}, 'operator', 'University of Washington']
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { ?c property:operator resource:University_of_Washington . ?c rdf:type ontology:sports_venue } UNION { ?c property:operator resource:University_of_Washington . ?c rdf:type ontology:architectural_structure } }
[]
sports venue architectural structure
SYSTEM
1 sports venues and 1 architectural structures
Q1136463 Q4708490
(c(Q1076486),P137,Q219563) (c(Q811979),P137,Q219563) (c(Q1076486),P137,Q219563) (c(Q811979),P137,Q219563)
action count
action union
action filter_type
action find_reverse
entity Q219563
relation P137
type Q1076486
action filter_type
action find_reverse
entity Q219563
relation P137
type Q811979
[ANSWER]
[{'concept': 'Q1076486'}, 'P137', 'Q219563'] [{'concept': 'Q811979'}, 'P137', 'Q219563'] [{'concept': 'Q1076486'}, 'P137', 'Q219563'] [{'concept': 'Q811979'}, 'P137', 'Q219563']
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { ?c property:P137 resource:Q219563 . ?c rdf:type ontology:Q1076486 } UNION { ?c property:P137 resource:Q219563 . ?c rdf:type ontology:Q811979 } }
Husky Stadium Alaska Airlines Arena at Hec Edmundson Pavilion
1 sports venues and 1 architectural structures
action count
action union
action filter_type
action find_reverse
entity University of Washington
relation operator
type sports venue
action filter_type
action find_reverse
entity University of Washington
relation operator
type architectural structure
[{'concept': 'sports venue'}, 'operator', 'University of Washington'] [{'concept': 'architectural structure'}, 'operator', 'University of Washington'] [{'concept': 'sports venue'}, 'operator', 'University of Washington'] [{'concept': 'architectural structure'}, 'operator', 'University of Washington']
SELECT DISTINCT ( COUNT ( ?c ) AS ?w ) WHERE { { ?c property:operator resource:University_of_Washington . ?c rdf:type ontology:sports_venue } UNION { ?c property:operator resource:University_of_Washington . ?c rdf:type ontology:architectural_structure } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q219563
P159
Q56061
USER
Where is the head office for University of Washington located ?
(Q219563,P159,c(Q56061))
action filter_type
action find
entity Q219563
relation P159
type Q56061
['Q219563', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q219563 property:P159 ?a . ?a rdf:type ontology:Q56061 }
University of Washington
action filter_type
action find
entity University of Washington
relation headquarters location
type administrative territorial entity
['University of Washington', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:University_of_Washington property:headquarters_location ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q5083
SYSTEM
Seattle
Q5083
(Q219563,P159,c(Q56061))
action filter_type
action find
entity Q219563
relation P159
type Q56061
The head office for University of Washington is located in [ANSWER]
['Q219563', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q219563 property:P159 ?a . ?a rdf:type ontology:Q56061 }
Seattle
The head office for University of Washington is located in Seattle
Seattle
action filter_type
action find
entity University of Washington
relation headquarters location
type administrative territorial entity
['University of Washington', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:University_of_Washington property:headquarters_location ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q917869
Q56061
USER
And also tell me about Bristol Bay Productions?
(Q917869,P159,c(Q56061))
action filter_type
action find
entity Q917869
relation P159
type Q56061
['Q917869', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q917869 property:P159 ?o . ?o rdf:type ontology:Q56061 }
Bristol Bay Productions
action filter_type
action find
entity Bristol Bay Productions
relation headquarters location
type administrative territorial entity
['Bristol Bay Productions', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Bristol_Bay_Productions property:headquarters_location ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q127856
SYSTEM
Beverly Hills
Q127856
(Q917869,P159,c(Q56061))
action filter_type
action find
entity Q917869
relation P159
type Q56061
[ANSWER]
['Q917869', 'P159', {'concept': 'Q56061'}]
SELECT DISTINCT ?o WHERE { resource:Q917869 property:P159 ?o . ?o rdf:type ontology:Q56061 }
Beverly Hills
Beverly Hills
action filter_type
action find
entity Bristol Bay Productions
relation headquarters location
type administrative territorial entity
['Bristol Bay Productions', 'headquarters location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Bristol_Bay_Productions property:headquarters_location ?o . ?o rdf:type ontology:administrative_territorial_entity }
[]