Simple Question (Direct)
Simple Question
Q7151931
P21
Q290
USER
Which sex does Paul Lambert have ?
(Q7151931,P21,c(Q290))
action filter_type
action find
entity Q7151931
relation P21
type Q290
['Q7151931', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q7151931 property:P21 ?f . ?f rdf:type ontology:Q290 }
Paul Lambert
action filter_type
action find
entity Paul Lambert
relation gender
type sex
['Paul Lambert', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Paul_Lambert property:gender ?f . ?f rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q7151931,P21,c(Q290))
action filter_type
action find
entity Q7151931
relation P21
type Q290
Paul Lambert has a [ANSWER]
['Q7151931', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?f WHERE { resource:Q7151931 property:P21 ?f . ?f rdf:type ontology:Q290 }
male
Paul Lambert has a male
male
action filter_type
action find
entity Paul Lambert
relation gender
type sex
['Paul Lambert', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?f WHERE { resource:Paul_Lambert property:gender ?f . ?f rdf:type ontology:sex }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7151931
P161
Q15416
USER
Which television program does Paul Lambert star in ?
(c(Q15416),P161,Q7151931)
action filter_type
action find_reverse
entity Q7151931
relation P161
type Q15416
[{'concept': 'Q15416'}, 'P161', 'Q7151931']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15416 . ?a property:P161 resource:Q7151931 }
Paul Lambert
action filter_type
action find_reverse
entity Paul Lambert
relation cast member
type television program
[{'concept': 'television program'}, 'cast member', 'Paul Lambert']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:television_program . ?a property:cast_member resource:Paul_Lambert }
[]
television program
Q7751721
SYSTEM
The Missiles of October
Q7751721
(c(Q15416),P161,Q7151931)
action filter_type
action find_reverse
entity Q7151931
relation P161
type Q15416
Paul Lambert stars in [ANSWER]
[{'concept': 'Q15416'}, 'P161', 'Q7151931']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q15416 . ?a property:P161 resource:Q7151931 }
The Missiles of October
Paul Lambert stars in The Missiles of October
The Missiles of October
action filter_type
action find_reverse
entity Paul Lambert
relation cast member
type television program
[{'concept': 'television program'}, 'cast member', 'Paul Lambert']
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:television_program . ?a property:cast_member resource:Paul_Lambert }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7751721
P840
Q56061
USER
Which administrative territories are the narrative locations of that television program ?
(Q7751721,P840,c(Q56061))
action filter_type
action find
entity Q7751721
relation P840
type Q56061
['Q7751721', 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q7751721 property:P840 ?n . ?n rdf:type ontology:Q56061 }
The Missiles of October
action filter_type
action find
entity The Missiles of October
relation narrative location
type administrative territorial entity
['The Missiles of October', 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:The_Missiles_of_October property:narrative_location ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q60 Q649 Q61
SYSTEM
New York City, Moscow, Washington, D.C.
Q60 Q649 Q61
(Q7751721,P840,c(Q56061))
action filter_type
action find
entity Q7751721
relation P840
type Q56061
[ANSWERS]
['Q7751721', 'P840', {'concept': 'Q56061'}]
SELECT DISTINCT ?n WHERE { resource:Q7751721 property:P840 ?n . ?n rdf:type ontology:Q56061 }
New York City Moscow Washington, D.C.
New York City, Moscow and Washington, D.C. are the narrative locations of that television program
New York City Moscow Washington, D.C.
action filter_type
action find
entity The Missiles of October
relation narrative location
type administrative territorial entity
['The Missiles of October', 'narrative location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?n WHERE { resource:The_Missiles_of_October property:narrative_location ?n . ?n rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q60 Q649 Q61
P206
Q355304
USER
Which watercourses are situated close to those administrative territories ?
(Q60,P206,c(Q355304)) (Q649,P206,c(Q355304)) (Q61,P206,c(Q355304))
action filter_type
action find
entity prev_answer
relation P206
type Q355304
['Q60', 'P206', {'concept': 'Q355304'}] ['Q649', 'P206', {'concept': 'Q355304'}] ['Q61', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?x ) { ( resource:Q60 ) ( resource:Q649 ) ( resource:Q61 ) } . ?i rdf:type ontology:Q355304 . ?x property:P206 ?i }
New York City Moscow Washington, D.C.
action filter_type
action find
entity prev_answer
relation located next to body of water
type watercourse
['New York City', 'located next to body of water', {'concept': 'watercourse'}] ['Moscow', 'located next to body of water', {'concept': 'watercourse'}] ['Washington, D.C.', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?x ) { ( resource:New_York_City ) ( resource:Moscow ) ( resource:Washington,_D.C. ) } . ?i rdf:type ontology:watercourse . ?x property:located_next_to_body_of_water ?i }
[]
watercourse
Q3140 Q175117 Q179444
SYSTEM
Hudson River, Moskva River, Potomac River
Q3140 Q597451 Q928157 Q175117 Q483607 Q179444
(Q60,P206,c(Q355304)) (Q649,P206,c(Q355304)) (Q61,P206,c(Q355304))
action filter_type
action find
entity prev_answer
relation P206
type Q355304
[ANSWERS] are situated close to those administrative territories
['Q60', 'P206', {'concept': 'Q355304'}] ['Q649', 'P206', {'concept': 'Q355304'}] ['Q61', 'P206', {'concept': 'Q355304'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?x ) { ( resource:Q60 ) ( resource:Q649 ) ( resource:Q61 ) } . ?i rdf:type ontology:Q355304 . ?x property:P206 ?i }
Hudson River Harlem River Bronx River Moskva River Anacostia River Potomac River
Hudson River, Moskva River and Potomac River are situated close to those administrative territories
Hudson River Moskva River Potomac River
action filter_type
action find
entity prev_answer
relation located next to body of water
type watercourse
['New York City', 'located next to body of water', {'concept': 'watercourse'}] ['Moscow', 'located next to body of water', {'concept': 'watercourse'}] ['Washington, D.C.', 'located next to body of water', {'concept': 'watercourse'}]
SELECT DISTINCT ?i WHERE { VALUES ( ?x ) { ( resource:New_York_City ) ( resource:Moscow ) ( resource:Washington,_D.C. ) } . ?i rdf:type ontology:watercourse . ?x property:located_next_to_body_of_water ?i }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q3140 Q175117 Q179444
P17
Q15617994
USER
Which administrative territories are Hudson River, Moskva River and Potomac River situated in ?
(Q3140,P17,c(Q15617994)) (Q175117,P17,c(Q15617994)) (Q179444,P17,c(Q15617994))
action union
action filter_type
action find
entity Q3140
relation P17
type Q15617994
action filter_type
action find
entity Q175117
relation P17
type Q15617994
action filter_type
action find
entity Q179444
relation P17
type Q15617994
['Q3140', 'P17', {'concept': 'Q15617994'}] ['Q175117', 'P17', {'concept': 'Q15617994'}] ['Q179444', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { resource:Q3140 property:P17 ?j . ?j rdf:type ontology:Q15617994 } UNION { resource:Q175117 property:P17 ?j . ?j rdf:type ontology:Q15617994 } }
Hudson River Moskva River Potomac River
action union
action filter_type
action find
entity Hudson River
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Moskva River
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Potomac River
relation country
type designation for an administrative territorial entity
['Hudson River', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Moskva River', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Potomac River', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { resource:Hudson_River property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Moskva_River property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
designation for an administrative territorial entity
Q30 Q159 Q30
SYSTEM
United States of America for 1st, 3rd, Russia for 2nd
Q30 Q159 Q30
(Q3140,P17,c(Q15617994)) (Q175117,P17,c(Q15617994)) (Q179444,P17,c(Q15617994))
action union
action filter_type
action find
entity Q3140
relation P17
type Q15617994
action filter_type
action find
entity Q175117
relation P17
type Q15617994
action filter_type
action find
entity Q179444
relation P17
type Q15617994
[ANSWERS]
['Q3140', 'P17', {'concept': 'Q15617994'}] ['Q175117', 'P17', {'concept': 'Q15617994'}] ['Q179444', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?j WHERE { { resource:Q3140 property:P17 ?j . ?j rdf:type ontology:Q15617994 } UNION { resource:Q175117 property:P17 ?j . ?j rdf:type ontology:Q15617994 } }
United States of America Russia United States of America
United States of America, Russia and United States of America are Hudson River, Moskva River and Potomac River situated in
United States of America Russia United States of America
action union
action filter_type
action find
entity Hudson River
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Moskva River
relation country
type designation for an administrative territorial entity
action filter_type
action find
entity Potomac River
relation country
type designation for an administrative territorial entity
['Hudson River', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Moskva River', 'country', {'concept': 'designation for an administrative territorial entity'}] ['Potomac River', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?j WHERE { { resource:Hudson_River property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } UNION { resource:Moskva_River property:country ?j . ?j rdf:type ontology:designation_for_an_administrative_territorial_entity } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q3140
P201
Q337567
USER
Where does that watercourse gush out from ?
(c(Q337567),P201,Q3140)
action filter_type
action find_reverse
entity Q3140
relation P201
type Q337567
[{'concept': 'Q337567'}, 'P201', 'Q3140']
SELECT DISTINCT ?c WHERE { ?c property:P201 resource:Q3140 . ?c rdf:type ontology:Q337567 }
Hudson River
action filter_type
action find_reverse
entity Hudson River
relation lake outflow
type still waters
[{'concept': 'still waters'}, 'lake outflow', 'Hudson River']
SELECT DISTINCT ?c WHERE { ?c property:lake_outflow resource:Hudson_River . ?c rdf:type ontology:still_waters }
[]
still waters
Clarification for simple ques.
Q3140
SYSTEM
Did you mean Hudson River ?
Q30 Q159 Q30
(c(Q337567),P201,Q30) (c(Q337567),P201,Q159) (c(Q337567),P201,Q30)
[ANSWER]
[{'concept': 'Q337567'}, 'P201', 'Q30'] [{'concept': 'Q337567'}, 'P201', 'Q159'] [{'concept': 'Q337567'}, 'P201', 'Q30']
SELECT DISTINCT ?c WHERE { ?c property:P201 resource:Q3140 . ?c rdf:type ontology:Q337567 }
United States of America Russia United States of America
Did you mean Hudson River ?
Hudson River
[{'concept': 'still waters'}, 'lake outflow', 'United States of America'] [{'concept': 'still waters'}, 'lake outflow', 'Russia'] [{'concept': 'still waters'}, 'lake outflow', 'United States of America']
SELECT DISTINCT ?c WHERE { ?c property:lake_outflow resource:Hudson_River . ?c rdf:type ontology:still_waters }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q337567),P201,Q3140)
[{'concept': 'Q337567'}, 'P201', 'Q3140']
[{'concept': 'still waters'}, 'lake outflow', 'Hudson River']
[]
Q5713369
SYSTEM
Henderson Lake
Q5713369
(c(Q337567),P201,Q3140)
action filter_type
action find_reverse
entity Q3140
relation P201
type Q337567
That watercourse gushes out from the [ANSWER]
[{'concept': 'Q337567'}, 'P201', 'Q3140']
SELECT DISTINCT ?c WHERE { ?c property:P201 resource:Q3140 . ?c rdf:type ontology:Q337567 }
Henderson Lake
That watercourse gushes out from the Henderson Lake
Henderson Lake
action filter_type
action find_reverse
entity Hudson River
relation lake outflow
type still waters
[{'concept': 'still waters'}, 'lake outflow', 'Hudson River']
SELECT DISTINCT ?c WHERE { ?c property:lake_outflow resource:Hudson_River . ?c rdf:type ontology:still_waters }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q5713369 Q504866 Q30
P17
Q15617994
USER
Is that still waters present in Markt Einersheim and United States of America ?
(Q5713369,P17,Q504866) (Q5713369,P17,Q30)
action is_in
entity Q5713369
action intersection
action find_reverse
entity Q504866
relation P17
action find_reverse
entity Q30
relation P17
['Q5713369', 'P17', 'Q504866'] ['Q5713369', 'P17', 'Q30']
ASK WHERE { resource:Q5713369 property:P17 resource:Q504866 . resource:Q5713369 property:P17 resource:Q30 }
Henderson Lake Markt Einersheim United States of America
action is_in
entity Henderson Lake
action intersection
action find_reverse
entity Markt Einersheim
relation country
action find_reverse
entity United States of America
relation country
['Henderson Lake', 'country', 'Markt Einersheim'] ['Henderson Lake', 'country', 'United States of America']
ASK WHERE { resource:Henderson_Lake property:country resource:Markt_Einersheim . resource:Henderson_Lake property:country resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q5713369,P17,Q504866) (Q5713369,P17,Q30)
action is_in
entity Q5713369
action intersection
action find_reverse
entity Q504866
relation P17
action find_reverse
entity Q30
relation P17
[ANSWER]
['Q5713369', 'P17', 'Q504866'] ['Q5713369', 'P17', 'Q30']
ASK WHERE { resource:Q5713369 property:P17 resource:Q504866 . resource:Q5713369 property:P17 resource:Q30 }
NO and YES respectively
action is_in
entity Henderson Lake
action intersection
action find_reverse
entity Markt Einersheim
relation country
action find_reverse
entity United States of America
relation country
['Henderson Lake', 'country', 'Markt Einersheim'] ['Henderson Lake', 'country', 'United States of America']
ASK WHERE { resource:Henderson_Lake property:country resource:Markt_Einersheim . resource:Henderson_Lake property:country resource:United_States_of_America }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q5713369
P201
Q355304
USER
What flows out from that still waters ?
action filter_type
action find
entity Q5713369
relation P201
type Q355304
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q355304 . resource:Q5713369 property:P201 ?s }
Henderson Lake
action filter_type
action find
entity Henderson Lake
relation lake outflow
type watercourse
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:watercourse . resource:Henderson_Lake property:lake_outflow ?s }
[]
watercourse
Q3140
SYSTEM
Hudson River
Q3140
action filter_type
action find
entity Q5713369
relation P201
type Q355304
[ANSWER] flows out from that still waters
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:Q355304 . resource:Q5713369 property:P201 ?s }
Hudson River
Hudson River flows out from that still waters
Hudson River
action filter_type
action find
entity Henderson Lake
relation lake outflow
type watercourse
SELECT DISTINCT ?s WHERE { ?s rdf:type ontology:watercourse . resource:Henderson_Lake property:lake_outflow ?s }
[]