Simple Question (Direct)
Simple Question
Q3020814
P39
Q12737077
USER
Which occupation was a position occupied by Debbie Halvorson ?
(Q3020814,P39,c(Q12737077))
action filter_type
action find
entity Q3020814
relation P39
type Q12737077
['Q3020814', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q3020814 property:P39 ?b . ?b rdf:type ontology:Q12737077 }
Debbie Halvorson
action filter_type
action find
entity Debbie Halvorson
relation position held
type occupation
['Debbie Halvorson', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Debbie_Halvorson property:position_held ?b . ?b rdf:type ontology:occupation }
[]
occupation
Q13218630
SYSTEM
United States representative
Q13218630
(Q3020814,P39,c(Q12737077))
action filter_type
action find
entity Q3020814
relation P39
type Q12737077
The [ANSWER] was a position occupied by Debbie Halvorson
['Q3020814', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?b WHERE { resource:Q3020814 property:P39 ?b . ?b rdf:type ontology:Q12737077 }
United States representative
The United States representative was a position occupied by Debbie Halvorson
United States representative
action filter_type
action find
entity Debbie Halvorson
relation position held
type occupation
['Debbie Halvorson', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?b WHERE { resource:Debbie_Halvorson property:position_held ?b . ?b rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q3020814
P937
Q56061
USER
What is the location where that person worked ?
(Q13218630,P937,c(Q56061))
action filter_type
action find
entity Q3020814
relation P937
type Q56061
['Q13218630', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q3020814 property:P937 ?u . ?u rdf:type ontology:Q56061 }
Debbie Halvorson
action filter_type
action find
entity Debbie Halvorson
relation work location
type administrative territorial entity
['United States representative', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Debbie_Halvorson property:work_location ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q61
SYSTEM
Washington, D.C.
Q61
(Q13218630,P937,c(Q56061))
action filter_type
action find
entity Q3020814
relation P937
type Q56061
The location that person worked is in [ANSWER]
['Q13218630', 'P937', {'concept': 'Q56061'}]
SELECT DISTINCT ?u WHERE { resource:Q3020814 property:P937 ?u . ?u rdf:type ontology:Q56061 }
Washington, D.C.
The location that person worked is in Washington, D.C.
Washington, D.C.
action filter_type
action find
entity Debbie Halvorson
relation work location
type administrative territorial entity
['United States representative', 'work location', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?u WHERE { resource:Debbie_Halvorson property:work_location ?u . ?u rdf:type ontology:administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q61 Q749404 Q5812059
P190
Q56061
USER
Is that administrative territory twin town of Ozerkovići and Bonkuy-e Hasanlu ?
(Q61,P190,Q749404) (Q61,P190,Q5812059)
action is_in
entity Q61
action intersection
action find_reverse
entity Q749404
relation P190
action find_reverse
entity Q5812059
relation P190
['Q61', 'P190', 'Q749404'] ['Q61', 'P190', 'Q5812059']
ASK WHERE { resource:Q61 property:P190 resource:Q749404 . resource:Q61 property:P190 resource:Q5812059 }
Washington, D.C. Ozerkovići Bonkuy-e Hasanlu
action is_in
entity Washington, D.C.
action intersection
action find_reverse
entity Ozerkovići
relation sister city
action find_reverse
entity Bonkuy-e Hasanlu
relation sister city
['Washington, D.C.', 'sister city', 'Ozerkovići'] ['Washington, D.C.', 'sister city', 'Bonkuy-e Hasanlu']
ASK WHERE { resource:Washington,_D.C. property:sister_city resource:Ozerkovići . resource:Washington,_D.C. property:sister_city resource:Bonkuy-e_Hasanlu }
[]
administrative territorial entity
SYSTEM
NO
(Q61,P190,Q749404) (Q61,P190,Q5812059)
action is_in
entity Q61
action intersection
action find_reverse
entity Q749404
relation P190
action find_reverse
entity Q5812059
relation P190
[ANSWER]
['Q61', 'P190', 'Q749404'] ['Q61', 'P190', 'Q5812059']
ASK WHERE { resource:Q61 property:P190 resource:Q749404 . resource:Q61 property:P190 resource:Q5812059 }
No
action is_in
entity Washington, D.C.
action intersection
action find_reverse
entity Ozerkovići
relation sister city
action find_reverse
entity Bonkuy-e Hasanlu
relation sister city
['Washington, D.C.', 'sister city', 'Ozerkovići'] ['Washington, D.C.', 'sister city', 'Bonkuy-e Hasanlu']
ASK WHERE { resource:Washington,_D.C. property:sister_city resource:Ozerkovići . resource:Washington,_D.C. property:sister_city resource:Bonkuy-e_Hasanlu }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Logical operators
Q61
P47
Q852446 Q355304
USER
How many US administrative territories or watercourses have a shared border with Washington, D.C. ?
(Q61,P47,c(Q852446)) (Q61,P47,c(Q355304))
action count
action union
action filter_type
action find
entity Q61
relation P47
type Q852446
action filter_type
action find
entity Q61
relation P47
type Q355304
['Q61', 'P47', {'concept': 'Q852446'}] ['Q61', 'P47', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { resource:Q61 property:P47 ?x . ?x rdf:type ontology:Q852446 } UNION { ?x rdf:type ontology:Q355304 . resource:Q61 property:P47 ?x } }
Washington, D.C.
action count
action union
action filter_type
action find
entity Washington, D.C.
relation shares border with
type administrative territorial entity of the United States
action filter_type
action find
entity Washington, D.C.
relation shares border with
type watercourse
['Washington, D.C.', 'shares border with', {'concept': 'administrative territorial entity of the United States'}] ['Washington, D.C.', 'shares border with', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { resource:Washington,_D.C. property:shares_border_with ?x . ?x rdf:type ontology:administrative_territorial_entity_of_the_United_States } UNION { ?x rdf:type ontology:watercourse . resource:Washington,_D.C. property:shares_border_with ?x } }
[]
administrative territorial entity of the United States watercourse
SYSTEM
3
Q1370 Q1391 Q179444
(Q61,P47,c(Q852446)) (Q61,P47,c(Q355304))
action count
action union
action filter_type
action find
entity Q61
relation P47
type Q852446
action filter_type
action find
entity Q61
relation P47
type Q355304
[ANSWER]
['Q61', 'P47', {'concept': 'Q852446'}] ['Q61', 'P47', {'concept': 'Q355304'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { resource:Q61 property:P47 ?x . ?x rdf:type ontology:Q852446 } UNION { ?x rdf:type ontology:Q355304 . resource:Q61 property:P47 ?x } }
Virginia Maryland Potomac River
3
action count
action union
action filter_type
action find
entity Washington, D.C.
relation shares border with
type administrative territorial entity of the United States
action filter_type
action find
entity Washington, D.C.
relation shares border with
type watercourse
['Washington, D.C.', 'shares border with', {'concept': 'administrative territorial entity of the United States'}] ['Washington, D.C.', 'shares border with', {'concept': 'watercourse'}]
SELECT DISTINCT ( COUNT ( ?x ) AS ?w ) WHERE { { resource:Washington,_D.C. property:shares_border_with ?x . ?x rdf:type ontology:administrative_territorial_entity_of_the_United_States } UNION { ?x rdf:type ontology:watercourse . resource:Washington,_D.C. property:shares_border_with ?x } }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q3020814 Q213439
P69
Q3918
USER
Is University of Virginia the alma mater of Debbie Halvorson ?
(Q3020814,P69,Q213439)
action is_in
entity Q213439
action find
entity Q3020814
relation P69
['Q3020814', 'P69', 'Q213439']
ASK WHERE { resource:Q3020814 property:P69 resource:Q213439 }
Debbie Halvorson University of Virginia
action is_in
entity University of Virginia
action find
entity Debbie Halvorson
relation educated at
['Debbie Halvorson', 'educated at', 'University of Virginia']
ASK WHERE { resource:Debbie_Halvorson property:educated_at resource:University_of_Virginia }
[]
university
SYSTEM
YES
(Q3020814,P69,Q213439)
action is_in
entity Q213439
action find
entity Q3020814
relation P69
[ANSWER]
['Q3020814', 'P69', 'Q213439']
ASK WHERE { resource:Q3020814 property:P69 resource:Q213439 }
Yes
action is_in
entity University of Virginia
action find
entity Debbie Halvorson
relation educated at
['Debbie Halvorson', 'educated at', 'University of Virginia']
ASK WHERE { resource:Debbie_Halvorson property:educated_at resource:University_of_Virginia }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q61 Q239 Q956
P190
Q56061
USER
Is Washington, D.C. sister town of Brussels and Beijing ?
(Q61,P190,Q239) (Q61,P190,Q956)
action is_in
entity Q61
action intersection
action find_reverse
entity Q239
relation P190
action find_reverse
entity Q956
relation P190
['Q61', 'P190', 'Q239'] ['Q61', 'P190', 'Q956']
ASK WHERE { resource:Q61 property:P190 resource:Q239 . resource:Q61 property:P190 resource:Q956 }
Washington, D.C. Brussels Beijing
action is_in
entity Washington, D.C.
action intersection
action find_reverse
entity Brussels
relation sister city
action find_reverse
entity Beijing
relation sister city
['Washington, D.C.', 'sister city', 'Brussels'] ['Washington, D.C.', 'sister city', 'Beijing']
ASK WHERE { resource:Washington,_D.C. property:sister_city resource:Brussels . resource:Washington,_D.C. property:sister_city resource:Beijing }
[]
administrative territorial entity
SYSTEM
YES
(Q61,P190,Q239) (Q61,P190,Q956)
action is_in
entity Q61
action intersection
action find_reverse
entity Q239
relation P190
action find_reverse
entity Q956
relation P190
[ANSWER]
['Q61', 'P190', 'Q239'] ['Q61', 'P190', 'Q956']
ASK WHERE { resource:Q61 property:P190 resource:Q239 . resource:Q61 property:P190 resource:Q956 }
Yes
action is_in
entity Washington, D.C.
action intersection
action find_reverse
entity Brussels
relation sister city
action find_reverse
entity Beijing
relation sister city
['Washington, D.C.', 'sister city', 'Brussels'] ['Washington, D.C.', 'sister city', 'Beijing']
ASK WHERE { resource:Washington,_D.C. property:sister_city resource:Brussels . resource:Washington,_D.C. property:sister_city resource:Beijing }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q369803 Q239
P190 P937
Q56061
USER
Which administrative territories are twin towns of Brussels or are the work locations of Andrew Jackson Houston ?
OR((Q239,P190,c(Q56061)), (Q369803,P937,c(Q56061)))
action filter_type
action union
action find
entity Q239
relation P190
action find
entity Q369803
relation P937
type Q56061
{'OR': [['Q239', 'P190', {'concept': 'Q56061'}], ['Q369803', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q369803 property:P937 ?i } UNION { resource:Q239 property:P190 ?i } } . ?i rdf:type ontology:Q56061 }
Andrew Jackson Houston Brussels
action filter_type
action union
action find
entity Brussels
relation sister city
action find
entity Andrew Jackson Houston
relation work location
type administrative territorial entity
{'OR': [['Brussels', 'sister city', {'concept': 'administrative territorial entity'}], ['Andrew Jackson Houston', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Andrew_Jackson_Houston property:work_location ?i } UNION { resource:Brussels property:sister_city ?i } } . ?i rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q437 Q2807 Q1085 Q61 Q216 Q8673 Q649 Q340 Q23556 Q956
SYSTEM
Some of them are Ljubljana, Madrid, Prague, Washington, D.C., Vilnius, Lagos, Moscow, Montreal, Atlanta, Beijing
Q8673 Q437 Q216 Q340 Q649 Q2807 Q956 Q23556 Q64 Q61 Q1085
OR((Q239,P190,c(Q56061)), (Q369803,P937,c(Q56061)))
action filter_type
action union
action find
entity Q239
relation P190
action find
entity Q369803
relation P937
type Q56061
[ANSWERS] are twin towns of Brussels or are the work locations of Andrew Jackson Houston
{'OR': [['Q239', 'P190', {'concept': 'Q56061'}], ['Q369803', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Q369803 property:P937 ?i } UNION { resource:Q239 property:P190 ?i } } . ?i rdf:type ontology:Q56061 }
Lagos Ljubljana Vilnius Montreal Moscow Madrid Beijing Atlanta Berlin Washington, D.C. Prague
Ljubljana, Madrid, Prague, Washington, D.C., Vilnius, Lagos, Moscow, Montreal, Atlanta and Beijing are twin towns of Brussels or are the work locations of Andrew Jackson Houston
Ljubljana Madrid Prague Washington, D.C. Vilnius Lagos Moscow Montreal Atlanta Beijing
action filter_type
action union
action find
entity Brussels
relation sister city
action find
entity Andrew Jackson Houston
relation work location
type administrative territorial entity
{'OR': [['Brussels', 'sister city', {'concept': 'administrative territorial entity'}], ['Andrew Jackson Houston', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { { { resource:Andrew_Jackson_Houston property:work_location ?i } UNION { resource:Brussels property:sister_city ?i } } . ?i rdf:type ontology:administrative_territorial_entity }
[]
Clarification
Simple Question|Single Entity|Indirect
Q649
P291
Q571
USER
Which books have that administrative territory as their publication location ?
(c(Q571),P291,Q649)
action filter_type
action find_reverse
entity Q649
relation P291
type Q571
[{'concept': 'Q571'}, 'P291', 'Q649']
SELECT DISTINCT ?y WHERE { ?y property:P291 resource:Q649 . ?y rdf:type ontology:Q571 }
Moscow
action filter_type
action find_reverse
entity Moscow
relation place of publication
type book
[{'concept': 'book'}, 'place of publication', 'Moscow']
SELECT DISTINCT ?y WHERE { ?y property:place_of_publication resource:Moscow . ?y rdf:type ontology:book }
[]
book
Clarification for simple ques.
Q956
SYSTEM
Did you mean Beijing ?
Q437 Q2807 Q1085 Q61 Q216 Q8673 Q649 Q340 Q23556 Q956
(c(Q571),P291,Q437) (c(Q571),P291,Q2807) (c(Q571),P291,Q1085) (c(Q571),P291,Q61) (c(Q571),P291,Q216) (c(Q571),P291,Q8673) (c(Q571),P291,Q649) (c(Q571),P291,Q340) (c(Q571),P291,Q23556) (c(Q571),P291,Q956)
[ANSWER]
[{'concept': 'Q571'}, 'P291', 'Q437'] [{'concept': 'Q571'}, 'P291', 'Q2807'] [{'concept': 'Q571'}, 'P291', 'Q1085'] [{'concept': 'Q571'}, 'P291', 'Q61'] [{'concept': 'Q571'}, 'P291', 'Q216'] [{'concept': 'Q571'}, 'P291', 'Q8673'] [{'concept': 'Q571'}, 'P291', 'Q649'] [{'concept': 'Q571'}, 'P291', 'Q340'] [{'concept': 'Q571'}, 'P291', 'Q23556'] [{'concept': 'Q571'}, 'P291', 'Q956']
SELECT DISTINCT ?y WHERE { ?y property:P291 resource:Q649 . ?y rdf:type ontology:Q571 }
Ljubljana Madrid Prague Washington, D.C. Vilnius Lagos Moscow Montreal Atlanta Beijing
Did you mean Beijing ?
Beijing
[{'concept': 'book'}, 'place of publication', 'Ljubljana'] [{'concept': 'book'}, 'place of publication', 'Madrid'] [{'concept': 'book'}, 'place of publication', 'Prague'] [{'concept': 'book'}, 'place of publication', 'Washington, D.C.'] [{'concept': 'book'}, 'place of publication', 'Vilnius'] [{'concept': 'book'}, 'place of publication', 'Lagos'] [{'concept': 'book'}, 'place of publication', 'Moscow'] [{'concept': 'book'}, 'place of publication', 'Montreal'] [{'concept': 'book'}, 'place of publication', 'Atlanta'] [{'concept': 'book'}, 'place of publication', 'Beijing']
SELECT DISTINCT ?y WHERE { ?y property:place_of_publication resource:Moscow . ?y rdf:type ontology:book }
[]
Simple Question (Coreferenced)
USER
No, I meant Moscow. Could you tell me the answer for that?
(c(Q571),P291,Q649)
Q649
[{'concept': 'Q571'}, 'P291', 'Q649']
[{'concept': 'book'}, 'place of publication', 'Moscow']
[]
Q20901632 Q15631965 Q17378135
SYSTEM
Убежище. Дневник в письмах, Urbi et orbi, Great Soviet Encyclopedia (1969–1978)
Q15631965 Q14036403 Q21451927 Q21451936 Q15894330 Q21451944 Q20968284 Q17378135 Q20901632 Q21451941 Q20078554
(c(Q571),P291,Q649)
action filter_type
action find_reverse
entity Q649
relation P291
type Q571
[ANSWERS] have that administrative territory as their publication location
[{'concept': 'Q571'}, 'P291', 'Q649']
SELECT DISTINCT ?y WHERE { ?y property:P291 resource:Q649 . ?y rdf:type ontology:Q571 }
Urbi et orbi Pushkin in Life Illustrirovannaya polnaya populyarnaya biblyeiskaya entsiklopediya. Vipusk Выпуск III, 1892 Illustrirovannaya polnaya populyarnaya biblyeiskaya entsiklopediya. Vipusk Выпуск I, 1891 Travels in Esperanto-Land (1st edition) Illustrirovannaya polnaya populyarnaya biblyeiskaya entsiklopediya. Vipusk Выпуск IV, 1892 Great Soviet Encyclopedia (1950—1958) Great Soviet Encyclopedia (1969–1978) Убежище. Дневник в письмах Illustrirovannaya polnaya populyarnaya biblyeiskaya entsiklopediya. Vipusk Выпуск II, 1892 Great Soviet Encyclopedia (1926—1947)
Убежище. Дневник в письмах, Urbi et orbi and Great Soviet Encyclopedia (1969–1978) have that administrative territory as their publication location
Убежище. Дневник в письмах Urbi et orbi Great Soviet Encyclopedia (1969–1978)
action filter_type
action find_reverse
entity Moscow
relation place of publication
type book
[{'concept': 'book'}, 'place of publication', 'Moscow']
SELECT DISTINCT ?y WHERE { ?y property:place_of_publication resource:Moscow . ?y rdf:type ontology:book }
[]
Clarification
Simple Question|Single Entity|Indirect
Q15631965
P291
Q56061
USER
Which administrative territory is the place of publication of that book ?
(Q15631965,P291,c(Q56061))
action filter_type
action find
entity Q15631965
relation P291
type Q56061
['Q15631965', 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q15631965 property:P291 ?a . ?a rdf:type ontology:Q56061 }
Urbi et orbi
action filter_type
action find
entity Urbi et orbi
relation place of publication
type administrative territorial entity
['Urbi et orbi', 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Urbi_et_orbi property:place_of_publication ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Clarification for simple ques.
Q17378135
SYSTEM
Did you mean Great Soviet Encyclopedia (1969–1978) ?
Q20901632 Q15631965 Q17378135
(Q20901632,P291,c(Q56061)) (Q15631965,P291,c(Q56061)) (Q17378135,P291,c(Q56061))
[ANSWER]
['Q20901632', 'P291', {'concept': 'Q56061'}] ['Q15631965', 'P291', {'concept': 'Q56061'}] ['Q17378135', 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q15631965 property:P291 ?a . ?a rdf:type ontology:Q56061 }
Убежище. Дневник в письмах Urbi et orbi Great Soviet Encyclopedia (1969–1978)
Did you mean Great Soviet Encyclopedia (1969–1978) ?
Great Soviet Encyclopedia (1969–1978)
['Убежище. Дневник в письмах', 'place of publication', {'concept': 'administrative territorial entity'}] ['Urbi et orbi', 'place of publication', {'concept': 'administrative territorial entity'}] ['Great Soviet Encyclopedia (1969–1978)', 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Urbi_et_orbi property:place_of_publication ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]
Simple Question (Coreferenced)
USER
No, I meant Urbi et orbi. Could you tell me the answer for that?
(Q15631965,P291,c(Q56061))
Q15631965
['Q15631965', 'P291', {'concept': 'Q56061'}]
['Urbi et orbi', 'place of publication', {'concept': 'administrative territorial entity'}]
[]
Q649
SYSTEM
Moscow
Q649
(Q15631965,P291,c(Q56061))
action filter_type
action find
entity Q15631965
relation P291
type Q56061
[ANSWER] is the place of publication of that book
['Q15631965', 'P291', {'concept': 'Q56061'}]
SELECT DISTINCT ?a WHERE { resource:Q15631965 property:P291 ?a . ?a rdf:type ontology:Q56061 }
Moscow
Moscow is the place of publication of that book
Moscow
action filter_type
action find
entity Urbi et orbi
relation place of publication
type administrative territorial entity
['Urbi et orbi', 'place of publication', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Urbi_et_orbi property:place_of_publication ?a . ?a rdf:type ontology:administrative_territorial_entity }
[]