Simple Question (Direct)
Simple Question
Q966261
P39
Q12737077
USER
Which occupation was a position held by Joe Barton ?
(Q966261,P39,c(Q12737077))
action filter_type
action find
entity Q966261
relation P39
type Q12737077
['Q966261', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q966261 property:P39 ?v . ?v rdf:type ontology:Q12737077 }
Joe Barton
action filter_type
action find
entity Joe Barton
relation position held
type occupation
['Joe Barton', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Joe_Barton property:position_held ?v . ?v rdf:type ontology:occupation }
[]
occupation
Q13218630
SYSTEM
United States representative
Q13218630
(Q966261,P39,c(Q12737077))
action filter_type
action find
entity Q966261
relation P39
type Q12737077
The [ANSWER] was a position held by Joe Barton
['Q966261', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?v WHERE { resource:Q966261 property:P39 ?v . ?v rdf:type ontology:Q12737077 }
United States representative
The United States representative was a position held by Joe Barton
United States representative
action filter_type
action find
entity Joe Barton
relation position held
type occupation
['Joe Barton', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?v WHERE { resource:Joe_Barton property:position_held ?v . ?v rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q966261
P27
Q15617994
USER
Which administrative territory is that person a civilian of ?
(Q13218630,P27,c(Q15617994))
action filter_type
action find
entity Q966261
relation P27
type Q15617994
['Q13218630', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q966261 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
Joe Barton
action filter_type
action find
entity Joe Barton
relation country of citizenship
type designation for an administrative territorial entity
['United States representative', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Joe_Barton property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q13218630,P27,c(Q15617994))
action filter_type
action find
entity Q966261
relation P27
type Q15617994
The [ANSWER] is that person a civilian of
['Q13218630', 'P27', {'concept': 'Q15617994'}]
SELECT DISTINCT ?y WHERE { resource:Q966261 property:P27 ?y . ?y rdf:type ontology:Q15617994 }
United States of America
The United States of America is that person a civilian of
United States of America
action filter_type
action find
entity Joe Barton
relation country of citizenship
type designation for an administrative territorial entity
['United States representative', 'country of citizenship', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?y WHERE { resource:Joe_Barton property:country_of_citizenship ?y . ?y rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q30 Q5460629
P27
Q502895
USER
Is Florence Hackett a civilian of that administrative territory ?
(Q5460629,P27,Q30)
action is_in
entity Q30
action find
entity Q5460629
relation P27
['Q5460629', 'P27', 'Q30']
ASK WHERE { resource:Q5460629 property:P27 resource:Q30 }
United States of America Florence Hackett
action is_in
entity United States of America
action find
entity Florence Hackett
relation country of citizenship
['Florence Hackett', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Florence_Hackett property:country_of_citizenship resource:United_States_of_America }
[]
common name
SYSTEM
YES
(Q5460629,P27,Q30)
action is_in
entity Q30
action find
entity Q5460629
relation P27
[ANSWER]
['Q5460629', 'P27', 'Q30']
ASK WHERE { resource:Q5460629 property:P27 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Florence Hackett
relation country of citizenship
['Florence Hackett', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Florence_Hackett property:country_of_citizenship resource:United_States_of_America }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P740
Q874405
USER
What was formed at United States of America ?
(c(Q874405),P740,Q30)
action filter_type
action find_reverse
entity Q30
relation P740
type Q874405
[{'concept': 'Q874405'}, 'P740', 'Q30']
SELECT DISTINCT ?v WHERE { ?v property:P740 resource:Q30 . ?v rdf:type ontology:Q874405 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation location of formation
type social group
[{'concept': 'social group'}, 'location of formation', 'United States of America']
SELECT DISTINCT ?v WHERE { ?v property:location_of_formation resource:United_States_of_America . ?v rdf:type ontology:social_group }
[]
social group
Q3152801
SYSTEM
Institute for Supply Management
Q3152801
(c(Q874405),P740,Q30)
action filter_type
action find_reverse
entity Q30
relation P740
type Q874405
The [ANSWER] was formed at United States of America
[{'concept': 'Q874405'}, 'P740', 'Q30']
SELECT DISTINCT ?v WHERE { ?v property:P740 resource:Q30 . ?v rdf:type ontology:Q874405 }
Institute for Supply Management
The Institute for Supply Management was formed at United States of America
Institute for Supply Management
action filter_type
action find_reverse
entity United States of America
relation location of formation
type social group
[{'concept': 'social group'}, 'location of formation', 'United States of America']
SELECT DISTINCT ?v WHERE { ?v property:location_of_formation resource:United_States_of_America . ?v rdf:type ontology:social_group }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q21294850 Q966261
P937 P20
Q56061
USER
Which administrative territories are the locations where Joe Barton worked or are the places of death of Thomas de la Vierge ?
OR((Q966261,P937,c(Q56061)), (Q21294850,P20,c(Q56061)))
action filter_type
action union
action find
entity Q966261
relation P937
action find
entity Q21294850
relation P20
type Q56061
{'OR': [['Q966261', 'P937', {'concept': 'Q56061'}], ['Q21294850', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q56061 . { { resource:Q966261 property:P937 ?i } UNION { resource:Q21294850 property:P20 ?i } } }
Thomas de la Vierge Joe Barton
action filter_type
action union
action find
entity Joe Barton
relation work location
action find
entity Thomas de la Vierge
relation place of death
type administrative territorial entity
{'OR': [['Joe Barton', 'work location', {'concept': 'administrative territorial entity'}], ['Thomas de la Vierge', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:administrative_territorial_entity . { { resource:Joe_Barton property:work_location ?i } UNION { resource:Thomas_de_la_Vierge property:place_of_death ?i } } }
[]
administrative territorial entity
Q16024 Q61
SYSTEM
Geldern, Washington, D.C.
Q16024 Q61
OR((Q966261,P937,c(Q56061)), (Q21294850,P20,c(Q56061)))
action filter_type
action union
action find
entity Q966261
relation P937
action find
entity Q21294850
relation P20
type Q56061
[ANSWERS]
{'OR': [['Q966261', 'P937', {'concept': 'Q56061'}], ['Q21294850', 'P20', {'concept': 'Q56061'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q56061 . { { resource:Q966261 property:P937 ?i } UNION { resource:Q21294850 property:P20 ?i } } }
Geldern Washington, D.C.
Geldern and Washington, D.C. are the locations where Joe Barton worked or are the places of death of Thomas de la Vierge
Geldern Washington, D.C.
action filter_type
action union
action find
entity Joe Barton
relation work location
action find
entity Thomas de la Vierge
relation place of death
type administrative territorial entity
{'OR': [['Joe Barton', 'work location', {'concept': 'administrative territorial entity'}], ['Thomas de la Vierge', 'place of death', {'concept': 'administrative territorial entity'}]]}
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:administrative_territorial_entity . { { resource:Joe_Barton property:work_location ?i } UNION { resource:Thomas_de_la_Vierge property:place_of_death ?i } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q61
P47
Q355304
USER
Which watercourse is bordered by Washington, D.C. ?
(c(Q355304),P47,Q61)
action filter_type
action find
entity Q61
relation P47
type Q355304
[{'concept': 'Q355304'}, 'P47', 'Q61']
SELECT DISTINCT ?x WHERE { resource:Q61 property:P47 ?x . ?x rdf:type ontology:Q355304 }
Washington, D.C.
action filter_type
action find
entity Washington, D.C.
relation shares border with
type watercourse
[{'concept': 'watercourse'}, 'shares border with', 'Washington, D.C.']
SELECT DISTINCT ?x WHERE { resource:Washington,_D.C. property:shares_border_with ?x . ?x rdf:type ontology:watercourse }
[]
watercourse
Q179444
SYSTEM
Potomac River
Q179444
(c(Q355304),P47,Q61)
action filter_type
action find
entity Q61
relation P47
type Q355304
River [ANSWER] is bordered by Washington, D.C.
[{'concept': 'Q355304'}, 'P47', 'Q61']
SELECT DISTINCT ?x WHERE { resource:Q61 property:P47 ?x . ?x rdf:type ontology:Q355304 }
Potomac River
River Potomac River is bordered by Washington, D.C.
Potomac River
action filter_type
action find
entity Washington, D.C.
relation shares border with
type watercourse
[{'concept': 'watercourse'}, 'shares border with', 'Washington, D.C.']
SELECT DISTINCT ?x WHERE { resource:Washington,_D.C. property:shares_border_with ?x . ?x rdf:type ontology:watercourse }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q61
P840
Q15416
USER
Which television programs have their setting located at that administrative territory ?
(c(Q15416),P840,Q179444)
action filter_type
action find_reverse
entity Q61
relation P840
type Q15416
[{'concept': 'Q15416'}, 'P840', 'Q179444']
SELECT DISTINCT ?z WHERE { ?z property:P840 resource:Q61 . ?z rdf:type ontology:Q15416 }
Washington, D.C.
action filter_type
action find_reverse
entity Washington, D.C.
relation narrative location
type television program
[{'concept': 'television program'}, 'narrative location', 'Potomac River']
SELECT DISTINCT ?z WHERE { ?z property:narrative_location resource:Washington,_D.C. . ?z rdf:type ontology:television_program }
[]
television program
Q7751721 Q3577037 Q23594
SYSTEM
The Missiles of October, The West Wing, Homeland
Q1138005 Q13420404 Q4525 Q13422708 Q2744 Q1762748 Q135612 Q684695 Q3324491 Q3577037 Q4966684 Q7710977 Q917608 Q1392115 Q7236716 Q3330940 Q5204233 Q599085 Q323818 Q7824451 Q498438 Q1164745 Q7734125 Q3072951 Q5655610 Q697031 Q7759592 Q23594 Q3532233 Q2690493 Q3611894 Q4986685 Q7727850 Q754197 Q17635847 Q1319687 Q392832 Q7751721 Q207803 Q1249413 Q521718 Q74801 Q1247268 Q603618 Q468257 Q7698343 Q374251 Q8031616 Q7758075 Q15219382 Q7757984 Q1069002 Q2707414 Q1213817 Q4851196 Q1525645 Q4838141 Q3230775 Q842118 Q80217 Q15072827 Q8002649 Q420702 Q4926508 Q3283591 Q6369456 Q3656848 Q25182 Q56194 Q794258 Q3887566 Q5085137
(c(Q15416),P840,Q179444)
action filter_type
action find_reverse
entity Q61
relation P840
type Q15416
[ANSWERS] have their setting located at that administrative territory
[{'concept': 'Q15416'}, 'P840', 'Q179444']
SELECT DISTINCT ?z WHERE { ?z property:P840 resource:Q61 . ?z rdf:type ontology:Q15416 }
Covert Affairs Hostages NCIS King & Maxwell The X-Files The Color of Friendship DC Cupcakes That's My Bush! Killer Hair The West Wing Bridges to Cross That's My Mama Freakazoid! Political Animals Powerhouse House of Cards DAG A Man Called Hawk Unnatural History season 7 of Top Chef The Americans The Event The First Family First Monday Hard to Be Me Commander in Chief The Real Housewives of D.C. Homeland Torchwood: Miracle Day Get Smart All's Fair Built to Last The Court JAG K.C. Undercover The Real World: D.C. Scarecrow and Mrs. King The Missiles of October Bones I Spy Murphy Brown Veep Get Smart Capitol The District Temperatures Rising End Game Women of the House The President's Mistress Alpha House The Powers That Be Higashi no Eden Smart Guy The Kennedys Ball Four Scandal Baby, I'm Back The New Adventures of Beans Baxter Cory in the House 1600 Penn K Street (TV series) Will: G. Gordon Liddy The Firm Blind Ambition Mister Sterling Karen Capital News Lie to Me 24 Capitol Critters Outlaw Charlie Lawrence
The Missiles of October, The West Wing and Homeland have their setting located at that administrative territory
The Missiles of October The West Wing Homeland
action filter_type
action find_reverse
entity Washington, D.C.
relation narrative location
type television program
[{'concept': 'television program'}, 'narrative location', 'Potomac River']
SELECT DISTINCT ?z WHERE { ?z property:narrative_location resource:Washington,_D.C. . ?z rdf:type ontology:television_program }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q7751721 Q3577037 Q23594
P161
Q502895
USER
Which people starred in those television programs ?
(Q7751721,P161,c(Q502895)) (Q3577037,P161,c(Q502895)) (Q23594,P161,c(Q502895))
action filter_type
action find
entity prev_answer
relation P161
type Q502895
['Q7751721', 'P161', {'concept': 'Q502895'}] ['Q3577037', 'P161', {'concept': 'Q502895'}] ['Q23594', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . ?y property:P161 ?t . VALUES ( ?y ) { ( resource:Q1138005 ) ( resource:Q13420404 ) ( resource:Q4525 ) } }
The Missiles of October The West Wing Homeland
action filter_type
action find
entity prev_answer
relation cast member
type common name
['The Missiles of October', 'cast member', {'concept': 'common name'}] ['The West Wing', 'cast member', {'concept': 'common name'}] ['Homeland', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . ?y property:cast_member ?t . VALUES ( ?y ) { ( resource:Covert_Affairs ) ( resource:Hostages ) ( resource:NCIS ) } }
[]
common name
Q184572 Q184572 Q267097
SYSTEM
Martin Sheen for 1st, 2nd, Mandy Patinkin for 3rd
Q15402259 Q329456 Q21283372 Q532715 Q1243844 Q21283258 Q749735 Q7615893 Q21283378 Q541661 Q1189412 Q21283298 Q1923206 Q1631771 Q918369 Q958791 Q1881244 Q21283225 Q2074570 Q2555623 Q451880 Q21283229 Q21283266 Q3177412 Q527303 Q504525 Q429821 Q21283222 Q7151931 Q184572 Q364135 Q15486579 Q1680915 Q7596038 Q925911 Q7363755 Q358990 Q8962247 Q1018624 Q1064022 Q2017853 Q1346123 Q7626910 Q7693276 Q738838 Q709403 Q1528694 Q21283234 Q21283375 Q21283358 Q184572 Q1388111 Q181936 Q6911832 Q984572 Q867813 Q90293 Q6117296 Q20752339 Q314659 Q445995 Q3027407 Q743695 Q267097 Q63187 Q231091 Q1189102 Q723366 Q294975 Q206440 Q342533 Q3018042
(Q7751721,P161,c(Q502895)) (Q3577037,P161,c(Q502895)) (Q23594,P161,c(Q502895))
action filter_type
action find
entity prev_answer
relation P161
type Q502895
[ANSWERS]
['Q7751721', 'P161', {'concept': 'Q502895'}] ['Q3577037', 'P161', {'concept': 'Q502895'}] ['Q23594', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:Q502895 . ?y property:P161 ?t . VALUES ( ?y ) { ( resource:Q1138005 ) ( resource:Q13420404 ) ( resource:Q4525 ) } }
Wright King William Prince Toby Russ John Randolph Doreen Lang Will Kuluva Larry Gates Stewart Moss Jay Vallera Dana Elcar Dennis Patrick John McMurtry Clifford David Howard Da Silva Nehemiah Persoff George Wyner Keene Curtis Eugene Elman Peter Donat Michael Fox William Devane Bern Hoffman Robert P. Lieb Jerome Guardino Michael Lerner Andrew Duggan Albert Paulsen Peter Canon Paul Lambert Martin Sheen Ralph Bellamy James T. Callahan James Olson Stacy Keach, Sr. Kenneth Tobey Ron Feinberg James Hong Francis De Sales Byron Morrow Charles Cyphers John Dehner Harris Yulin Stuart Nisbet Ted Hartley Thayer David Arthur Franz Richard Eastham Richard Karlan Serge Tschernisch Buddy Ochoa Martin Sheen Jamey Sheridan F. Murray Abraham Morgan Saylor Tracy Letts Claire Danes Alexander Fehling Jackson Pace Sarah Sokolovic Rupert Friend Sarita Choudhury Diego Klattenhoff Laila Robins Mandy Patinkin Sebastian Koch Morena Baccarin Nazanin Boniadi Navid Negahban Miranda Otto David Marciano Damian Lewis David Harewood
Martin Sheen, Martin Sheen and Mandy Patinkin starred in those television programs
Martin Sheen Martin Sheen Mandy Patinkin
action filter_type
action find
entity prev_answer
relation cast member
type common name
['The Missiles of October', 'cast member', {'concept': 'common name'}] ['The West Wing', 'cast member', {'concept': 'common name'}] ['Homeland', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?t WHERE { ?t rdf:type ontology:common_name . ?y property:cast_member ?t . VALUES ( ?y ) { ( resource:Covert_Affairs ) ( resource:Hostages ) ( resource:NCIS ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q267097
P106
Q12737077
USER
What do that person do for a living ?
(Q267097,P106,c(Q12737077))
action filter_type
action find
entity Q267097
relation P106
type Q12737077
['Q267097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q267097 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
Mandy Patinkin
action filter_type
action find
entity Mandy Patinkin
relation occupation
type occupation
['Mandy Patinkin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Mandy_Patinkin property:occupation ?r . ?r rdf:type ontology:occupation }
[]
occupation
Clarification for simple ques.
Q184572
SYSTEM
Did you mean Martin Sheen ?
Q184572 Q184572 Q267097
(Q184572,P106,c(Q12737077)) (Q184572,P106,c(Q12737077)) (Q267097,P106,c(Q12737077))
[ANSWER]
['Q184572', 'P106', {'concept': 'Q12737077'}] ['Q184572', 'P106', {'concept': 'Q12737077'}] ['Q267097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q267097 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
Martin Sheen Martin Sheen Mandy Patinkin
Did you mean Martin Sheen ?
Martin Sheen
['Martin Sheen', 'occupation', {'concept': 'occupation'}] ['Martin Sheen', 'occupation', {'concept': 'occupation'}] ['Mandy Patinkin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Mandy_Patinkin property:occupation ?r . ?r rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
USER
No, I meant Mandy Patinkin. Could you tell me the answer for that?
(Q267097,P106,c(Q12737077))
Q267097
['Q267097', 'P106', {'concept': 'Q12737077'}]
['Mandy Patinkin', 'occupation', {'concept': 'occupation'}]
[]
Q3455803 Q10798782 Q177220
SYSTEM
director, television actor, singer
Q3455803 Q10798782 Q177220 Q33999 Q2259451
(Q267097,P106,c(Q12737077))
action filter_type
action find
entity Q267097
relation P106
type Q12737077
That person do for a living film [ANSWERS]
['Q267097', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?r WHERE { resource:Q267097 property:P106 ?r . ?r rdf:type ontology:Q12737077 }
director television actor singer actor stage actor
That person do for a living film director, television actor and singer
director television actor singer
action filter_type
action find
entity Mandy Patinkin
relation occupation
type occupation
['Mandy Patinkin', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?r WHERE { resource:Mandy_Patinkin property:occupation ?r . ?r rdf:type ontology:occupation }
[]