Simple Question (Direct)
Simple Question
Q762722
P161
Q502895
USER
Who starred in Watching the Detectives ?
(Q762722,P161,c(Q502895))
action filter_type
action find
entity Q762722
relation P161
type Q502895
['Q762722', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q762722 property:P161 ?z . ?z rdf:type ontology:Q502895 }
Watching the Detectives
action filter_type
action find
entity Watching the Detectives
relation cast member
type common name
['Watching the Detectives', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Watching_the_Detectives property:cast_member ?z . ?z rdf:type ontology:common_name }
[]
common name
Q202589 Q188375 Q445115
SYSTEM
Cillian Murphy, Lucy Liu, Heather Burns
Q14539 Q202589 Q445115 Q444417 Q188375
(Q762722,P161,c(Q502895))
action filter_type
action find
entity Q762722
relation P161
type Q502895
[ANSWERS] starred in Watching the Detectives
['Q762722', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?z WHERE { resource:Q762722 property:P161 ?z . ?z rdf:type ontology:Q502895 }
Jason Sudeikis Cillian Murphy Heather Burns Callie Thorne Lucy Liu
Cillian Murphy, Lucy Liu and Heather Burns starred in Watching the Detectives
Cillian Murphy Lucy Liu Heather Burns
action filter_type
action find
entity Watching the Detectives
relation cast member
type common name
['Watching the Detectives', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?z WHERE { resource:Watching_the_Detectives property:cast_member ?z . ?z rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q188375
P175
Q6619679
USER
Which fictional humanoid gave the performance of that person ?
(c(Q6619679),P175,Q188375)
action filter_type
action find_reverse
entity Q188375
relation P175
type Q6619679
[{'concept': 'Q6619679'}, 'P175', 'Q188375']
SELECT DISTINCT ?s WHERE { ?s property:P175 resource:Q188375 . ?s rdf:type ontology:Q6619679 }
Lucy Liu
action filter_type
action find_reverse
entity Lucy Liu
relation performer
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'performer', 'Lucy Liu']
SELECT DISTINCT ?s WHERE { ?s property:performer resource:Lucy_Liu . ?s rdf:type ontology:fictional_humanoid }
[]
fictional humanoid
Clarification for simple ques.
Q188375
SYSTEM
Did you mean Lucy Liu ?
Q202589 Q188375 Q445115
(c(Q6619679),P175,Q202589) (c(Q6619679),P175,Q188375) (c(Q6619679),P175,Q445115)
[ANSWER]
[{'concept': 'Q6619679'}, 'P175', 'Q202589'] [{'concept': 'Q6619679'}, 'P175', 'Q188375'] [{'concept': 'Q6619679'}, 'P175', 'Q445115']
SELECT DISTINCT ?s WHERE { ?s property:P175 resource:Q188375 . ?s rdf:type ontology:Q6619679 }
Cillian Murphy Lucy Liu Heather Burns
Did you mean Lucy Liu ?
Lucy Liu
[{'concept': 'fictional humanoid'}, 'performer', 'Cillian Murphy'] [{'concept': 'fictional humanoid'}, 'performer', 'Lucy Liu'] [{'concept': 'fictional humanoid'}, 'performer', 'Heather Burns']
SELECT DISTINCT ?s WHERE { ?s property:performer resource:Lucy_Liu . ?s rdf:type ontology:fictional_humanoid }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q6619679),P175,Q188375)
[{'concept': 'Q6619679'}, 'P175', 'Q188375']
[{'concept': 'fictional humanoid'}, 'performer', 'Lucy Liu']
[]
Q1070876
SYSTEM
O-Ren Ishii
Q1070876
(c(Q6619679),P175,Q188375)
action filter_type
action find_reverse
entity Q188375
relation P175
type Q6619679
[ANSWER] gave the performance of that person
[{'concept': 'Q6619679'}, 'P175', 'Q188375']
SELECT DISTINCT ?s WHERE { ?s property:P175 resource:Q188375 . ?s rdf:type ontology:Q6619679 }
O-Ren Ishii
O-Ren Ishii gave the performance of that person
O-Ren Ishii
action filter_type
action find_reverse
entity Lucy Liu
relation performer
type fictional humanoid
[{'concept': 'fictional humanoid'}, 'performer', 'Lucy Liu']
SELECT DISTINCT ?s WHERE { ?s property:performer resource:Lucy_Liu . ?s rdf:type ontology:fictional_humanoid }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q1070876 Q30 Q414
P27
Q15617994
USER
Is that fictional humanoid a native of United States of America and Argentina ?
(Q1070876,P27,Q30) (Q1070876,P27,Q414)
action is_in
entity Q1070876
action intersection
action find_reverse
entity Q30
relation P27
action find_reverse
entity Q414
relation P27
['Q1070876', 'P27', 'Q30'] ['Q1070876', 'P27', 'Q414']
ASK WHERE { resource:Q1070876 property:P27 resource:Q414 . resource:Q1070876 property:P27 resource:Q30 }
O-Ren Ishii United States of America Argentina
action is_in
entity O-Ren Ishii
action intersection
action find_reverse
entity United States of America
relation country of citizenship
action find_reverse
entity Argentina
relation country of citizenship
['O-Ren Ishii', 'country of citizenship', 'United States of America'] ['O-Ren Ishii', 'country of citizenship', 'Argentina']
ASK WHERE { resource:O-Ren_Ishii property:country_of_citizenship resource:Argentina . resource:O-Ren_Ishii property:country_of_citizenship resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES and NO respectively
(Q1070876,P27,Q30) (Q1070876,P27,Q414)
action is_in
entity Q1070876
action intersection
action find_reverse
entity Q30
relation P27
action find_reverse
entity Q414
relation P27
[ANSWER]
['Q1070876', 'P27', 'Q30'] ['Q1070876', 'P27', 'Q414']
ASK WHERE { resource:Q1070876 property:P27 resource:Q414 . resource:Q1070876 property:P27 resource:Q30 }
YES and NO respectively
action is_in
entity O-Ren Ishii
action intersection
action find_reverse
entity United States of America
relation country of citizenship
action find_reverse
entity Argentina
relation country of citizenship
['O-Ren Ishii', 'country of citizenship', 'United States of America'] ['O-Ren Ishii', 'country of citizenship', 'Argentina']
ASK WHERE { resource:O-Ren_Ishii property:country_of_citizenship resource:Argentina . resource:O-Ren_Ishii property:country_of_citizenship resource:United_States_of_America }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P157
Q6619679 Q15619164
USER
Which abstract beings were assasinated by max number of fictional humanoids ?
(c(Q15619164),P157,c(Q6619679))
action argmax
action find_tuple_counts
relation P157
type Q15619164
type Q6619679
[{'concept': 'Q15619164'}, 'P157', {'concept': 'Q6619679'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?y ) WHERE { ?f property:P157 ?j . ?f rdf:type ontology:Q15619164 . ?j rdf:type ontology:Q6619679 } GROUP BY ?f } . FILTER ( ?y = ?r ) . { SELECT DISTINCT ( MAX ( ?q ) AS ?r ) { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?q ) WHERE { ?l rdf:type ontology:Q6619679 . ?n rdf:type ontology:Q15619164 . ?n property:P157 ?l } GROUP BY ?n } } }
action argmax
action find_tuple_counts
relation killed by
type abstract being
type fictional humanoid
[{'concept': 'abstract being'}, 'killed by', {'concept': 'fictional humanoid'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?y ) WHERE { ?f property:killed_by ?j . ?f rdf:type ontology:abstract_being . ?j rdf:type ontology:fictional_humanoid } GROUP BY ?f } . FILTER ( ?y = ?r ) . { SELECT DISTINCT ( MAX ( ?q ) AS ?r ) { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?q ) WHERE { ?l rdf:type ontology:fictional_humanoid . ?n rdf:type ontology:abstract_being . ?n property:killed_by ?l } GROUP BY ?n } } }
[]
fictional humanoid abstract being
Q897891 Q1051419 Q2264501
SYSTEM
Hathor, Vladimir Harkonnen, Rahvin
Q897891 Q1051419 Q2264501
(c(Q15619164),P157,c(Q6619679))
action argmax
action find_tuple_counts
relation P157
type Q15619164
type Q6619679
[ANSWERS] were assasinated by max number of fictional humanoids
[{'concept': 'Q15619164'}, 'P157', {'concept': 'Q6619679'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?y ) WHERE { ?f property:P157 ?j . ?f rdf:type ontology:Q15619164 . ?j rdf:type ontology:Q6619679 } GROUP BY ?f } . FILTER ( ?y = ?r ) . { SELECT DISTINCT ( MAX ( ?q ) AS ?r ) { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?q ) WHERE { ?l rdf:type ontology:Q6619679 . ?n rdf:type ontology:Q15619164 . ?n property:P157 ?l } GROUP BY ?n } } }
Hathor Vladimir Harkonnen Rahvin
Hathor, Vladimir Harkonnen and Rahvin were assasinated by max number of fictional humanoids
Hathor Vladimir Harkonnen Rahvin
action argmax
action find_tuple_counts
relation killed by
type abstract being
type fictional humanoid
[{'concept': 'abstract being'}, 'killed by', {'concept': 'fictional humanoid'}]
SELECT DISTINCT ?f WHERE { { SELECT DISTINCT ?f ( COUNT ( ?j ) AS ?y ) WHERE { ?f property:killed_by ?j . ?f rdf:type ontology:abstract_being . ?j rdf:type ontology:fictional_humanoid } GROUP BY ?f } . FILTER ( ?y = ?r ) . { SELECT DISTINCT ( MAX ( ?q ) AS ?r ) { SELECT DISTINCT ?n ( COUNT ( ?l ) AS ?q ) WHERE { ?l rdf:type ontology:fictional_humanoid . ?n rdf:type ontology:abstract_being . ?n property:killed_by ?l } GROUP BY ?n } } }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1070876
P175
Q502895
USER
What was staged by O-Ren Ishii ?
(Q1070876,P175,c(Q502895))
action filter_type
action find
entity Q1070876
relation P175
type Q502895
['Q1070876', 'P175', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q1070876 property:P175 ?e . ?e rdf:type ontology:Q502895 }
O-Ren Ishii
action filter_type
action find
entity O-Ren Ishii
relation performer
type common name
['O-Ren Ishii', 'performer', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:O-Ren_Ishii property:performer ?e . ?e rdf:type ontology:common_name }
[]
common name
Q188375
SYSTEM
Lucy Liu
Q188375
(Q1070876,P175,c(Q502895))
action filter_type
action find
entity Q1070876
relation P175
type Q502895
The [ANSWER] was staged by O-Ren Ishii
['Q1070876', 'P175', {'concept': 'Q502895'}]
SELECT DISTINCT ?e WHERE { resource:Q1070876 property:P175 ?e . ?e rdf:type ontology:Q502895 }
Lucy Liu
The Lucy Liu was staged by O-Ren Ishii
Lucy Liu
action filter_type
action find
entity O-Ren Ishii
relation performer
type common name
['O-Ren Ishii', 'performer', {'concept': 'common name'}]
SELECT DISTINCT ?e WHERE { resource:O-Ren_Ishii property:performer ?e . ?e rdf:type ontology:common_name }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Mult. entity type
Q38235 Q1346533
P166
Q618779
USER
How many awards were won by The Girl from Nowhere or Saskia & Serge ?
(Q38235,P166,c(Q618779)) (Q1346533,P166,c(Q618779))
action count
action union
action filter_type
action find
entity Q38235
relation P166
type Q618779
action filter_type
action find
entity Q1346533
relation P166
type Q618779
['Q38235', 'P166', {'concept': 'Q618779'}] ['Q1346533', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { ?x property:P166 ?g . VALUES ( ?x ) { ( resource:Q38235 ) ( resource:Q1346533 ) } }
The Girl from Nowhere Saskia & Serge
action count
action union
action filter_type
action find
entity The Girl from Nowhere
relation award received
type award
action filter_type
action find
entity Saskia & Serge
relation award received
type award
['The Girl from Nowhere', 'award received', {'concept': 'award'}] ['Saskia & Serge', 'award received', {'concept': 'award'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { ?x property:award_received ?g . VALUES ( ?x ) { ( resource:The_Girl_from_Nowhere ) ( resource:Saskia_&_Serge ) } }
[]
award
SYSTEM
2
Q1700510 Q5442991
(Q38235,P166,c(Q618779)) (Q1346533,P166,c(Q618779))
action count
action union
action filter_type
action find
entity Q38235
relation P166
type Q618779
action filter_type
action find
entity Q1346533
relation P166
type Q618779
[ANSWER]
['Q38235', 'P166', {'concept': 'Q618779'}] ['Q1346533', 'P166', {'concept': 'Q618779'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { ?x property:P166 ?g . VALUES ( ?x ) { ( resource:Q38235 ) ( resource:Q1346533 ) } }
Golden Leopard Knight of the Order of Orange-Nassau
2
action count
action union
action filter_type
action find
entity The Girl from Nowhere
relation award received
type award
action filter_type
action find
entity Saskia & Serge
relation award received
type award
['The Girl from Nowhere', 'award received', {'concept': 'award'}] ['Saskia & Serge', 'award received', {'concept': 'award'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?c ) WHERE { ?x property:award_received ?g . VALUES ( ?x ) { ( resource:The_Girl_from_Nowhere ) ( resource:Saskia_&_Serge ) } }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q38235
P57
Q502895
USER
Which person served as the directed of that work of art ?
action filter_type
action find
entity Q38235
relation P57
type Q502895
SELECT DISTINCT ?c WHERE { resource:Q38235 property:P57 ?c . ?c rdf:type ontology:Q502895 }
The Girl from Nowhere
action filter_type
action find
entity The Girl from Nowhere
relation director
type common name
SELECT DISTINCT ?c WHERE { resource:The_Girl_from_Nowhere property:director ?c . ?c rdf:type ontology:common_name }
[]
common name
Q953105
SYSTEM
Jean-Claude Brisseau
Q953105
action filter_type
action find
entity Q38235
relation P57
type Q502895
[ANSWER] served as the directed of that work of art
SELECT DISTINCT ?c WHERE { resource:Q38235 property:P57 ?c . ?c rdf:type ontology:Q502895 }
Jean-Claude Brisseau
Jean-Claude Brisseau served as the directed of that work of art
Jean-Claude Brisseau
action filter_type
action find
entity The Girl from Nowhere
relation director
type common name
SELECT DISTINCT ?c WHERE { resource:The_Girl_from_Nowhere property:director ?c . ?c rdf:type ontology:common_name }
[]