Simple Question (Direct)
Simple Question
Q7346175
P39
Q12737077
USER
Which occupation was a position held by Robert Jones ?
(Q7346175,P39,c(Q12737077))
action filter_type
action find
entity Q7346175
relation P39
type Q12737077
['Q7346175', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q12737077 . resource:Q7346175 property:P39 ?m }
Robert Jones
action filter_type
action find
entity Robert Jones
relation position held
type occupation
['Robert Jones', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:occupation . resource:Robert_Jones property:position_held ?m }
[]
occupation
Q18018860
SYSTEM
Member of Parliament in the Parliament of England
Q18018860
(Q7346175,P39,c(Q12737077))
action filter_type
action find
entity Q7346175
relation P39
type Q12737077
The [ANSWER] was a position held by Robert Jones
['Q7346175', 'P39', {'concept': 'Q12737077'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q12737077 . resource:Q7346175 property:P39 ?m }
Member of Parliament in the Parliament of England
The Member of Parliament in the Parliament of England was a position held by Robert Jones
Member of Parliament in the Parliament of England
action filter_type
action find
entity Robert Jones
relation position held
type occupation
['Robert Jones', 'position held', {'concept': 'occupation'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:occupation . resource:Robert_Jones property:position_held ?m }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q7346175
P734
Q82799
USER
Who has the surname Robert Jones ?
(Q7346175,P734,c(Q82799))
action filter_type
action find
entity Q7346175
relation P734
type Q82799
['Q7346175', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q82799 . resource:Q7346175 property:P734 ?q }
Robert Jones
action filter_type
action find
entity Robert Jones
relation family name
type name
['Robert Jones', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:name . resource:Robert_Jones property:family_name ?q }
[]
name
Q59853
SYSTEM
Jones
Q59853
(Q7346175,P734,c(Q82799))
action filter_type
action find
entity Q7346175
relation P734
type Q82799
[ANSWER] has the surname Robert [ANSWER]
['Q7346175', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:Q82799 . resource:Q7346175 property:P734 ?q }
Jones
Jones has the surname Robert Jones
Jones
action filter_type
action find
entity Robert Jones
relation family name
type name
['Robert Jones', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?q WHERE { ?q rdf:type ontology:name . resource:Robert_Jones property:family_name ?q }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q11427518
Q82799
USER
And also tell me about Shirō Horie?
(Q11427518,P734,c(Q82799))
action filter_type
action find
entity Q11427518
relation P734
type Q82799
['Q11427518', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q11427518 property:P734 ?d . ?d rdf:type ontology:Q82799 }
Shirō Horie
action filter_type
action find
entity Shirō Horie
relation family name
type name
['Shirō Horie', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:Shirō_Horie property:family_name ?d . ?d rdf:type ontology:name }
[]
name
Q21506718
SYSTEM
Horie
Q21506718
(Q11427518,P734,c(Q82799))
action filter_type
action find
entity Q11427518
relation P734
type Q82799
[ANSWER]
['Q11427518', 'P734', {'concept': 'Q82799'}]
SELECT DISTINCT ?d WHERE { resource:Q11427518 property:P734 ?d . ?d rdf:type ontology:Q82799 }
Horie
Horie
action filter_type
action find
entity Shirō Horie
relation family name
type name
['Shirō Horie', 'family name', {'concept': 'name'}]
SELECT DISTINCT ?d WHERE { resource:Shirō_Horie property:family_name ?d . ?d rdf:type ontology:name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q11427518
P21
Q290
USER
What is the sex of that person ?
(Q21506718,P21,c(Q290))
action filter_type
action find
entity Q11427518
relation P21
type Q290
['Q21506718', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q11427518 property:P21 ?y . ?y rdf:type ontology:Q290 }
Shirō Horie
action filter_type
action find
entity Shirō Horie
relation gender
type sex
['Horie', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:Shirō_Horie property:gender ?y . ?y rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q21506718,P21,c(Q290))
action filter_type
action find
entity Q11427518
relation P21
type Q290
The sex of that person is a [ANSWER]
['Q21506718', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q11427518 property:P21 ?y . ?y rdf:type ontology:Q290 }
male
The sex of that person is a male
male
action filter_type
action find
entity Shirō Horie
relation gender
type sex
['Horie', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:Shirō_Horie property:gender ?y . ?y rdf:type ontology:sex }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q11427518
P58
Q838948
USER
How many works of art are Shirō Horie a screenwriter of ?
(c(Q838948),P58,Q11427518)
action count
action filter_type
action find_reverse
entity Q11427518
relation P58
type Q838948
[{'concept': 'Q838948'}, 'P58', 'Q11427518']
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:P58 resource:Q11427518 . ?x rdf:type ontology:Q838948 }
Shirō Horie
action count
action filter_type
action find_reverse
entity Shirō Horie
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Shirō Horie']
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:screenwriter resource:Shirō_Horie . ?x rdf:type ontology:work_of_art }
[]
work of art
SYSTEM
1
Q11524030
(c(Q838948),P58,Q11427518)
action count
action filter_type
action find_reverse
entity Q11427518
relation P58
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P58', 'Q11427518']
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:P58 resource:Q11427518 . ?x rdf:type ontology:Q838948 }
A Holiday in Tokyo
1
action count
action filter_type
action find_reverse
entity Shirō Horie
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Shirō Horie']
SELECT DISTINCT ( COUNT ( ?x ) AS ?j ) WHERE { ?x property:screenwriter resource:Shirō_Horie . ?x rdf:type ontology:work_of_art }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type|Incomplete
Q1162881
P58
Q838948
USER
And also tell me about Daniel Taradash?
(c(Q838948),P58,Q1162881)
action count
action filter_type
action find_reverse
entity Q1162881
relation P58
type Q838948
[{'concept': 'Q838948'}, 'P58', 'Q1162881']
SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { ?k property:P58 resource:Q1162881 . ?k rdf:type ontology:Q838948 }
Daniel Taradash
action count
action filter_type
action find_reverse
entity Daniel Taradash
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Daniel Taradash']
SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { ?k property:screenwriter resource:Daniel_Taradash . ?k rdf:type ontology:work_of_art }
[]
work of art
SYSTEM
15
Q1637360 Q3763675 Q1731060 Q1591594 Q1169701 Q207588 Q945470 Q2252714 Q2365712 Q2609491 Q258319 Q1300420 Q541414 Q1381081 Q448463
(c(Q838948),P58,Q1162881)
action count
action filter_type
action find_reverse
entity Q1162881
relation P58
type Q838948
[ANSWER]
[{'concept': 'Q838948'}, 'P58', 'Q1162881']
SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { ?k property:P58 resource:Q1162881 . ?k rdf:type ontology:Q838948 }
Don't Bother to Knock The Noose Hangs High Bell, Book and Candle Hawaii Rancho Notorious From Here to Eternity Désirée Knock on Any Door The Other Side of Midnight Storm Center Castle Keep Picnic Morituri Golden Boy Alvarez Kelly
15
action count
action filter_type
action find_reverse
entity Daniel Taradash
relation screenwriter
type work of art
[{'concept': 'work of art'}, 'screenwriter', 'Daniel Taradash']
SELECT DISTINCT ( COUNT ( ?k ) AS ?c ) WHERE { ?k property:screenwriter resource:Daniel_Taradash . ?k rdf:type ontology:work_of_art }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1162881
P509
Q2057971
USER
What was the cause of death of that person ?
action filter_type
action find
entity Q1162881
relation P509
type Q2057971
SELECT DISTINCT ?u WHERE { resource:Q1162881 property:P509 ?u . ?u rdf:type ontology:Q2057971 }
Daniel Taradash
action filter_type
action find
entity Daniel Taradash
relation cause of death
type health problem
SELECT DISTINCT ?u WHERE { resource:Daniel_Taradash property:cause_of_death ?u . ?u rdf:type ontology:health_problem }
[]
health problem
Q212961
SYSTEM
pancreatic cancer
Q212961
action filter_type
action find
entity Q1162881
relation P509
type Q2057971
The cause of death of that person was a [ANSWER]
SELECT DISTINCT ?u WHERE { resource:Q1162881 property:P509 ?u . ?u rdf:type ontology:Q2057971 }
pancreatic cancer
The cause of death of that person was a pancreatic cancer
pancreatic cancer
action filter_type
action find
entity Daniel Taradash
relation cause of death
type health problem
SELECT DISTINCT ?u WHERE { resource:Daniel_Taradash property:cause_of_death ?u . ?u rdf:type ontology:health_problem }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count over Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P180
Q12737077 Q340169 Q17638008
USER
How many occupations are depicted in atleast 2 medias and game equipment ?
(c(Q340169)|c(Q17638008),P180,c(Q12737077))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
value 2
[[{'concept': 'Q340169'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?i ) WHERE { { ?j property:P180 ?e . ?j rdf:type ontology:Q340169 . ?e rdf:type ontology:Q12737077 } UNION { ?j property:P180 ?e . ?e rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q17638008 } } GROUP BY ?e } . FILTER ( ?i >= 2 ) }
action count
action atleast
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
value 2
[[{'concept': 'media'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?i ) WHERE { { ?j property:depicts ?e . ?j rdf:type ontology:media . ?e rdf:type ontology:occupation } UNION { ?j property:depicts ?e . ?e rdf:type ontology:occupation . ?j rdf:type ontology:game_equipment } } GROUP BY ?e } . FILTER ( ?i >= 2 ) }
[]
occupation media game equipment
SYSTEM
4
Q12097 Q4991371 Q20489032 Q639669
(c(Q340169)|c(Q17638008),P180,c(Q12737077))
action count
action atleast
action union
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q340169
action find_reverse_tuple_counts
relation P180
type Q12737077
type Q17638008
value 2
[ANSWER]
[[{'concept': 'Q340169'}, {'concept': 'Q17638008'}], 'P180', {'concept': 'Q12737077'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?i ) WHERE { { ?j property:P180 ?e . ?j rdf:type ontology:Q340169 . ?e rdf:type ontology:Q12737077 } UNION { ?j property:P180 ?e . ?e rdf:type ontology:Q12737077 . ?j rdf:type ontology:Q17638008 } } GROUP BY ?e } . FILTER ( ?i >= 2 ) }
king soldier salt pan worker musician
4
action count
action atleast
action union
action find_reverse_tuple_counts
relation depicts
type occupation
type media
action find_reverse_tuple_counts
relation depicts
type occupation
type game equipment
value 2
[[{'concept': 'media'}, {'concept': 'game equipment'}], 'depicts', {'concept': 'occupation'}]
SELECT DISTINCT ( COUNT ( ?e ) AS ?w ) WHERE { { SELECT DISTINCT ?e ( COUNT ( ?j ) AS ?i ) WHERE { { ?j property:depicts ?e . ?j rdf:type ontology:media . ?e rdf:type ontology:occupation } UNION { ?j property:depicts ?e . ?e rdf:type ontology:occupation . ?j rdf:type ontology:game_equipment } } GROUP BY ?e } . FILTER ( ?i >= 2 ) }
[]
Logical Reasoning (All)
Logical|Intersection|Multiple_Relation
Q30 Q1162881
P58 P495
Q838948
USER
Which works of art are Daniel Taradash a screwriter of and have United States of America as their place of origin ?
AND((c(Q838948),P58,Q1162881), (c(Q838948),P495,Q30))
action filter_type
action intersection
action find_reverse
entity Q1162881
relation P58
action find_reverse
entity Q30
relation P495
type Q838948
{'AND': [[{'concept': 'Q838948'}, 'P58', 'Q1162881'], [{'concept': 'Q838948'}, 'P495', 'Q30']]}
SELECT DISTINCT ?i WHERE { ?i property:P58 resource:Q1162881 . ?i property:P495 resource:Q30 . ?i rdf:type ontology:Q838948 }
United States of America Daniel Taradash
action filter_type
action intersection
action find_reverse
entity Daniel Taradash
relation screenwriter
action find_reverse
entity United States of America
relation country of origin
type work of art
{'AND': [[{'concept': 'work of art'}, 'screenwriter', 'Daniel Taradash'], [{'concept': 'work of art'}, 'country of origin', 'United States of America']]}
SELECT DISTINCT ?i WHERE { ?i property:screenwriter resource:Daniel_Taradash . ?i property:country_of_origin resource:United_States_of_America . ?i rdf:type ontology:work_of_art }
[]
work of art
Q541414 Q945470 Q1591594 Q1637360 Q258319 Q1381081 Q2252714 Q1731060 Q207588 Q1300420
SYSTEM
Some of them are Morituri, Désirée, Hawaii, Don't Bother to Knock, Castle Keep, Golden Boy, Knock on Any Door, Bell, Book and Candle, From Here to Eternity, Picnic
Q2252714 Q541414 Q1731060 Q1169701 Q1300420 Q258319 Q3763675 Q945470 Q207588 Q1637360 Q1591594 Q2609491 Q2365712 Q1381081 Q448463
AND((c(Q838948),P58,Q1162881), (c(Q838948),P495,Q30))
action filter_type
action intersection
action find_reverse
entity Q1162881
relation P58
action find_reverse
entity Q30
relation P495
type Q838948
[ANSWERS] are Daniel Taradash a screwriter of and have United States of America as their place of origin
{'AND': [[{'concept': 'Q838948'}, 'P58', 'Q1162881'], [{'concept': 'Q838948'}, 'P495', 'Q30']]}
SELECT DISTINCT ?i WHERE { ?i property:P58 resource:Q1162881 . ?i property:P495 resource:Q30 . ?i rdf:type ontology:Q838948 }
Knock on Any Door Morituri Bell, Book and Candle Rancho Notorious Picnic Castle Keep The Noose Hangs High Désirée From Here to Eternity Don't Bother to Knock Hawaii Storm Center The Other Side of Midnight Golden Boy Alvarez Kelly
Morituri, Désirée, Hawaii, Don't Bother to Knock, Castle Keep, Golden Boy, Knock on Any Door, Bell, Book and Candle, From Here to Eternity and Picnic are Daniel Taradash a screwriter of and have United States of America as their place of origin
Morituri Désirée Hawaii Don't Bother to Knock Castle Keep Golden Boy Knock on Any Door Bell, Book and Candle From Here to Eternity Picnic
action filter_type
action intersection
action find_reverse
entity Daniel Taradash
relation screenwriter
action find_reverse
entity United States of America
relation country of origin
type work of art
{'AND': [[{'concept': 'work of art'}, 'screenwriter', 'Daniel Taradash'], [{'concept': 'work of art'}, 'country of origin', 'United States of America']]}
SELECT DISTINCT ?i WHERE { ?i property:screenwriter resource:Daniel_Taradash . ?i property:country_of_origin resource:United_States_of_America . ?i rdf:type ontology:work_of_art }
[]