Simple Question (Direct)
Simple Question
Q1146404
P161
Q502895
USER
Which people starred in Helen Keller in Her Story ?
(Q1146404,P161,c(Q502895))
action filter_type
action find
entity Q1146404
relation P161
type Q502895
['Q1146404', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q1146404 property:P161 ?f . ?f rdf:type ontology:Q502895 }
Helen Keller in Her Story
action filter_type
action find
entity Helen Keller in Her Story
relation cast member
type common name
['Helen Keller in Her Story', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Helen_Keller_in_Her_Story property:cast_member ?f . ?f rdf:type ontology:common_name }
[]
common name
Q272086 Q38203
SYSTEM
Katharine Cornell, Helen Keller
Q272086 Q38203
(Q1146404,P161,c(Q502895))
action filter_type
action find
entity Q1146404
relation P161
type Q502895
The [ANSWERS] starred in Helen Keller in Her Story
['Q1146404', 'P161', {'concept': 'Q502895'}]
SELECT DISTINCT ?f WHERE { resource:Q1146404 property:P161 ?f . ?f rdf:type ontology:Q502895 }
Katharine Cornell Helen Keller
The Katharine Cornell and Helen Keller starred in Helen Keller in Her Story
Katharine Cornell Helen Keller
action filter_type
action find
entity Helen Keller in Her Story
relation cast member
type common name
['Helen Keller in Her Story', 'cast member', {'concept': 'common name'}]
SELECT DISTINCT ?f WHERE { resource:Helen_Keller_in_Her_Story property:cast_member ?f . ?f rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q272086 Q38203
P161
Q838948
USER
Which works of art stars those people as actor ?
(c(Q838948),P161,Q272086) (c(Q838948),P161,Q38203)
action filter_type
action find_reverse
entity prev_answer
relation P161
type Q838948
[{'concept': 'Q838948'}, 'P161', 'Q272086'] [{'concept': 'Q838948'}, 'P161', 'Q38203']
SELECT DISTINCT ?z WHERE { VALUES ( ?f ) { ( resource:Q272086 ) ( resource:Q38203 ) } . ?z rdf:type ontology:Q838948 . ?z property:P161 ?f }
Katharine Cornell Helen Keller
action filter_type
action find_reverse
entity prev_answer
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Katharine Cornell'] [{'concept': 'work of art'}, 'cast member', 'Helen Keller']
SELECT DISTINCT ?z WHERE { VALUES ( ?f ) { ( resource:Katharine_Cornell ) ( resource:Helen_Keller ) } . ?z rdf:type ontology:work_of_art . ?z property:cast_member ?f }
[]
work of art
Q1146404
SYSTEM
Helen Keller in Her Story
Q1146404
(c(Q838948),P161,Q272086) (c(Q838948),P161,Q38203)
action filter_type
action find_reverse
entity prev_answer
relation P161
type Q838948
[ANSWER] stars those people as actor
[{'concept': 'Q838948'}, 'P161', 'Q272086'] [{'concept': 'Q838948'}, 'P161', 'Q38203']
SELECT DISTINCT ?z WHERE { VALUES ( ?f ) { ( resource:Q272086 ) ( resource:Q38203 ) } . ?z rdf:type ontology:Q838948 . ?z property:P161 ?f }
Helen Keller in Her Story
Helen Keller in Her Story stars those people as actor
Helen Keller in Her Story
action filter_type
action find_reverse
entity prev_answer
relation cast member
type work of art
[{'concept': 'work of art'}, 'cast member', 'Katharine Cornell'] [{'concept': 'work of art'}, 'cast member', 'Helen Keller']
SELECT DISTINCT ?z WHERE { VALUES ( ?f ) { ( resource:Katharine_Cornell ) ( resource:Helen_Keller ) } . ?z rdf:type ontology:work_of_art . ?z property:cast_member ?f }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q38203
P1050
Q1441305
USER
Which medical sign does Helen Keller suffer from ?
(Q38203,P1050,c(Q1441305))
action filter_type
action find
entity Q38203
relation P1050
type Q1441305
['Q38203', 'P1050', {'concept': 'Q1441305'}]
SELECT DISTINCT ?y WHERE { resource:Q38203 property:P1050 ?y . ?y rdf:type ontology:Q1441305 }
Helen Keller
action filter_type
action find
entity Helen Keller
relation medical condition
type medical sign
['Helen Keller', 'medical condition', {'concept': 'medical sign'}]
SELECT DISTINCT ?y WHERE { resource:Helen_Keller property:medical_condition ?y . ?y rdf:type ontology:medical_sign }
[]
medical sign
Q843356
SYSTEM
deafblindness
Q843356
(Q38203,P1050,c(Q1441305))
action filter_type
action find
entity Q38203
relation P1050
type Q1441305
Helen Keller suffers from [ANSWER]
['Q38203', 'P1050', {'concept': 'Q1441305'}]
SELECT DISTINCT ?y WHERE { resource:Q38203 property:P1050 ?y . ?y rdf:type ontology:Q1441305 }
deafblindness
Helen Keller suffers from deafblindness
deafblindness
action filter_type
action find
entity Helen Keller
relation medical condition
type medical sign
['Helen Keller', 'medical condition', {'concept': 'medical sign'}]
SELECT DISTINCT ?y WHERE { resource:Helen_Keller property:medical_condition ?y . ?y rdf:type ontology:medical_sign }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q263241
Q1441305
USER
And also tell me about Mary Wickes?
(Q263241,P1050,c(Q1441305))
action filter_type
action find
entity Q263241
relation P1050
type Q1441305
['Q263241', 'P1050', {'concept': 'Q1441305'}]
SELECT DISTINCT ?p WHERE { resource:Q263241 property:P1050 ?p . ?p rdf:type ontology:Q1441305 }
Mary Wickes
action filter_type
action find
entity Mary Wickes
relation medical condition
type medical sign
['Mary Wickes', 'medical condition', {'concept': 'medical sign'}]
SELECT DISTINCT ?p WHERE { resource:Mary_Wickes property:medical_condition ?p . ?p rdf:type ontology:medical_sign }
[]
medical sign
Q1495657
SYSTEM
gastrointestinal bleeding
Q1495657
(Q263241,P1050,c(Q1441305))
action filter_type
action find
entity Q263241
relation P1050
type Q1441305
[ANSWER]
['Q263241', 'P1050', {'concept': 'Q1441305'}]
SELECT DISTINCT ?p WHERE { resource:Q263241 property:P1050 ?p . ?p rdf:type ontology:Q1441305 }
gastrointestinal bleeding
gastrointestinal bleeding
action filter_type
action find
entity Mary Wickes
relation medical condition
type medical sign
['Mary Wickes', 'medical condition', {'concept': 'medical sign'}]
SELECT DISTINCT ?p WHERE { resource:Mary_Wickes property:medical_condition ?p . ?p rdf:type ontology:medical_sign }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P828
Q796194 Q1441305
USER
Which medical procedures are the underlying cause of max number of medical signs ?
(c(Q1441305),P828,Q974135)
action argmax
action find_reverse_tuple_counts
relation P828
type Q796194
type Q1441305
[{'concept': 'Q1441305'}, 'P828', 'Q974135']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?i ) WHERE { ?q property:P828 ?x . ?x rdf:type ontology:Q796194 . ?q rdf:type ontology:Q1441305 } GROUP BY ?x } . FILTER ( ?i = ?w ) . { SELECT DISTINCT ( MAX ( ?n ) AS ?w ) { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:P828 ?s . ?e rdf:type ontology:Q1441305 . ?s rdf:type ontology:Q796194 } GROUP BY ?s } } }
action argmax
action find_reverse_tuple_counts
relation has cause
type medical procedure
type medical sign
[{'concept': 'medical sign'}, 'has cause', 'chemotherapy']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?i ) WHERE { ?q property:has_cause ?x . ?x rdf:type ontology:medical_procedure . ?q rdf:type ontology:medical_sign } GROUP BY ?x } . FILTER ( ?i = ?w ) . { SELECT DISTINCT ( MAX ( ?n ) AS ?w ) { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:has_cause ?s . ?e rdf:type ontology:medical_sign . ?s rdf:type ontology:medical_procedure } GROUP BY ?s } } }
[]
medical procedure medical sign
Q974135
SYSTEM
chemotherapy
Q974135
(c(Q1441305),P828,Q974135)
action argmax
action find_reverse_tuple_counts
relation P828
type Q796194
type Q1441305
[ANSWER] is the underlying cause of max number of medical signs
[{'concept': 'Q1441305'}, 'P828', 'Q974135']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?i ) WHERE { ?q property:P828 ?x . ?x rdf:type ontology:Q796194 . ?q rdf:type ontology:Q1441305 } GROUP BY ?x } . FILTER ( ?i = ?w ) . { SELECT DISTINCT ( MAX ( ?n ) AS ?w ) { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:P828 ?s . ?e rdf:type ontology:Q1441305 . ?s rdf:type ontology:Q796194 } GROUP BY ?s } } }
chemotherapy
Chemotherapy is the underlying cause of max number of medical signs
chemotherapy
action argmax
action find_reverse_tuple_counts
relation has cause
type medical procedure
type medical sign
[{'concept': 'medical sign'}, 'has cause', 'chemotherapy']
SELECT DISTINCT ?x WHERE { { SELECT DISTINCT ?x ( COUNT ( ?q ) AS ?i ) WHERE { ?q property:has_cause ?x . ?x rdf:type ontology:medical_procedure . ?q rdf:type ontology:medical_sign } GROUP BY ?x } . FILTER ( ?i = ?w ) . { SELECT DISTINCT ( MAX ( ?n ) AS ?w ) { SELECT DISTINCT ?s ( COUNT ( ?e ) AS ?n ) WHERE { ?e property:has_cause ?s . ?e rdf:type ontology:medical_sign . ?s rdf:type ontology:medical_procedure } GROUP BY ?s } } }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q974135 Q21112235 Q127076
P1542
Q1441305
USER
Did that medical procedure caused increased reflex excitability and vomiting ?
(Q974135,P1542,Q21112235) (Q974135,P1542,Q127076)
action is_in
entity Q974135
action intersection
action find_reverse
entity Q21112235
relation P1542
action find_reverse
entity Q127076
relation P1542
['Q974135', 'P1542', 'Q21112235'] ['Q974135', 'P1542', 'Q127076']
ASK WHERE { resource:Q974135 property:P1542 resource:Q21112235 . resource:Q974135 property:P1542 resource:Q127076 }
chemotherapy increased reflex excitability vomiting
action is_in
entity chemotherapy
action intersection
action find_reverse
entity increased reflex excitability
relation cause of
action find_reverse
entity vomiting
relation cause of
['chemotherapy', 'cause of', 'increased reflex excitability'] ['chemotherapy', 'cause of', 'vomiting']
ASK WHERE { resource:chemotherapy property:cause_of resource:increased_reflex_excitability . resource:chemotherapy property:cause_of resource:vomiting }
[]
medical sign
SYSTEM
NO and YES respectively
(Q974135,P1542,Q21112235) (Q974135,P1542,Q127076)
action is_in
entity Q974135
action intersection
action find_reverse
entity Q21112235
relation P1542
action find_reverse
entity Q127076
relation P1542
[ANSWER]
['Q974135', 'P1542', 'Q21112235'] ['Q974135', 'P1542', 'Q127076']
ASK WHERE { resource:Q974135 property:P1542 resource:Q21112235 . resource:Q974135 property:P1542 resource:Q127076 }
NO and YES respectively
action is_in
entity chemotherapy
action intersection
action find_reverse
entity increased reflex excitability
relation cause of
action find_reverse
entity vomiting
relation cause of
['chemotherapy', 'cause of', 'increased reflex excitability'] ['chemotherapy', 'cause of', 'vomiting']
ASK WHERE { resource:chemotherapy property:cause_of resource:increased_reflex_excitability . resource:chemotherapy property:cause_of resource:vomiting }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q272086 Q30
P27
Q15617994
USER
Is Katharine Cornell an inhabitant of United States of America ?
(Q272086,P27,Q30)
action is_in
entity Q30
action find
entity Q272086
relation P27
['Q272086', 'P27', 'Q30']
ASK WHERE { resource:Q272086 property:P27 resource:Q30 }
Katharine Cornell United States of America
action is_in
entity United States of America
action find
entity Katharine Cornell
relation country of citizenship
['Katharine Cornell', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Katharine_Cornell property:country_of_citizenship resource:United_States_of_America }
[]
designation for an administrative territorial entity
SYSTEM
YES
(Q272086,P27,Q30)
action is_in
entity Q30
action find
entity Q272086
relation P27
[ANSWER]
['Q272086', 'P27', 'Q30']
ASK WHERE { resource:Q272086 property:P27 resource:Q30 }
Yes
action is_in
entity United States of America
action find
entity Katharine Cornell
relation country of citizenship
['Katharine Cornell', 'country of citizenship', 'United States of America']
ASK WHERE { resource:Katharine_Cornell property:country_of_citizenship resource:United_States_of_America }
[]