Simple Question (Direct)
Simple Question
Q3289678
P1066
Q502895
USER
Which person was the supervisor of Marcha Van Boven ?
(Q3289678,P1066,c(Q502895))
action filter_type
action find
entity Q3289678
relation P1066
type Q502895
['Q3289678', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q3289678 property:P1066 ?o . ?o rdf:type ontology:Q502895 }
Marcha Van Boven
action filter_type
action find
entity Marcha Van Boven
relation student of
type common name
['Marcha Van Boven', 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Marcha_Van_Boven property:student_of ?o . ?o rdf:type ontology:common_name }
[]
common name
Q2216372
SYSTEM
Susan Batson
Q2216372
(Q3289678,P1066,c(Q502895))
action filter_type
action find
entity Q3289678
relation P1066
type Q502895
[ANSWER] was the supervisor of Marcha Van Boven
['Q3289678', 'P1066', {'concept': 'Q502895'}]
SELECT DISTINCT ?o WHERE { resource:Q3289678 property:P1066 ?o . ?o rdf:type ontology:Q502895 }
Susan Batson
Susan Batson was the supervisor of Marcha Van Boven
Susan Batson
action filter_type
action find
entity Marcha Van Boven
relation student of
type common name
['Marcha Van Boven', 'student of', {'concept': 'common name'}]
SELECT DISTINCT ?o WHERE { resource:Marcha_Van_Boven property:student_of ?o . ?o rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q2216372
P161
Q838948
USER
Which works of art do that person star in ?
(c(Q838948),P161,Q2216372)
action filter_type
action find_reverse
entity Q2216372
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q2216372']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q838948 . ?g property:P161 resource:Q2216372 }
Susan Batson
action filter_type
action find_reverse
entity Susan Batson
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Susan Batson']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:work_of_art . ?g property:cast_member resource:Susan_Batson }
[]
work of art
Q3564816 Q2277762
SYSTEM
WUSA, Bamboozled
Q3564816 Q2277762
(c(Q838948),P161,Q2216372)
action filter_type
action find_reverse
entity Q2216372
relation P161
type Q838948
That person star [ANSWERS]
[{'concept': 'Q838948'}, 'P161', 'Q2216372']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q838948 . ?g property:P161 resource:Q2216372 }
WUSA Bamboozled
That person star WUSA and Bamboozled
WUSA Bamboozled
action filter_type
action find_reverse
entity Susan Batson
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Susan Batson']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:work_of_art . ?g property:cast_member resource:Susan_Batson }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q3564816 Q2277762
P57
Q502895
USER
Who directed those works of art ?
(Q3564816,P57,c(Q502895)) (Q2277762,P57,c(Q502895))
action filter_type
action find
entity prev_answer
relation P57
type Q502895
['Q3564816', 'P57', {'concept': 'Q502895'}] ['Q2277762', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?b property:P57 ?i . VALUES ( ?b ) { ( resource:Q3564816 ) ( resource:Q2277762 ) } }
WUSA Bamboozled
action filter_type
action find
entity prev_answer
relation director
type common name
['WUSA', 'director', {'concept': 'common name'}] ['Bamboozled', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?b property:director ?i . VALUES ( ?b ) { ( resource:WUSA ) ( resource:Bamboozled ) } }
[]
common name
Q966078 Q51566
SYSTEM
Stuart Rosenberg, Spike Lee
Q966078 Q51566
(Q3564816,P57,c(Q502895)) (Q2277762,P57,c(Q502895))
action filter_type
action find
entity prev_answer
relation P57
type Q502895
[ANSWERS] directed those works of art
['Q3564816', 'P57', {'concept': 'Q502895'}] ['Q2277762', 'P57', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:Q502895 . ?b property:P57 ?i . VALUES ( ?b ) { ( resource:Q3564816 ) ( resource:Q2277762 ) } }
Stuart Rosenberg Spike Lee
Stuart Rosenberg and Spike Lee directed those works of art
Stuart Rosenberg Spike Lee
action filter_type
action find
entity prev_answer
relation director
type common name
['WUSA', 'director', {'concept': 'common name'}] ['Bamboozled', 'director', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { ?i rdf:type ontology:common_name . ?b property:director ?i . VALUES ( ?b ) { ( resource:WUSA ) ( resource:Bamboozled ) } }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q966078 Q51566
P106
Q12737077
USER
What do Stuart Rosenberg and Spike Lee do for a living ?
(Q966078,P106,c(Q12737077)) (Q51566,P106,c(Q12737077))
action union
action filter_type
action find
entity Q966078
relation P106
type Q12737077
action filter_type
action find
entity Q51566
relation P106
type Q12737077
['Q966078', 'P106', {'concept': 'Q12737077'}] ['Q51566', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { { ?n rdf:type ontology:Q12737077 . resource:Q51566 property:P106 ?n } UNION { ?n rdf:type ontology:Q12737077 . resource:Q966078 property:P106 ?n } }
Stuart Rosenberg Spike Lee
action union
action filter_type
action find
entity Stuart Rosenberg
relation occupation
type occupation
action filter_type
action find
entity Spike Lee
relation occupation
type occupation
['Stuart Rosenberg', 'occupation', {'concept': 'occupation'}] ['Spike Lee', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { { ?n rdf:type ontology:occupation . resource:Spike_Lee property:occupation ?n } UNION { ?n rdf:type ontology:occupation . resource:Stuart_Rosenberg property:occupation ?n } }
[]
occupation
Q2059704 Q33999
SYSTEM
television director, actor
Q2059704 Q33999
(Q966078,P106,c(Q12737077)) (Q51566,P106,c(Q12737077))
action union
action filter_type
action find
entity Q966078
relation P106
type Q12737077
action filter_type
action find
entity Q51566
relation P106
type Q12737077
Stuart Rosenberg and Spike Lee do for a living [ANSWERS]
['Q966078', 'P106', {'concept': 'Q12737077'}] ['Q51566', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?n WHERE { { ?n rdf:type ontology:Q12737077 . resource:Q51566 property:P106 ?n } UNION { ?n rdf:type ontology:Q12737077 . resource:Q966078 property:P106 ?n } }
television director actor
Stuart Rosenberg and Spike Lee do for a living television director and actor
television director actor
action union
action filter_type
action find
entity Stuart Rosenberg
relation occupation
type occupation
action filter_type
action find
entity Spike Lee
relation occupation
type occupation
['Stuart Rosenberg', 'occupation', {'concept': 'occupation'}] ['Spike Lee', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?n WHERE { { ?n rdf:type ontology:occupation . resource:Spike_Lee property:occupation ?n } UNION { ?n rdf:type ontology:occupation . resource:Stuart_Rosenberg property:occupation ?n } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q2059704
P361
Q16334295
USER
What is that occupation a part of ?
(Q2059704,P361,c(Q16334295))
action filter_type
action find
entity Q2059704
relation P361
type Q16334295
['Q2059704', 'P361', {'concept': 'Q16334295'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q16334295 . resource:Q2059704 property:P361 ?y }
television director
action filter_type
action find
entity television director
relation part of
type group of humans
['television director', 'part of', {'concept': 'group of humans'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:group_of_humans . resource:television_director property:part_of ?y }
[]
group of humans
Clarification for simple ques.
Q33999
SYSTEM
Did you mean actor ?
Q2059704 Q33999
(Q2059704,P361,c(Q16334295)) (Q33999,P361,c(Q16334295))
[ANSWER]
['Q2059704', 'P361', {'concept': 'Q16334295'}] ['Q33999', 'P361', {'concept': 'Q16334295'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q16334295 . resource:Q2059704 property:P361 ?y }
television director actor
Did you mean actor ?
actor
['television director', 'part of', {'concept': 'group of humans'}] ['actor', 'part of', {'concept': 'group of humans'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:group_of_humans . resource:television_director property:part_of ?y }
[]
Simple Question (Coreferenced)
USER
No, I meant television director. Could you tell me the answer for that?
(Q2059704,P361,c(Q16334295))
Q2059704
['Q2059704', 'P361', {'concept': 'Q16334295'}]
['television director', 'part of', {'concept': 'group of humans'}]
[]
Q7696997
SYSTEM
television crew
Q7696997
(Q2059704,P361,c(Q16334295))
action filter_type
action find
entity Q2059704
relation P361
type Q16334295
That occupation a part of is the [ANSWER]
['Q2059704', 'P361', {'concept': 'Q16334295'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:Q16334295 . resource:Q2059704 property:P361 ?y }
television crew
That occupation a part of is the television crew
television crew
action filter_type
action find
entity television director
relation part of
type group of humans
['television director', 'part of', {'concept': 'group of humans'}]
SELECT DISTINCT ?y WHERE { ?y rdf:type ontology:group_of_humans . resource:television_director property:part_of ?y }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q7696997
P361
Q12737077
USER
Which occupations are a component of that group of humans ?
(c(Q12737077),P361,Q7696997)
action filter_type
action find_reverse
entity Q7696997
relation P361
type Q12737077
[{'concept': 'Q12737077'}, 'P361', 'Q7696997']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q12737077 . ?v property:P361 resource:Q7696997 }
television crew
action filter_type
action find_reverse
entity television crew
relation part of
type occupation
[{'concept': 'occupation'}, 'part of', 'television crew']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:occupation . ?v property:part_of resource:television_crew }
[]
occupation
Q10798782 Q2059704 Q578109
SYSTEM
television actor, television director, television producer
Q10798782 Q2059704 Q578109
(c(Q12737077),P361,Q7696997)
action filter_type
action find_reverse
entity Q7696997
relation P361
type Q12737077
[ANSWERS] are a component of that group of humans
[{'concept': 'Q12737077'}, 'P361', 'Q7696997']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:Q12737077 . ?v property:P361 resource:Q7696997 }
television actor television director television producer
Television actor, television director and television producer are a component of that group of humans
television actor television director television producer
action filter_type
action find_reverse
entity television crew
relation part of
type occupation
[{'concept': 'occupation'}, 'part of', 'television crew']
SELECT DISTINCT ?v WHERE { ?v rdf:type ontology:occupation . ?v property:part_of resource:television_crew }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q6874874 Q3564816
P161 P7
Q502895
USER
Which people were casted in WUSA or are the brother of Mirza Jahan Shah ?
OR((Q3564816,P161,c(Q502895)), (Q6874874,P7,c(Q502895)))
action filter_type
action union
action find
entity Q3564816
relation P161
action find
entity Q6874874
relation P7
type Q502895
{'OR': [['Q3564816', 'P161', {'concept': 'Q502895'}], ['Q6874874', 'P7', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q6874874 property:P7 ?y } UNION { resource:Q3564816 property:P161 ?y } } . ?y rdf:type ontology:Q502895 }
Mirza Jahan Shah WUSA
action filter_type
action union
action find
entity WUSA
relation cast member
action find
entity Mirza Jahan Shah
relation brother
type common name
{'OR': [['WUSA', 'cast member', {'concept': 'common name'}], ['Mirza Jahan Shah', 'brother', {'concept': 'common name'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Mirza_Jahan_Shah property:brother ?y } UNION { resource:WUSA property:cast_member ?y } } . ?y rdf:type ontology:common_name }
[]
common name
Q41871 Q766783 Q230131 Q165283 Q373500 Q2403460 Q3371430 Q3307992 Q659962 Q1111542
SYSTEM
Some of them are Paul Newman, Moses Gunn, Cloris Leachman, Pat Hingle, Bruce Cabot, Jesse Vint, Paul Hampton, Michael Anderson, Jr., David Huddleston, Joanne Woodward
Q2216372 Q41871 Q373500 Q2373146 Q2403460 Q3371430 Q16858029 Q3307992 Q659962 Q193146 Q230131 Q165283 Q766783 Q1111542 Q127369 Q374045
OR((Q3564816,P161,c(Q502895)), (Q6874874,P7,c(Q502895)))
action filter_type
action union
action find
entity Q3564816
relation P161
action find
entity Q6874874
relation P7
type Q502895
[ANSWERS] were casted in WUSA or are the brother of Mirza Jahan Shah
{'OR': [['Q3564816', 'P161', {'concept': 'Q502895'}], ['Q6874874', 'P7', {'concept': 'Q502895'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Q6874874 property:P7 ?y } UNION { resource:Q3564816 property:P161 ?y } } . ?y rdf:type ontology:Q502895 }
Susan Batson Paul Newman Bruce Cabot Jim Boles Jesse Vint Paul Hampton Mirza Salim Michael Anderson, Jr. David Huddleston Anthony Perkins Cloris Leachman Pat Hingle Moses Gunn Joanne Woodward Bahadur Shah II Laurence Harvey
Paul Newman, Moses Gunn, Cloris Leachman, Pat Hingle, Bruce Cabot, Jesse Vint, Paul Hampton, Michael Anderson, Jr., David Huddleston and Joanne Woodward were casted in WUSA or are the brother of Mirza Jahan Shah
Paul Newman Moses Gunn Cloris Leachman Pat Hingle Bruce Cabot Jesse Vint Paul Hampton Michael Anderson, Jr. David Huddleston Joanne Woodward
action filter_type
action union
action find
entity WUSA
relation cast member
action find
entity Mirza Jahan Shah
relation brother
type common name
{'OR': [['WUSA', 'cast member', {'concept': 'common name'}], ['Mirza Jahan Shah', 'brother', {'concept': 'common name'}]]}
SELECT DISTINCT ?y WHERE { { { resource:Mirza_Jahan_Shah property:brother ?y } UNION { resource:WUSA property:cast_member ?y } } . ?y rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q659962
P1196
Q1931388
USER
What manner did that person die ?
(Q659962,P1196,c(Q1931388))
action filter_type
action find
entity Q659962
relation P1196
type Q1931388
['Q659962', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?c WHERE { resource:Q659962 property:P1196 ?c . ?c rdf:type ontology:Q1931388 }
David Huddleston
action filter_type
action find
entity David Huddleston
relation manner of death
type cause of death
['David Huddleston', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?c WHERE { resource:David_Huddleston property:manner_of_death ?c . ?c rdf:type ontology:cause_of_death }
[]
cause of death
Clarification for simple ques.
Q659962
SYSTEM
Did you mean David Huddleston ?
Q41871 Q766783 Q230131 Q165283 Q373500 Q2403460 Q3371430 Q3307992 Q659962 Q1111542
(Q41871,P1196,c(Q1931388)) (Q766783,P1196,c(Q1931388)) (Q230131,P1196,c(Q1931388)) (Q165283,P1196,c(Q1931388)) (Q373500,P1196,c(Q1931388)) (Q2403460,P1196,c(Q1931388)) (Q3371430,P1196,c(Q1931388)) (Q3307992,P1196,c(Q1931388)) (Q659962,P1196,c(Q1931388)) (Q1111542,P1196,c(Q1931388))
[ANSWER]
['Q41871', 'P1196', {'concept': 'Q1931388'}] ['Q766783', 'P1196', {'concept': 'Q1931388'}] ['Q230131', 'P1196', {'concept': 'Q1931388'}] ['Q165283', 'P1196', {'concept': 'Q1931388'}] ['Q373500', 'P1196', {'concept': 'Q1931388'}] ['Q2403460', 'P1196', {'concept': 'Q1931388'}] ['Q3371430', 'P1196', {'concept': 'Q1931388'}] ['Q3307992', 'P1196', {'concept': 'Q1931388'}] ['Q659962', 'P1196', {'concept': 'Q1931388'}] ['Q1111542', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?c WHERE { resource:Q659962 property:P1196 ?c . ?c rdf:type ontology:Q1931388 }
Paul Newman Moses Gunn Cloris Leachman Pat Hingle Bruce Cabot Jesse Vint Paul Hampton Michael Anderson, Jr. David Huddleston Joanne Woodward
Did you mean David Huddleston ?
David Huddleston
['Paul Newman', 'manner of death', {'concept': 'cause of death'}] ['Moses Gunn', 'manner of death', {'concept': 'cause of death'}] ['Cloris Leachman', 'manner of death', {'concept': 'cause of death'}] ['Pat Hingle', 'manner of death', {'concept': 'cause of death'}] ['Bruce Cabot', 'manner of death', {'concept': 'cause of death'}] ['Jesse Vint', 'manner of death', {'concept': 'cause of death'}] ['Paul Hampton', 'manner of death', {'concept': 'cause of death'}] ['Michael Anderson, Jr.', 'manner of death', {'concept': 'cause of death'}] ['David Huddleston', 'manner of death', {'concept': 'cause of death'}] ['Joanne Woodward', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?c WHERE { resource:David_Huddleston property:manner_of_death ?c . ?c rdf:type ontology:cause_of_death }
[]
Simple Question (Coreferenced)
USER
Yes
(Q659962,P1196,c(Q1931388))
['Q659962', 'P1196', {'concept': 'Q1931388'}]
['David Huddleston', 'manner of death', {'concept': 'cause of death'}]
[]
Q3739104
SYSTEM
natural causes
Q3739104
(Q659962,P1196,c(Q1931388))
action filter_type
action find
entity Q659962
relation P1196
type Q1931388
That person died in [ANSWER]
['Q659962', 'P1196', {'concept': 'Q1931388'}]
SELECT DISTINCT ?c WHERE { resource:Q659962 property:P1196 ?c . ?c rdf:type ontology:Q1931388 }
natural causes
That person died in natural causes
natural causes
action filter_type
action find
entity David Huddleston
relation manner of death
type cause of death
['David Huddleston', 'manner of death', {'concept': 'cause of death'}]
SELECT DISTINCT ?c WHERE { resource:David_Huddleston property:manner_of_death ?c . ?c rdf:type ontology:cause_of_death }
[]