Simple Question (Direct)
Simple Question
Q888270
P607
Q198
USER
What was the war that Bob Stump took part in
(Q888270,P607,c(Q198))
action filter_type
action find
entity Q888270
relation P607
type Q198
['Q888270', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?q WHERE { resource:Q888270 property:P607 ?q . ?q rdf:type ontology:Q198 }
Bob Stump
action filter_type
action find
entity Bob Stump
relation conflict
type war
['Bob Stump', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?q WHERE { resource:Bob_Stump property:conflict ?q . ?q rdf:type ontology:war }
[]
war
Q362
SYSTEM
World War II
Q362
(Q888270,P607,c(Q198))
action filter_type
action find
entity Q888270
relation P607
type Q198
The war that Bob Stump took part in was in [ANSWER]
['Q888270', 'P607', {'concept': 'Q198'}]
SELECT DISTINCT ?q WHERE { resource:Q888270 property:P607 ?q . ?q rdf:type ontology:Q198 }
World War II
The war that Bob Stump took part in was in World War II
World War II
action filter_type
action find
entity Bob Stump
relation conflict
type war
['Bob Stump', 'conflict', {'concept': 'war'}]
SELECT DISTINCT ?q WHERE { resource:Bob_Stump property:conflict ?q . ?q rdf:type ontology:war }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q888270
P20
Q56061
USER
Where did the demise of Bob Stump occur ?
(Q888270,P20,c(Q56061))
action filter_type
action find
entity Q888270
relation P20
type Q56061
['Q888270', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q56061 . resource:Q888270 property:P20 ?f }
Bob Stump
action filter_type
action find
entity Bob Stump
relation place of death
type administrative territorial entity
['Bob Stump', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:administrative_territorial_entity . resource:Bob_Stump property:place_of_death ?f }
[]
administrative territorial entity
Q16556
SYSTEM
Phoenix
Q16556
(Q888270,P20,c(Q56061))
action filter_type
action find
entity Q888270
relation P20
type Q56061
The demise of Bob Stump occurred in [ANSWER]
['Q888270', 'P20', {'concept': 'Q56061'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q56061 . resource:Q888270 property:P20 ?f }
Phoenix
The demise of Bob Stump occurred in Phoenix
Phoenix
action filter_type
action find
entity Bob Stump
relation place of death
type administrative territorial entity
['Bob Stump', 'place of death', {'concept': 'administrative territorial entity'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:administrative_territorial_entity . resource:Bob_Stump property:place_of_death ?f }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q888270
P241
Q781132
USER
Which military branch did Bob Stump belong to ?
(Q888270,P241,c(Q781132))
action filter_type
action find
entity Q888270
relation P241
type Q781132
['Q888270', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q781132 . resource:Q888270 property:P241 ?u }
Bob Stump
action filter_type
action find
entity Bob Stump
relation military branch
type military branch
['Bob Stump', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:military_branch . resource:Bob_Stump property:military_branch ?u }
[]
military branch
Q11220
SYSTEM
United States Navy
Q11220
(Q888270,P241,c(Q781132))
action filter_type
action find
entity Q888270
relation P241
type Q781132
Bob Stump belonged to [ANSWER]
['Q888270', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:Q781132 . resource:Q888270 property:P241 ?u }
United States Navy
Bob Stump belonged to United States Navy
United States Navy
action filter_type
action find
entity Bob Stump
relation military branch
type military branch
['Bob Stump', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?u WHERE { ?u rdf:type ontology:military_branch . resource:Bob_Stump property:military_branch ?u }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q6224088 Q888270
P937
Q56061
USER
Which administrative territories did Bob Stump or John Businger work ?
OR((Q888270,P937,c(Q56061)), (Q6224088,P937,c(Q56061)))
action filter_type
action union
action find
entity Q888270
relation P937
action find
entity Q6224088
relation P937
type Q56061
{'OR': [['Q888270', 'P937', {'concept': 'Q56061'}], ['Q6224088', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?h ) { ( resource:Q888270 ) ( resource:Q6224088 ) } . ?h property:P937 ?c } . ?c rdf:type ontology:Q56061 }
John Businger Bob Stump
action filter_type
action union
action find
entity Bob Stump
relation work location
action find
entity John Businger
relation work location
type administrative territorial entity
{'OR': [['Bob Stump', 'work location', {'concept': 'administrative territorial entity'}], ['John Businger', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?h ) { ( resource:Bob_Stump ) ( resource:John_Businger ) } . ?h property:work_location ?c } . ?c rdf:type ontology:administrative_territorial_entity }
[]
administrative territorial entity
Q16556 Q61 Q100
SYSTEM
Phoenix, Washington, D.C., Boston
Q16556 Q61 Q100
OR((Q888270,P937,c(Q56061)), (Q6224088,P937,c(Q56061)))
action filter_type
action union
action find
entity Q888270
relation P937
action find
entity Q6224088
relation P937
type Q56061
Bob Stump or John Businger worked in [ANSWERS]
{'OR': [['Q888270', 'P937', {'concept': 'Q56061'}], ['Q6224088', 'P937', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?h ) { ( resource:Q888270 ) ( resource:Q6224088 ) } . ?h property:P937 ?c } . ?c rdf:type ontology:Q56061 }
Phoenix Washington, D.C. Boston
Bob Stump or John Businger worked in Phoenix, Washington, D.C. and Boston
Phoenix Washington, D.C. Boston
action filter_type
action union
action find
entity Bob Stump
relation work location
action find
entity John Businger
relation work location
type administrative territorial entity
{'OR': [['Bob Stump', 'work location', {'concept': 'administrative territorial entity'}], ['John Businger', 'work location', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?c WHERE { { VALUES ( ?h ) { ( resource:Bob_Stump ) ( resource:John_Businger ) } . ?h property:work_location ?c } . ?c rdf:type ontology:administrative_territorial_entity }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q16499823 Q61
P27 P17
Q15617994
USER
Which administrative territories are Washington, D.C. a part of and are the native countriesof Joy-Ann Reid ?
AND((Q61,P17,c(Q15617994)), (Q16499823,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q61
relation P17
action find
entity Q16499823
relation P27
type Q15617994
{'AND': [['Q61', 'P17', {'concept': 'Q15617994'}], ['Q16499823', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { resource:Q16499823 property:P27 ?l . resource:Q61 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
Joy-Ann Reid Washington, D.C.
action filter_type
action intersection
action find
entity Washington, D.C.
relation country
action find
entity Joy-Ann Reid
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Washington, D.C.', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Joy-Ann Reid', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { resource:Joy-Ann_Reid property:country_of_citizenship ?l . resource:Washington,_D.C. property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
AND((Q61,P17,c(Q15617994)), (Q16499823,P27,c(Q15617994)))
action filter_type
action intersection
action find
entity Q61
relation P17
action find
entity Q16499823
relation P27
type Q15617994
[ANSWER] is Washington, D.C. a part of and is the native countriesof Joy-Ann Reid
{'AND': [['Q61', 'P17', {'concept': 'Q15617994'}], ['Q16499823', 'P27', {'concept': 'Q15617994'}]]}
SELECT DISTINCT ?l WHERE { resource:Q16499823 property:P27 ?l . resource:Q61 property:P17 ?l . ?l rdf:type ontology:Q15617994 }
United States of America
United States of America is Washington, D.C. a part of and is the native countriesof Joy-Ann Reid
United States of America
action filter_type
action intersection
action find
entity Washington, D.C.
relation country
action find
entity Joy-Ann Reid
relation country of citizenship
type designation for an administrative territorial entity
{'AND': [['Washington, D.C.', 'country', {'concept': 'designation for an administrative territorial entity'}], ['Joy-Ann Reid', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]]}
SELECT DISTINCT ?l WHERE { resource:Joy-Ann_Reid property:country_of_citizenship ?l . resource:Washington,_D.C. property:country ?l . ?l rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q30 Q38 Q1011
P530
Q15617994
USER
Does United States of America have diplomatic relations with Italy and Cape Verde ?
(Q30,P530,Q38) (Q30,P530,Q1011)
action is_in
entity Q30
action intersection
action find_reverse
entity Q38
relation P530
action find_reverse
entity Q1011
relation P530
['Q30', 'P530', 'Q38'] ['Q30', 'P530', 'Q1011']
ASK WHERE { resource:Q30 property:P530 resource:Q38 . resource:Q30 property:P530 resource:Q1011 }
United States of America Italy Cape Verde
action is_in
entity United States of America
action intersection
action find_reverse
entity Italy
relation diplomatic relation
action find_reverse
entity Cape Verde
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Italy'] ['United States of America', 'diplomatic relation', 'Cape Verde']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Italy . resource:United_States_of_America property:diplomatic_relation resource:Cape_Verde }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q30,P530,Q38) (Q30,P530,Q1011)
action is_in
entity Q30
action intersection
action find_reverse
entity Q38
relation P530
action find_reverse
entity Q1011
relation P530
[ANSWER]
['Q30', 'P530', 'Q38'] ['Q30', 'P530', 'Q1011']
ASK WHERE { resource:Q30 property:P530 resource:Q38 . resource:Q30 property:P530 resource:Q1011 }
Yes
action is_in
entity United States of America
action intersection
action find_reverse
entity Italy
relation diplomatic relation
action find_reverse
entity Cape Verde
relation diplomatic relation
['United States of America', 'diplomatic relation', 'Italy'] ['United States of America', 'diplomatic relation', 'Cape Verde']
ASK WHERE { resource:United_States_of_America property:diplomatic_relation resource:Italy . resource:United_States_of_America property:diplomatic_relation resource:Cape_Verde }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q100
P138
Q2235308
USER
Which ship types are named after Boston ?
(c(Q2235308),P138,Q100)
action filter_type
action find_reverse
entity Q100
relation P138
type Q2235308
[{'concept': 'Q2235308'}, 'P138', 'Q100']
SELECT DISTINCT ?i WHERE { ?i property:P138 resource:Q100 . ?i rdf:type ontology:Q2235308 }
Boston
action filter_type
action find_reverse
entity Boston
relation named after
type ship type
[{'concept': 'ship type'}, 'named after', 'Boston']
SELECT DISTINCT ?i WHERE { ?i property:named_after resource:Boston . ?i rdf:type ontology:ship_type }
[]
ship type
Q2630219 Q1862142
SYSTEM
Boston-class cruiser, USS Boston
Q2630219 Q1862142
(c(Q2235308),P138,Q100)
action filter_type
action find_reverse
entity Q100
relation P138
type Q2235308
Boston [ANSWERS] are named after Boston
[{'concept': 'Q2235308'}, 'P138', 'Q100']
SELECT DISTINCT ?i WHERE { ?i property:P138 resource:Q100 . ?i rdf:type ontology:Q2235308 }
Boston-class cruiser USS Boston
Boston Boston-class cruiser and USS Boston are named after Boston
Boston-class cruiser USS Boston
action filter_type
action find_reverse
entity Boston
relation named after
type ship type
[{'concept': 'ship type'}, 'named after', 'Boston']
SELECT DISTINCT ?i WHERE { ?i property:named_after resource:Boston . ?i rdf:type ontology:ship_type }
[]
Clarification
Simple Question|Single Entity|Indirect
Q1862142
P516
Q2235308
USER
What powers that one ?
(Q1862142,P516,c(Q2235308))
action filter_type
action find
entity Q1862142
relation P516
type Q2235308
['Q1862142', 'P516', {'concept': 'Q2235308'}]
SELECT DISTINCT ?r WHERE { resource:Q1862142 property:P516 ?r . ?r rdf:type ontology:Q2235308 }
USS Boston
action filter_type
action find
entity USS Boston
relation powerplant
type ship type
['USS Boston', 'powerplant', {'concept': 'ship type'}]
SELECT DISTINCT ?r WHERE { resource:USS_Boston property:powerplant ?r . ?r rdf:type ontology:ship_type }
[]
ship type
Clarification for simple ques.
Q2630219
SYSTEM
Did you mean Boston-class cruiser ?
Q2630219 Q1862142
(Q2630219,P516,c(Q2235308)) (Q1862142,P516,c(Q2235308))
[ANSWER]
['Q2630219', 'P516', {'concept': 'Q2235308'}] ['Q1862142', 'P516', {'concept': 'Q2235308'}]
SELECT DISTINCT ?r WHERE { resource:Q1862142 property:P516 ?r . ?r rdf:type ontology:Q2235308 }
Boston-class cruiser USS Boston
Did you mean Boston-class cruiser ?
Boston-class cruiser
['Boston-class cruiser', 'powerplant', {'concept': 'ship type'}] ['USS Boston', 'powerplant', {'concept': 'ship type'}]
SELECT DISTINCT ?r WHERE { resource:USS_Boston property:powerplant ?r . ?r rdf:type ontology:ship_type }
[]
Simple Question (Coreferenced)
USER
No, I meant USS Boston. Could you tell me the answer for that?
(Q1862142,P516,c(Q2235308))
Q1862142
['Q1862142', 'P516', {'concept': 'Q2235308'}]
['USS Boston', 'powerplant', {'concept': 'ship type'}]
[]
Q1142489
SYSTEM
nuclear marine propulsion
Q1142489
(Q1862142,P516,c(Q2235308))
action filter_type
action find
entity Q1862142
relation P516
type Q2235308
The [ANSWER] powers that one
['Q1862142', 'P516', {'concept': 'Q2235308'}]
SELECT DISTINCT ?r WHERE { resource:Q1862142 property:P516 ?r . ?r rdf:type ontology:Q2235308 }
nuclear marine propulsion
The nuclear marine propulsion powers that one
nuclear marine propulsion
action filter_type
action find
entity USS Boston
relation powerplant
type ship type
['USS Boston', 'powerplant', {'concept': 'ship type'}]
SELECT DISTINCT ?r WHERE { resource:USS_Boston property:powerplant ?r . ?r rdf:type ontology:ship_type }
[]