Simple Question (Direct)
Simple Question
Q526273
P1411
Q618779
USER
What awards do Andy Irons have ?
(Q526273,P1411,c(Q618779))
action filter_type
action find
entity Q526273
relation P1411
type Q618779
['Q526273', 'P1411', {'concept': 'Q618779'}]
SELECT DISTINCT ?j WHERE { resource:Q526273 property:P1411 ?j . ?j rdf:type ontology:Q618779 }
Andy Irons
action filter_type
action find
entity Andy Irons
relation nominated for
type award
['Andy Irons', 'nominated for', {'concept': 'award'}]
SELECT DISTINCT ?j WHERE { resource:Andy_Irons property:nominated_for ?j . ?j rdf:type ontology:award }
[]
award
Q4896553 Q4896723
SYSTEM
Best Action Sports Athlete ESPY Award, Best Male Action Sports Athlete ESPY Award
Q4896553 Q4896723
(Q526273,P1411,c(Q618779))
action filter_type
action find
entity Q526273
relation P1411
type Q618779
Andy Irons have won [ANSWERS]
['Q526273', 'P1411', {'concept': 'Q618779'}]
SELECT DISTINCT ?j WHERE { resource:Q526273 property:P1411 ?j . ?j rdf:type ontology:Q618779 }
Best Action Sports Athlete ESPY Award Best Male Action Sports Athlete ESPY Award
Andy Irons have won Best Action Sports Athlete ESPY Award and Best Male Action Sports Athlete ESPY Award
Best Action Sports Athlete ESPY Award Best Male Action Sports Athlete ESPY Award
action filter_type
action find
entity Andy Irons
relation nominated for
type award
['Andy Irons', 'nominated for', {'concept': 'award'}]
SELECT DISTINCT ?j WHERE { resource:Andy_Irons property:nominated_for ?j . ?j rdf:type ontology:award }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q526273
P21
Q290
USER
Which sex does that person belong to ?
(Q4896553,P21,c(Q290)) (Q4896723,P21,c(Q290))
action filter_type
action find
entity Q526273
relation P21
type Q290
['Q4896553', 'P21', {'concept': 'Q290'}] ['Q4896723', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q526273 property:P21 ?c . ?c rdf:type ontology:Q290 }
Andy Irons
action filter_type
action find
entity Andy Irons
relation gender
type sex
['Best Action Sports Athlete ESPY Award', 'gender', {'concept': 'sex'}] ['Best Male Action Sports Athlete ESPY Award', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Andy_Irons property:gender ?c . ?c rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q4896553,P21,c(Q290)) (Q4896723,P21,c(Q290))
action filter_type
action find
entity Q526273
relation P21
type Q290
That person belongs to [ANSWER]
['Q4896553', 'P21', {'concept': 'Q290'}] ['Q4896723', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { resource:Q526273 property:P21 ?c . ?c rdf:type ontology:Q290 }
male
That person belongs to male
male
action filter_type
action find
entity Andy Irons
relation gender
type sex
['Best Action Sports Athlete ESPY Award', 'gender', {'concept': 'sex'}] ['Best Male Action Sports Athlete ESPY Award', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { resource:Andy_Irons property:gender ?c . ?c rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581097 Q6389830
P21
Q502895
USER
Does Kenneth B. Davis have the gender as that sex ?
(Q6389830,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q6389830
relation P21
['Q6389830', 'P21', 'Q6581097']
ASK WHERE { resource:Q6389830 property:P21 resource:Q6581097 }
male Kenneth B. Davis
action is_in
entity male
action find
entity Kenneth B. Davis
relation gender
['Kenneth B. Davis', 'gender', 'male']
ASK WHERE { resource:Kenneth_B._Davis property:gender resource:male }
[]
common name
SYSTEM
YES
(Q6389830,P21,Q6581097)
action is_in
entity Q6581097
action find
entity Q6389830
relation P21
[ANSWER]
['Q6389830', 'P21', 'Q6581097']
ASK WHERE { resource:Q6389830 property:P21 resource:Q6581097 }
Yes
action is_in
entity male
action find
entity Kenneth B. Davis
relation gender
['Kenneth B. Davis', 'gender', 'male']
ASK WHERE { resource:Kenneth_B._Davis property:gender resource:male }
[]
Logical Reasoning (All)
Logical|Union|Multiple_Relation
Q2480182 Q526273
P509 P1050
Q2057971
USER
Which health problems lead to the death of Andy Irons or do Castro Alves have ?
OR((Q526273,P509,c(Q2057971)), (Q2480182,P1050,c(Q2057971)))
action filter_type
action union
action find
entity Q526273
relation P509
action find
entity Q2480182
relation P1050
type Q2057971
{'OR': [['Q526273', 'P509', {'concept': 'Q2057971'}], ['Q2480182', 'P1050', {'concept': 'Q2057971'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q526273 property:P509 ?m } UNION { resource:Q2480182 property:P1050 ?m } } . ?m rdf:type ontology:Q2057971 }
Castro Alves Andy Irons
action filter_type
action union
action find
entity Andy Irons
relation cause of death
action find
entity Castro Alves
relation medical condition
type health problem
{'OR': [['Andy Irons', 'cause of death', {'concept': 'health problem'}], ['Castro Alves', 'medical condition', {'concept': 'health problem'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Andy_Irons property:cause_of_death ?m } UNION { resource:Castro_Alves property:medical_condition ?m } } . ?m rdf:type ontology:health_problem }
[]
health problem
Q12152 Q12204
SYSTEM
myocardial infarction, tuberculosis
Q12152 Q12204
OR((Q526273,P509,c(Q2057971)), (Q2480182,P1050,c(Q2057971)))
action filter_type
action union
action find
entity Q526273
relation P509
action find
entity Q2480182
relation P1050
type Q2057971
And [ANSWERS] lead to the death of Andy Irons or do Castro Alves have
{'OR': [['Q526273', 'P509', {'concept': 'Q2057971'}], ['Q2480182', 'P1050', {'concept': 'Q2057971'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Q526273 property:P509 ?m } UNION { resource:Q2480182 property:P1050 ?m } } . ?m rdf:type ontology:Q2057971 }
myocardial infarction tuberculosis
And myocardial infarction and tuberculosis lead to the death of Andy Irons or do Castro Alves have
myocardial infarction tuberculosis
action filter_type
action union
action find
entity Andy Irons
relation cause of death
action find
entity Castro Alves
relation medical condition
type health problem
{'OR': [['Andy Irons', 'cause of death', {'concept': 'health problem'}], ['Castro Alves', 'medical condition', {'concept': 'health problem'}]]}
SELECT DISTINCT ?m WHERE { { { resource:Andy_Irons property:cause_of_death ?m } UNION { resource:Castro_Alves property:medical_condition ?m } } . ?m rdf:type ontology:health_problem }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1411
Q618779 Q502895 Q838948
USER
Which awards were max number of people or works of art nominated for ?
(c(Q502895)|c(Q838948),P1411,c(Q618779))
action argmax
action union
action find_reverse_tuple_counts
relation P1411
type Q618779
type Q502895
action find_reverse_tuple_counts
relation P1411
type Q618779
type Q838948
[[{'concept': 'Q502895'}, {'concept': 'Q838948'}], 'P1411', {'concept': 'Q618779'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?b ) { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?f ) WHERE { VALUES ( ?z ) { ( ontology:Q838948 ) ( ontology:Q502895 ) } . ?n rdf:type ?z } GROUP BY ?y } } . { SELECT DISTINCT ?u ( COUNT ( ?r ) AS ?m ) WHERE { VALUES ( ?s ) { ( ontology:Q838948 ) ( ontology:Q502895 ) } . ?r rdf:type ?s } GROUP BY ?u } . FILTER ( ?m = ?b ) }
action argmax
action union
action find_reverse_tuple_counts
relation nominated for
type award
type common name
action find_reverse_tuple_counts
relation nominated for
type award
type work of art
[[{'concept': 'common name'}, {'concept': 'work of art'}], 'nominated for', {'concept': 'award'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?b ) { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?f ) WHERE { VALUES ( ?z ) { ( ontology:work_of_art ) ( ontology:common_name ) } . ?n rdf:type ?z } GROUP BY ?y } } . { SELECT DISTINCT ?u ( COUNT ( ?r ) AS ?m ) WHERE { VALUES ( ?s ) { ( ontology:work_of_art ) ( ontology:common_name ) } . ?r rdf:type ?s } GROUP BY ?u } . FILTER ( ?m = ?b ) }
[]
award common name work of art
Q37922
SYSTEM
Nobel Prize in Literature
Q37922
(c(Q502895)|c(Q838948),P1411,c(Q618779))
action argmax
action union
action find_reverse_tuple_counts
relation P1411
type Q618779
type Q502895
action find_reverse_tuple_counts
relation P1411
type Q618779
type Q838948
Max number of people or works of art were nominated for the [ANSWER]
[[{'concept': 'Q502895'}, {'concept': 'Q838948'}], 'P1411', {'concept': 'Q618779'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?b ) { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?f ) WHERE { VALUES ( ?z ) { ( ontology:Q838948 ) ( ontology:Q502895 ) } . ?n rdf:type ?z } GROUP BY ?y } } . { SELECT DISTINCT ?u ( COUNT ( ?r ) AS ?m ) WHERE { VALUES ( ?s ) { ( ontology:Q838948 ) ( ontology:Q502895 ) } . ?r rdf:type ?s } GROUP BY ?u } . FILTER ( ?m = ?b ) }
Nobel Prize in Literature
Max number of people or works of art were nominated for the Nobel Prize in Literature
Nobel Prize in Literature
action argmax
action union
action find_reverse_tuple_counts
relation nominated for
type award
type common name
action find_reverse_tuple_counts
relation nominated for
type award
type work of art
[[{'concept': 'common name'}, {'concept': 'work of art'}], 'nominated for', {'concept': 'award'}]
SELECT DISTINCT ?u WHERE { { SELECT DISTINCT ( MAX ( ?f ) AS ?b ) { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?f ) WHERE { VALUES ( ?z ) { ( ontology:work_of_art ) ( ontology:common_name ) } . ?n rdf:type ?z } GROUP BY ?y } } . { SELECT DISTINCT ?u ( COUNT ( ?r ) AS ?m ) WHERE { VALUES ( ?s ) { ( ontology:work_of_art ) ( ontology:common_name ) } . ?r rdf:type ?s } GROUP BY ?u } . FILTER ( ?m = ?b ) }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q37922 Q3086453
P1346
Q502895
USER
Was Françoise Deldick the champion of that award ?
(Q37922,P1346,Q3086453)
action is_in
entity Q3086453
action find
entity Q37922
relation P1346
['Q37922', 'P1346', 'Q3086453']
ASK WHERE { resource:Q37922 property:P1346 resource:Q3086453 }
Nobel Prize in Literature Françoise Deldick
action is_in
entity Françoise Deldick
action find
entity Nobel Prize in Literature
relation winner
['Nobel Prize in Literature', 'winner', 'Françoise Deldick']
ASK WHERE { resource:Nobel_Prize_in_Literature property:winner resource:Françoise_Deldick }
[]
common name
SYSTEM
NO
(Q37922,P1346,Q3086453)
action is_in
entity Q3086453
action find
entity Q37922
relation P1346
[ANSWER]
['Q37922', 'P1346', 'Q3086453']
ASK WHERE { resource:Q37922 property:P1346 resource:Q3086453 }
No
action is_in
entity Françoise Deldick
action find
entity Nobel Prize in Literature
relation winner
['Nobel Prize in Literature', 'winner', 'Françoise Deldick']
ASK WHERE { resource:Nobel_Prize_in_Literature property:winner resource:Françoise_Deldick }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q6581097 Q4896553
P1411 P21
Q502895
USER
Which people were nominated for Best Action Sports Athlete ESPY Award and have the gender as male ?
AND((c(Q502895),P1411,Q4896553), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q4896553
relation P1411
action find_reverse
entity Q6581097
relation P21
type Q502895
{'AND': [[{'concept': 'Q502895'}, 'P1411', 'Q4896553'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?r WHERE { ?r property:P1411 resource:Q4896553 . ?r property:P21 resource:Q6581097 . ?r rdf:type ontology:Q502895 }
male Best Action Sports Athlete ESPY Award
action filter_type
action intersection
action find_reverse
entity Best Action Sports Athlete ESPY Award
relation nominated for
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'nominated for', 'Best Action Sports Athlete ESPY Award'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?r WHERE { ?r property:nominated_for resource:Best_Action_Sports_Athlete_ESPY_Award . ?r property:gender resource:male . ?r rdf:type ontology:common_name }
[]
common name
Q526273
SYSTEM
Andy Irons
Q526273
AND((c(Q502895),P1411,Q4896553), (c(Q502895),P21,Q6581097))
action filter_type
action intersection
action find_reverse
entity Q4896553
relation P1411
action find_reverse
entity Q6581097
relation P21
type Q502895
[ANSWER] was nominated for Best Action Sports Athlete ESPY Award and have the gender as male
{'AND': [[{'concept': 'Q502895'}, 'P1411', 'Q4896553'], [{'concept': 'Q502895'}, 'P21', 'Q6581097']]}
SELECT DISTINCT ?r WHERE { ?r property:P1411 resource:Q4896553 . ?r property:P21 resource:Q6581097 . ?r rdf:type ontology:Q502895 }
Andy Irons
Andy Irons was nominated for Best Action Sports Athlete ESPY Award and have the gender as male
Andy Irons
action filter_type
action intersection
action find_reverse
entity Best Action Sports Athlete ESPY Award
relation nominated for
action find_reverse
entity male
relation gender
type common name
{'AND': [[{'concept': 'common name'}, 'nominated for', 'Best Action Sports Athlete ESPY Award'], [{'concept': 'common name'}, 'gender', 'male']]}
SELECT DISTINCT ?r WHERE { ?r property:nominated_for resource:Best_Action_Sports_Athlete_ESPY_Award . ?r property:gender resource:male . ?r rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q526273
P641
Q349
USER
What did that person participate in ?
(Q526273,P641,c(Q349))
action filter_type
action find
entity Q526273
relation P641
type Q349
['Q526273', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?e WHERE { resource:Q526273 property:P641 ?e . ?e rdf:type ontology:Q349 }
Andy Irons
action filter_type
action find
entity Andy Irons
relation sport
type sport
['Andy Irons', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?e WHERE { resource:Andy_Irons property:sport ?e . ?e rdf:type ontology:sport }
[]
sport
Q159992
SYSTEM
surfing
Q159992
(Q526273,P641,c(Q349))
action filter_type
action find
entity Q526273
relation P641
type Q349
That person participated in [ANSWER]
['Q526273', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?e WHERE { resource:Q526273 property:P641 ?e . ?e rdf:type ontology:Q349 }
surfing
That person participated in surfing
surfing
action filter_type
action find
entity Andy Irons
relation sport
type sport
['Andy Irons', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?e WHERE { resource:Andy_Irons property:sport ?e . ?e rdf:type ontology:sport }
[]