Simple Question (Direct)
Simple Question
Q28591
P39
Q12737077
USER
What was the position for which David Petraeus was appointed ?
(Q28591,P39,c(Q12737077))
action filter_type
action find
entity Q28591
relation P39
type Q12737077
['Q28591', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q28591 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
David Petraeus
action filter_type
action find
entity David Petraeus
relation position held
type occupation
['David Petraeus', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:David_Petraeus property:position_held ?u . ?u rdf:type ontology:occupation }
[]
occupation
Q27656
SYSTEM
Director of the Central Intelligence Agency
Q27656
(Q28591,P39,c(Q12737077))
action filter_type
action find
entity Q28591
relation P39
type Q12737077
[ANSWER]
['Q28591', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?u WHERE { resource:Q28591 property:P39 ?u . ?u rdf:type ontology:Q12737077 }
Director of the Central Intelligence Agency
Director of the Central Intelligence Agency
Director of the Central Intelligence Agency
action filter_type
action find
entity David Petraeus
relation position held
type occupation
['David Petraeus', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?u WHERE { resource:David_Petraeus property:position_held ?u . ?u rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q28591
P241
Q781132
USER
Which military branch is David Petraeus affiliated to ?
(Q28591,P241,c(Q781132))
action filter_type
action find
entity Q28591
relation P241
type Q781132
['Q28591', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?l WHERE { resource:Q28591 property:P241 ?l . ?l rdf:type ontology:Q781132 }
David Petraeus
action filter_type
action find
entity David Petraeus
relation military branch
type military branch
['David Petraeus', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?l WHERE { resource:David_Petraeus property:military_branch ?l . ?l rdf:type ontology:military_branch }
[]
military branch
Q9212
SYSTEM
United States Army
Q9212
(Q28591,P241,c(Q781132))
action filter_type
action find
entity Q28591
relation P241
type Q781132
David Petraeus is affiliated with [ANSWER]
['Q28591', 'P241', {'concept': 'Q781132'}]
SELECT DISTINCT ?l WHERE { resource:Q28591 property:P241 ?l . ?l rdf:type ontology:Q781132 }
United States Army
David Petraeus is affiliated with United States Army
United States Army
action filter_type
action find
entity David Petraeus
relation military branch
type military branch
['David Petraeus', 'military branch', {'concept': 'military branch'}]
SELECT DISTINCT ?l WHERE { resource:David_Petraeus property:military_branch ?l . ?l rdf:type ontology:military_branch }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9212
P178
Q223557
USER
What was manufactured by that military branch ?
(c(Q223557),P178,Q9212)
action filter_type
action find_reverse
entity Q9212
relation P178
type Q223557
[{'concept': 'Q223557'}, 'P178', 'Q9212']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q223557 . ?d property:P178 resource:Q9212 }
United States Army
action filter_type
action find_reverse
entity United States Army
relation developer
type physical object
[{'concept': 'physical object'}, 'developer', 'United States Army']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:physical_object . ?d property:developer resource:United_States_Army }
[]
physical object
Q7934927
SYSTEM
Virtual Army Experience
Q7934927
(c(Q223557),P178,Q9212)
action filter_type
action find_reverse
entity Q9212
relation P178
type Q223557
[ANSWER] was manufactured by that military branch
[{'concept': 'Q223557'}, 'P178', 'Q9212']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:Q223557 . ?d property:P178 resource:Q9212 }
Virtual Army Experience
Virtual Army Experience was manufactured by that military branch
Virtual Army Experience
action filter_type
action find_reverse
entity United States Army
relation developer
type physical object
[{'concept': 'physical object'}, 'developer', 'United States Army']
SELECT DISTINCT ?d WHERE { ?d rdf:type ontology:physical_object . ?d property:developer resource:United_States_Army }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9212
P166
Q4220917
USER
What was received by United States Army ?
(Q9212,P166,c(Q4220917))
action filter_type
action find
entity Q9212
relation P166
type Q4220917
['Q9212', 'P166', {'concept': 'Q4220917'}]
SELECT DISTINCT ?l WHERE { resource:Q9212 property:P166 ?l . ?l rdf:type ontology:Q4220917 }
United States Army
action filter_type
action find
entity United States Army
relation award received
type film award
['United States Army', 'award received', {'concept': 'film award'}]
SELECT DISTINCT ?l WHERE { resource:United_States_Army property:award_received ?l . ?l rdf:type ontology:film_award }
[]
film award
Q1425151
SYSTEM
Academy Award for Best Documentary, Short Subject
Q1425151
(Q9212,P166,c(Q4220917))
action filter_type
action find
entity Q9212
relation P166
type Q4220917
[ANSWER] was received by United States Army
['Q9212', 'P166', {'concept': 'Q4220917'}]
SELECT DISTINCT ?l WHERE { resource:Q9212 property:P166 ?l . ?l rdf:type ontology:Q4220917 }
Academy Award for Best Documentary, Short Subject
Academy Award for Best Documentary, Short Subject was received by United States Army
Academy Award for Best Documentary, Short Subject
action filter_type
action find
entity United States Army
relation award received
type film award
['United States Army', 'award received', {'concept': 'film award'}]
SELECT DISTINCT ?l WHERE { resource:United_States_Army property:award_received ?l . ?l rdf:type ontology:film_award }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q165627
Q4220917
USER
And also tell me about Sophie's Choice?
(Q165627,P166,c(Q4220917))
action filter_type
action find
entity Q165627
relation P166
type Q4220917
['Q165627', 'P166', {'concept': 'Q4220917'}]
SELECT DISTINCT ?v WHERE { resource:Q165627 property:P166 ?v . ?v rdf:type ontology:Q4220917 }
Sophie's Choice
action filter_type
action find
entity Sophie's Choice
relation award received
type film award
["Sophie's Choice", 'award received', {'concept': 'film award'}]
SELECT DISTINCT ?v WHERE { resource:Sophie's_Choice property:award_received ?v . ?v rdf:type ontology:film_award }
[]
film award
Q463085 Q103618 Q1268927
SYSTEM
Golden Globe Award for Best Actress – Motion Picture Drama, Academy Award for Best Actress, National Society of Film Critics Award for Best Actress
Q463085 Q103618 Q1268927
(Q165627,P166,c(Q4220917))
action filter_type
action find
entity Q165627
relation P166
type Q4220917
[ANSWERS]
['Q165627', 'P166', {'concept': 'Q4220917'}]
SELECT DISTINCT ?v WHERE { resource:Q165627 property:P166 ?v . ?v rdf:type ontology:Q4220917 }
Golden Globe Award for Best Actress – Motion Picture Drama Academy Award for Best Actress National Society of Film Critics Award for Best Actress
Golden Globe Award for Best Actress – Motion Picture Drama Academy Award for Best Actress National Society of Film Critics Award for Best Actress
action filter_type
action find
entity Sophie's Choice
relation award received
type film award
["Sophie's Choice", 'award received', {'concept': 'film award'}]
SELECT DISTINCT ?v WHERE { resource:Sophie's_Choice property:award_received ?v . ?v rdf:type ontology:film_award }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1411
Q4220917 Q502895 Q838948
USER
Which film awards do max number of people or works of art have ?
(c(Q502895)|c(Q838948),P1411,c(Q4220917))
action argmax
action union
action find_reverse_tuple_counts
relation P1411
type Q4220917
type Q502895
action find_reverse_tuple_counts
relation P1411
type Q4220917
type Q838948
[[{'concept': 'Q502895'}, {'concept': 'Q838948'}], 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?l ) { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?m ) WHERE { { ?s property:P1411 ?q . ?q rdf:type ontology:Q4220917 . ?s rdf:type ontology:Q502895 } UNION { ?s property:P1411 ?q . ?q rdf:type ontology:Q4220917 . ?s rdf:type ontology:Q838948 } } GROUP BY ?q } } . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?z ) WHERE { VALUES ( ?t ) { ( ontology:Q502895 ) ( ontology:Q838948 ) } . ?k rdf:type ?t } GROUP BY ?n } . FILTER ( ?z = ?l ) }
action argmax
action union
action find_reverse_tuple_counts
relation nominated for
type film award
type common name
action find_reverse_tuple_counts
relation nominated for
type film award
type work of art
[[{'concept': 'common name'}, {'concept': 'work of art'}], 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?l ) { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?m ) WHERE { { ?s property:nominated_for ?q . ?q rdf:type ontology:film_award . ?s rdf:type ontology:common_name } UNION { ?s property:nominated_for ?q . ?q rdf:type ontology:film_award . ?s rdf:type ontology:work_of_art } } GROUP BY ?q } } . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?z ) WHERE { VALUES ( ?t ) { ( ontology:common_name ) ( ontology:work_of_art ) } . ?k rdf:type ?t } GROUP BY ?n } . FILTER ( ?z = ?l ) }
[]
film award common name work of art
Q830079
SYSTEM
Academy Award for Best Sound Mixing
Q830079
(c(Q502895)|c(Q838948),P1411,c(Q4220917))
action argmax
action union
action find_reverse_tuple_counts
relation P1411
type Q4220917
type Q502895
action find_reverse_tuple_counts
relation P1411
type Q4220917
type Q838948
[ANSWER] max number of people or works of art have
[[{'concept': 'Q502895'}, {'concept': 'Q838948'}], 'P1411', {'concept': 'Q4220917'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?l ) { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?m ) WHERE { { ?s property:P1411 ?q . ?q rdf:type ontology:Q4220917 . ?s rdf:type ontology:Q502895 } UNION { ?s property:P1411 ?q . ?q rdf:type ontology:Q4220917 . ?s rdf:type ontology:Q838948 } } GROUP BY ?q } } . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?z ) WHERE { VALUES ( ?t ) { ( ontology:Q502895 ) ( ontology:Q838948 ) } . ?k rdf:type ?t } GROUP BY ?n } . FILTER ( ?z = ?l ) }
Academy Award for Best Sound Mixing
Academy Award for Best Sound Mixing max number of people or works of art have
Academy Award for Best Sound Mixing
action argmax
action union
action find_reverse_tuple_counts
relation nominated for
type film award
type common name
action find_reverse_tuple_counts
relation nominated for
type film award
type work of art
[[{'concept': 'common name'}, {'concept': 'work of art'}], 'nominated for', {'concept': 'film award'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ( MAX ( ?m ) AS ?l ) { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?m ) WHERE { { ?s property:nominated_for ?q . ?q rdf:type ontology:film_award . ?s rdf:type ontology:common_name } UNION { ?s property:nominated_for ?q . ?q rdf:type ontology:film_award . ?s rdf:type ontology:work_of_art } } GROUP BY ?q } } . { SELECT DISTINCT ?n ( COUNT ( ?k ) AS ?z ) WHERE { VALUES ( ?t ) { ( ontology:common_name ) ( ontology:work_of_art ) } . ?k rdf:type ?t } GROUP BY ?n } . FILTER ( ?z = ?l ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q328712
P180
Q223557 Q2342494 Q838948
USER
How many physical objects are expressed in around the same number of collectables or works of art as Fasces ?
(c(Q2342494)|c(Q838948),P180,c(Q223557))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q223557
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q223557
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q328712
relation P180
type Q2342494
type Q838948
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q223557'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) ?g WHERE { { ?u property:P180 ?g . ?g rdf:type ontology:Q223557 . ?u rdf:type ontology:Q2342494 } UNION { ?u property:P180 ?g . ?g rdf:type ontology:Q223557 . ?u rdf:type ontology:Q838948 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { ?l property:P180 resource:Q328712 . { ?l rdf:type ?r . VALUES ( ?r ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } } } } . FILTER ( ?e = ?b ) }
Fasces
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type physical object
type collectable
action find_reverse_tuple_counts
relation depicts
type physical object
type work of art
action count
action filter_multi_types
action find_reverse
entity Fasces
relation depicts
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'depicts', {'concept': 'physical object'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) ?g WHERE { { ?u property:depicts ?g . ?g rdf:type ontology:physical_object . ?u rdf:type ontology:collectable } UNION { ?u property:depicts ?g . ?g rdf:type ontology:physical_object . ?u rdf:type ontology:work_of_art } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { ?l property:depicts resource:Fasces . { ?l rdf:type ?r . VALUES ( ?r ) { ( ontology:collectable ) ( ontology:work_of_art ) } } } } . FILTER ( ?e = ?b ) }
[]
physical object collectable work of art
SYSTEM
2
Q2532754 Q328712
(c(Q2342494)|c(Q838948),P180,c(Q223557))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q223557
type Q2342494
action find_reverse_tuple_counts
relation P180
type Q223557
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q328712
relation P180
type Q2342494
type Q838948
[ANSWER]
[[{'concept': 'Q2342494'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q223557'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) ?g WHERE { { ?u property:P180 ?g . ?g rdf:type ontology:Q223557 . ?u rdf:type ontology:Q2342494 } UNION { ?u property:P180 ?g . ?g rdf:type ontology:Q223557 . ?u rdf:type ontology:Q838948 } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { ?l property:P180 resource:Q328712 . { ?l rdf:type ?r . VALUES ( ?r ) { ( ontology:Q2342494 ) ( ontology:Q838948 ) } } } } . FILTER ( ?e = ?b ) }
achievement Fasces
2
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type physical object
type collectable
action find_reverse_tuple_counts
relation depicts
type physical object
type work of art
action count
action filter_multi_types
action find_reverse
entity Fasces
relation depicts
type collectable
type work of art
[[{'concept': 'collectable'}, {'concept': 'work of art'}], 'depicts', {'concept': 'physical object'}]
SELECT DISTINCT ( COUNT ( ?g ) AS ?x ) WHERE { { SELECT DISTINCT ( COUNT ( ?u ) AS ?e ) ?g WHERE { { ?u property:depicts ?g . ?g rdf:type ontology:physical_object . ?u rdf:type ontology:collectable } UNION { ?u property:depicts ?g . ?g rdf:type ontology:physical_object . ?u rdf:type ontology:work_of_art } } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?b ) WHERE { ?l property:depicts resource:Fasces . { ?l rdf:type ?r . VALUES ( ?r ) { ( ontology:collectable ) ( ontology:work_of_art ) } } } } . FILTER ( ?e = ?b ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9212
P17
Q15617994
USER
Which administrative territory is United States Army located in ?
(Q9212,P17,c(Q15617994))
action filter_type
action find
entity Q9212
relation P17
type Q15617994
['Q9212', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q9212 property:P17 ?r . ?r rdf:type ontology:Q15617994 }
United States Army
action filter_type
action find
entity United States Army
relation country
type designation for an administrative territorial entity
['United States Army', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:United_States_Army property:country ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q30
SYSTEM
United States of America
Q30
(Q9212,P17,c(Q15617994))
action filter_type
action find
entity Q9212
relation P17
type Q15617994
Which administrative territory is United States Army located in
['Q9212', 'P17', {'concept': 'Q15617994'}]
SELECT DISTINCT ?r WHERE { resource:Q9212 property:P17 ?r . ?r rdf:type ontology:Q15617994 }
United States of America
Which administrative territory is United States Army located in
United States of America
action filter_type
action find
entity United States Army
relation country
type designation for an administrative territorial entity
['United States Army', 'country', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?r WHERE { resource:United_States_Army property:country ?r . ?r rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q30
P1071
Q478798
USER
Which image has that administrative territory as its final assembly location ?
(c(Q478798),P1071,Q30)
action filter_type
action find_reverse
entity Q30
relation P1071
type Q478798
[{'concept': 'Q478798'}, 'P1071', 'Q30']
SELECT DISTINCT ?c WHERE { ?c property:P1071 resource:Q30 . ?c rdf:type ontology:Q478798 }
United States of America
action filter_type
action find_reverse
entity United States of America
relation location of final assembly
type image
[{'concept': 'image'}, 'location of final assembly', 'United States of America']
SELECT DISTINCT ?c WHERE { ?c property:location_of_final_assembly resource:United_States_of_America . ?c rdf:type ontology:image }
[]
image
Q18579026
SYSTEM
The Gardener
Q18579026
(c(Q478798),P1071,Q30)
action filter_type
action find_reverse
entity Q30
relation P1071
type Q478798
[ANSWER] has that administrative territory as its final assembly location
[{'concept': 'Q478798'}, 'P1071', 'Q30']
SELECT DISTINCT ?c WHERE { ?c property:P1071 resource:Q30 . ?c rdf:type ontology:Q478798 }
The Gardener
The Gardener has that administrative territory as its final assembly location
The Gardener
action filter_type
action find_reverse
entity United States of America
relation location of final assembly
type image
[{'concept': 'image'}, 'location of final assembly', 'United States of America']
SELECT DISTINCT ?c WHERE { ?c property:location_of_final_assembly resource:United_States_of_America . ?c rdf:type ontology:image }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q30
P38
Q8142
USER
What is the currency of United States of America ?
(Q30,P38,c(Q8142))
action filter_type
action find
entity Q30
relation P38
type Q8142
['Q30', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?a WHERE { resource:Q30 property:P38 ?a . ?a rdf:type ontology:Q8142 }
United States of America
action filter_type
action find
entity United States of America
relation currency
type currency
['United States of America', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?a WHERE { resource:United_States_of_America property:currency ?a . ?a rdf:type ontology:currency }
[]
currency
Q4917
SYSTEM
United States dollar
Q4917
(Q30,P38,c(Q8142))
action filter_type
action find
entity Q30
relation P38
type Q8142
The currency of United States of America is the [ANSWER]
['Q30', 'P38', {'concept': 'Q8142'}]
SELECT DISTINCT ?a WHERE { resource:Q30 property:P38 ?a . ?a rdf:type ontology:Q8142 }
United States dollar
The currency of United States of America is the United States dollar
United States dollar
action filter_type
action find
entity United States of America
relation currency
type currency
['United States of America', 'currency', {'concept': 'currency'}]
SELECT DISTINCT ?a WHERE { resource:United_States_of_America property:currency ?a . ?a rdf:type ontology:currency }
[]