Simple Question (Direct)
Simple Question
Q3988183
P495
Q15617994
USER
Which administrative territory is the country of origin of The Man Unconquerable ?
(Q3988183,P495,c(Q15617994))
action filter_type
action find
entity Q3988183
relation P495
type Q15617994
['Q3988183', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q3988183 property:P495 ?u . ?u rdf:type ontology:Q15617994 }
The Man Unconquerable
action filter_type
action find
entity The Man Unconquerable
relation country of origin
type designation for an administrative territorial entity
['The Man Unconquerable', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:The_Man_Unconquerable property:country_of_origin ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q3988183,P495,c(Q15617994))
action filter_type
action find
entity Q3988183
relation P495
type Q15617994
[ANSWER] is the country of origin of The Man Unconquerable
['Q3988183', 'P495', {'concept': 'Q15617994'}]
SELECT DISTINCT ?u WHERE { resource:Q3988183 property:P495 ?u . ?u rdf:type ontology:Q15617994 }
United States of America
United States of America is the country of origin of The Man Unconquerable
United States of America
action filter_type
action find
entity The Man Unconquerable
relation country of origin
type designation for an administrative territorial entity
['The Man Unconquerable', 'country of origin', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:The_Man_Unconquerable property:country_of_origin ?u . ?u rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3988183
P57
Q502895
USER
Who was that film genre directed by ?
(Q30,P57,c(Q502895))
action filter_type
action find
entity Q3988183
relation P57
type Q502895
['Q30', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q3988183 property:P57 ?y . ?y rdf:type ontology:Q502895 }
The Man Unconquerable
action filter_type
action find
entity The Man Unconquerable
relation director
type common name
['United States of America', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:The_Man_Unconquerable property:director ?y . ?y rdf:type ontology:common_name }
[]
common name
Q2474020
SYSTEM
Joseph Henabery
Q2474020
(Q30,P57,c(Q502895))
action filter_type
action find
entity Q3988183
relation P57
type Q502895
By that film genre was directed by [ANSWER]
['Q30', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?y WHERE { resource:Q3988183 property:P57 ?y . ?y rdf:type ontology:Q502895 }
Joseph Henabery
By that film genre was directed by Joseph Henabery
Joseph Henabery
action filter_type
action find
entity The Man Unconquerable
relation director
type common name
['United States of America', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?y WHERE { resource:The_Man_Unconquerable property:director ?y . ?y rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2579059 Q30
P36 P20
Q56061
USER
Which administrative territories are called the capital of United States of America or did William H. Harries expire ?
OR((Q30,P36,c(Q56061)), (Q2579059,P20,c(Q56061)))
action filter_type
action union
action find
entity Q30
relation P36
action find
entity Q2579059
relation P20
type Q56061
{'OR': [['Q30', 'P36', {'concept': 'Q56061'}], ['Q2579059', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q56061 . { { resource:Q30 property:P36 ?h } UNION { resource:Q2579059 property:P20 ?h } } }
William H. Harries United States of America
action filter_type
action union
action find
entity United States of America
relation capital
action find
entity William H. Harries
relation place of death
type administrative territorial entity
{'OR': [['United States of America', 'capital', {'concept': 'administrative territorial entity'}], ['William H. Harries', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity . { { resource:United_States_of_America property:capital ?h } UNION { resource:William_H._Harries property:place_of_death ?h } } }
[]
administrative territorial entity
Q60 Q5083 Q61
SYSTEM
New York City, Seattle, Washington, D.C.
Q60 Q5083 Q61
OR((Q30,P36,c(Q56061)), (Q2579059,P20,c(Q56061)))
action filter_type
action union
action find
entity Q30
relation P36
action find
entity Q2579059
relation P20
type Q56061
[ANSWERS]
{'OR': [['Q30', 'P36', {'concept': 'Q56061'}], ['Q2579059', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:Q56061 . { { resource:Q30 property:P36 ?h } UNION { resource:Q2579059 property:P20 ?h } } }
New York City Seattle Washington, D.C.
New York City, Seattle and Washington, D.C. are called the capital of United States of America or did William H. Harries expire
New York City Seattle Washington, D.C.
action filter_type
action union
action find
entity United States of America
relation capital
action find
entity William H. Harries
relation place of death
type administrative territorial entity
{'OR': [['United States of America', 'capital', {'concept': 'administrative territorial entity'}], ['William H. Harries', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?h WHERE { ?h rdf:type ontology:administrative_territorial_entity . { { resource:United_States_of_America property:capital ?h } UNION { resource:William_H._Harries property:place_of_death ?h } } }
[]
Clarification
Quantitative|Count|Logical operators|Indirect
P127
Q838948 Q41176
USER
How many works of art or buildings belongs to that administrative territory ?
(c(Q838948),P127,Q60) (c(Q41176),P127,Q60) (c(Q838948),P127,Q60) (c(Q41176),P127,Q60) (c(Q838948),P127,Q5083) (c(Q41176),P127,Q5083) (c(Q838948),P127,Q61) (c(Q41176),P127,Q61)
[{'concept': 'Q838948'}, 'P127', 'Q60'] [{'concept': 'Q41176'}, 'P127', 'Q60'] [{'concept': 'Q838948'}, 'P127', 'Q60'] [{'concept': 'Q41176'}, 'P127', 'Q60'] [{'concept': 'Q838948'}, 'P127', 'Q5083'] [{'concept': 'Q41176'}, 'P127', 'Q5083'] [{'concept': 'Q838948'}, 'P127', 'Q61'] [{'concept': 'Q41176'}, 'P127', 'Q61']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P127 resource:Q60 } UNION { ?y property:P127 resource:Q60 } UNION { ?z property:P127 resource:Q60 } UNION { ?y property:P127 resource:Q60 } UNION { ?z property:P127 resource:Q17462536 } UNION { ?y property:P127 resource:Q17462536 } UNION { ?z property:P127 resource:Q22442863 } UNION { ?y property:P127 resource:Q22442863 } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q41176 }
[{'concept': 'work of art'}, 'owned by', 'New York City'] [{'concept': 'building'}, 'owned by', 'New York City'] [{'concept': 'work of art'}, 'owned by', 'New York City'] [{'concept': 'building'}, 'owned by', 'New York City'] [{'concept': 'work of art'}, 'owned by', 'Seattle'] [{'concept': 'building'}, 'owned by', 'Seattle'] [{'concept': 'work of art'}, 'owned by', 'Washington, D.C.'] [{'concept': 'building'}, 'owned by', 'Washington, D.C.']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:owned_by resource:New_York_City } UNION { ?y property:owned_by resource:New_York_City } UNION { ?z property:owned_by resource:New_York_City } UNION { ?y property:owned_by resource:New_York_City } UNION { ?z property:owned_by resource:Seattle } UNION { ?y property:owned_by resource:Seattle } UNION { ?z property:owned_by resource:Washington,_D.C. } UNION { ?y property:owned_by resource:Washington,_D.C. } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:building }
[]
work of art building
Quantitative|Count|Mult. entity type|Clarification
Q60
SYSTEM
Did you mean New York City ?
[ANSWER]
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P127 resource:Q60 } UNION { ?y property:P127 resource:Q60 } UNION { ?z property:P127 resource:Q60 } UNION { ?y property:P127 resource:Q60 } UNION { ?z property:P127 resource:Q17462536 } UNION { ?y property:P127 resource:Q17462536 } UNION { ?z property:P127 resource:Q22442863 } UNION { ?y property:P127 resource:Q22442863 } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q41176 }
Did you mean New York City ?
New York City
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:owned_by resource:New_York_City } UNION { ?y property:owned_by resource:New_York_City } UNION { ?z property:owned_by resource:New_York_City } UNION { ?y property:owned_by resource:New_York_City } UNION { ?z property:owned_by resource:Seattle } UNION { ?y property:owned_by resource:Seattle } UNION { ?z property:owned_by resource:Washington,_D.C. } UNION { ?y property:owned_by resource:Washington,_D.C. } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:building }
[]
Quantitative Reasoning (Count) (All)
USER
Yes
(c(Q838948),P127,Q60) (c(Q41176),P127,Q60) (c(Q838948),P127,Q60) (c(Q41176),P127,Q60) (c(Q838948),P127,Q5083) (c(Q41176),P127,Q5083) (c(Q838948),P127,Q61) (c(Q41176),P127,Q61)
[{'concept': 'Q838948'}, 'P127', 'Q60'] [{'concept': 'Q41176'}, 'P127', 'Q60'] [{'concept': 'Q838948'}, 'P127', 'Q60'] [{'concept': 'Q41176'}, 'P127', 'Q60'] [{'concept': 'Q838948'}, 'P127', 'Q5083'] [{'concept': 'Q41176'}, 'P127', 'Q5083'] [{'concept': 'Q838948'}, 'P127', 'Q61'] [{'concept': 'Q41176'}, 'P127', 'Q61']
[{'concept': 'work of art'}, 'owned by', 'New York City'] [{'concept': 'building'}, 'owned by', 'New York City'] [{'concept': 'work of art'}, 'owned by', 'New York City'] [{'concept': 'building'}, 'owned by', 'New York City'] [{'concept': 'work of art'}, 'owned by', 'Seattle'] [{'concept': 'building'}, 'owned by', 'Seattle'] [{'concept': 'work of art'}, 'owned by', 'Washington, D.C.'] [{'concept': 'building'}, 'owned by', 'Washington, D.C.']
[]
SYSTEM
4
Q4742962 Q717956 Q5477291 Q6541981
(c(Q838948),P127,Q60) (c(Q41176),P127,Q60) (c(Q838948),P127,Q60) (c(Q41176),P127,Q60) (c(Q838948),P127,Q5083) (c(Q41176),P127,Q5083) (c(Q838948),P127,Q61) (c(Q41176),P127,Q61)
[ANSWER]
[{'concept': 'Q838948'}, 'P127', 'Q60'] [{'concept': 'Q41176'}, 'P127', 'Q60'] [{'concept': 'Q838948'}, 'P127', 'Q60'] [{'concept': 'Q41176'}, 'P127', 'Q60'] [{'concept': 'Q838948'}, 'P127', 'Q5083'] [{'concept': 'Q41176'}, 'P127', 'Q5083'] [{'concept': 'Q838948'}, 'P127', 'Q61'] [{'concept': 'Q41176'}, 'P127', 'Q61']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:P127 resource:Q60 } UNION { ?y property:P127 resource:Q60 } UNION { ?z property:P127 resource:Q60 } UNION { ?y property:P127 resource:Q60 } UNION { ?z property:P127 resource:Q17462536 } UNION { ?y property:P127 resource:Q17462536 } UNION { ?z property:P127 resource:Q22442863 } UNION { ?y property:P127 resource:Q22442863 } } . ?z rdf:type ontology:Q838948 . ?y rdf:type ontology:Q41176 }
American Airlines Theatre Unisphere Lyric Theatre Liberty Theatre
4
[{'concept': 'work of art'}, 'owned by', 'New York City'] [{'concept': 'building'}, 'owned by', 'New York City'] [{'concept': 'work of art'}, 'owned by', 'New York City'] [{'concept': 'building'}, 'owned by', 'New York City'] [{'concept': 'work of art'}, 'owned by', 'Seattle'] [{'concept': 'building'}, 'owned by', 'Seattle'] [{'concept': 'work of art'}, 'owned by', 'Washington, D.C.'] [{'concept': 'building'}, 'owned by', 'Washington, D.C.']
SELECT DISTINCT ( COUNT ( ?z ) AS ?x ) WHERE { { { ?z property:owned_by resource:New_York_City } UNION { ?y property:owned_by resource:New_York_City } UNION { ?z property:owned_by resource:New_York_City } UNION { ?y property:owned_by resource:New_York_City } UNION { ?z property:owned_by resource:Seattle } UNION { ?y property:owned_by resource:Seattle } UNION { ?z property:owned_by resource:Washington,_D.C. } UNION { ?y property:owned_by resource:Washington,_D.C. } } . ?z rdf:type ontology:work_of_art . ?y rdf:type ontology:building }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q61
P127
Q483110
USER
Which stadium belongs to Washington, D.C. ?
(c(Q483110),P127,Q61)
action filter_type
action find_reverse
entity Q61
relation P127
type Q483110
[{'concept': 'Q483110'}, 'P127', 'Q61']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q483110 . ?n property:P127 resource:Q61 }
Washington, D.C.
action filter_type
action find_reverse
entity Washington, D.C.
relation owned by
type stadium
[{'concept': 'stadium'}, 'owned by', 'Washington, D.C.']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:stadium . ?n property:owned_by resource:Washington,_D.C. }
[]
stadium
Q153312
SYSTEM
Robert F. Kennedy Memorial Stadium
Q153312
(c(Q483110),P127,Q61)
action filter_type
action find_reverse
entity Q61
relation P127
type Q483110
[ANSWER] belongs to Washington, D.C.
[{'concept': 'Q483110'}, 'P127', 'Q61']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:Q483110 . ?n property:P127 resource:Q61 }
Robert F. Kennedy Memorial Stadium
Robert F. Kennedy Memorial Stadium belongs to Washington, D.C.
Robert F. Kennedy Memorial Stadium
action filter_type
action find_reverse
entity Washington, D.C.
relation owned by
type stadium
[{'concept': 'stadium'}, 'owned by', 'Washington, D.C.']
SELECT DISTINCT ?n WHERE { ?n rdf:type ontology:stadium . ?n property:owned_by resource:Washington,_D.C. }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q153312
P800
Q502895
USER
Whose notable work was that stadium ?
(c(Q502895),P800,Q153312)
action filter_type
action find_reverse
entity Q153312
relation P800
type Q502895
[{'concept': 'Q502895'}, 'P800', 'Q153312']
SELECT DISTINCT ?e WHERE { ?e property:P800 resource:Q153312 . ?e rdf:type ontology:Q502895 }
Robert F. Kennedy Memorial Stadium
action filter_type
action find_reverse
entity Robert F. Kennedy Memorial Stadium
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Robert F. Kennedy Memorial Stadium']
SELECT DISTINCT ?e WHERE { ?e property:notable_work resource:Robert_F._Kennedy_Memorial_Stadium . ?e rdf:type ontology:common_name }
[]
common name
Q5538346
SYSTEM
George Dahl
Q5538346
(c(Q502895),P800,Q153312)
action filter_type
action find_reverse
entity Q153312
relation P800
type Q502895
[ANSWER] was that stadium
[{'concept': 'Q502895'}, 'P800', 'Q153312']
SELECT DISTINCT ?e WHERE { ?e property:P800 resource:Q153312 . ?e rdf:type ontology:Q502895 }
George Dahl
George Dahl was that stadium
George Dahl
action filter_type
action find_reverse
entity Robert F. Kennedy Memorial Stadium
relation notable work
type common name
[{'concept': 'common name'}, 'notable work', 'Robert F. Kennedy Memorial Stadium']
SELECT DISTINCT ?e WHERE { ?e property:notable_work resource:Robert_F._Kennedy_Memorial_Stadium . ?e rdf:type ontology:common_name }
[]