Simple Question (Direct)
Simple Question
Q18805015
P54
Q1194951
USER
Which national sports team is Mekan Saparow a member of ?
(Q18805015,P54,c(Q1194951))
action filter_type
action find
entity Q18805015
relation P54
type Q1194951
['Q18805015', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?d WHERE { resource:Q18805015 property:P54 ?d . ?d rdf:type ontology:Q1194951 }
Mekan Saparow
action filter_type
action find
entity Mekan Saparow
relation member of sports team
type national sports team
['Mekan Saparow', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?d WHERE { resource:Mekan_Saparow property:member_of_sports_team ?d . ?d rdf:type ontology:national_sports_team }
[]
national sports team
Q486628
SYSTEM
Turkmenistan national football team
Q486628
(Q18805015,P54,c(Q1194951))
action filter_type
action find
entity Q18805015
relation P54
type Q1194951
[ANSWER] is Mekan Saparow a member of
['Q18805015', 'P54', {'concept': 'Q1194951'}]
SELECT DISTINCT ?d WHERE { resource:Q18805015 property:P54 ?d . ?d rdf:type ontology:Q1194951 }
Turkmenistan national football team
Turkmenistan national football team is Mekan Saparow a member of
Turkmenistan national football team
action filter_type
action find
entity Mekan Saparow
relation member of sports team
type national sports team
['Mekan Saparow', 'member of sports team', {'concept': 'national sports team'}]
SELECT DISTINCT ?d WHERE { resource:Mekan_Saparow property:member_of_sports_team ?d . ?d rdf:type ontology:national_sports_team }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18805015
P21
Q290
USER
What is the sex of Mekan Saparow ?
(Q18805015,P21,c(Q290))
action filter_type
action find
entity Q18805015
relation P21
type Q290
['Q18805015', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q18805015 property:P21 ?q . ?q rdf:type ontology:Q290 }
Mekan Saparow
action filter_type
action find
entity Mekan Saparow
relation gender
type sex
['Mekan Saparow', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Mekan_Saparow property:gender ?q . ?q rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q18805015,P21,c(Q290))
action filter_type
action find
entity Q18805015
relation P21
type Q290
The sex of Mekan Saparow is the [ANSWER]
['Q18805015', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?q WHERE { resource:Q18805015 property:P21 ?q . ?q rdf:type ontology:Q290 }
male
The sex of Mekan Saparow is the male
male
action filter_type
action find
entity Mekan Saparow
relation gender
type sex
['Mekan Saparow', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?q WHERE { resource:Mekan_Saparow property:gender ?q . ?q rdf:type ontology:sex }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q18805015
P19
Q15617994
USER
Which administrative territory is the birthplace of that person ?
(Q6581097,P19,c(Q15617994))
action filter_type
action find
entity Q18805015
relation P19
type Q15617994
['Q6581097', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q18805015 property:P19 ?o . ?o rdf:type ontology:Q15617994 }
Mekan Saparow
action filter_type
action find
entity Mekan Saparow
relation place of birth
type designation for an administrative territorial entity
['male', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Mekan_Saparow property:place_of_birth ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
Q874
SYSTEM
Turkmenistan
Q874
(Q6581097,P19,c(Q15617994))
action filter_type
action find
entity Q18805015
relation P19
type Q15617994
[ANSWER] is the birthplace of that person
['Q6581097', 'P19', {'concept': 'Q15617994'}]
SELECT DISTINCT ?o WHERE { resource:Q18805015 property:P19 ?o . ?o rdf:type ontology:Q15617994 }
Turkmenistan
Turkmenistan is the birthplace of that person
Turkmenistan
action filter_type
action find
entity Mekan Saparow
relation place of birth
type designation for an administrative territorial entity
['male', 'place of birth', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ?o WHERE { resource:Mekan_Saparow property:place_of_birth ?o . ?o rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q874
P47
Q15617994
USER
How many administrative territories have a shared border with Turkmenistan ?
(Q874,P47,c(Q15617994))
action count
action filter_type
action find
entity Q874
relation P47
type Q15617994
['Q874', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { resource:Q874 property:P47 ?n . ?n rdf:type ontology:Q15617994 }
Turkmenistan
action count
action filter_type
action find
entity Turkmenistan
relation shares border with
type designation for an administrative territorial entity
['Turkmenistan', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { resource:Turkmenistan property:shares_border_with ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
4
Q889 Q265 Q232 Q794
(Q874,P47,c(Q15617994))
action count
action filter_type
action find
entity Q874
relation P47
type Q15617994
[ANSWER]
['Q874', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { resource:Q874 property:P47 ?n . ?n rdf:type ontology:Q15617994 }
Afghanistan Uzbekistan Kazakhstan Iran
4
action count
action filter_type
action find
entity Turkmenistan
relation shares border with
type designation for an administrative territorial entity
['Turkmenistan', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?n ) AS ?o ) WHERE { resource:Turkmenistan property:shares_border_with ?n . ?n rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (Count) (All)
Incomplete count-based ques
Q10309
Q15617994
USER
And also tell me about Strambinello?
(Q10309,P47,c(Q15617994))
action count
action filter_type
action find
entity Q10309
relation P47
type Q15617994
['Q10309', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { resource:Q10309 property:P47 ?p . ?p rdf:type ontology:Q15617994 }
Strambinello
action count
action filter_type
action find
entity Strambinello
relation shares border with
type designation for an administrative territorial entity
['Strambinello', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { resource:Strambinello property:shares_border_with ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
designation for an administrative territorial entity
SYSTEM
4
(Q10309,P47,c(Q15617994))
action count
action filter_type
action find
entity Q10309
relation P47
type Q15617994
[ANSWER]
['Q10309', 'P47', {'concept': 'Q15617994'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { resource:Q10309 property:P47 ?p . ?p rdf:type ontology:Q15617994 }
4
action count
action filter_type
action find
entity Strambinello
relation shares border with
type designation for an administrative territorial entity
['Strambinello', 'shares border with', {'concept': 'designation for an administrative territorial entity'}]
SELECT DISTINCT ( COUNT ( ?p ) AS ?e ) WHERE { resource:Strambinello property:shares_border_with ?p . ?p rdf:type ontology:designation_for_an_administrative_territorial_entity }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P1441
Q234460 Q838948 Q502895
USER
Which people are seen in max number of texts or works of art ?
(c(Q502895),P1441,c(Q234460)|c(Q838948))
action argmax
action union
action find_tuple_counts
relation P1441
type Q502895
type Q234460
action find_tuple_counts
relation P1441
type Q502895
type Q838948
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q234460'}, {'concept': 'Q838948'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) ?k WHERE { ?l rdf:type ?q . VALUES ( ?q ) { ( ontology:Q234460 ) ( ontology:Q838948 ) } } GROUP BY ?k } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) ?p WHERE { ?o rdf:type ?e . VALUES ( ?e ) { ( ontology:Q234460 ) ( ontology:Q838948 ) } } GROUP BY ?p } . FILTER ( ?x = ?d ) }
action argmax
action union
action find_tuple_counts
relation present in work
type common name
type text
action find_tuple_counts
relation present in work
type common name
type work of art
[{'concept': 'common name'}, 'present in work', [{'concept': 'text'}, {'concept': 'work of art'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) ?k WHERE { ?l rdf:type ?q . VALUES ( ?q ) { ( ontology:text ) ( ontology:work_of_art ) } } GROUP BY ?k } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) ?p WHERE { ?o rdf:type ?e . VALUES ( ?e ) { ( ontology:text ) ( ontology:work_of_art ) } } GROUP BY ?p } . FILTER ( ?x = ?d ) }
[]
text work of art common name
Q9077 Q9181
SYSTEM
Moses, Abraham
Q9077 Q9181
(c(Q502895),P1441,c(Q234460)|c(Q838948))
action argmax
action union
action find_tuple_counts
relation P1441
type Q502895
type Q234460
action find_tuple_counts
relation P1441
type Q502895
type Q838948
[ANSWERS] are seen in max number of texts or works of art
[{'concept': 'Q502895'}, 'P1441', [{'concept': 'Q234460'}, {'concept': 'Q838948'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) ?k WHERE { ?l rdf:type ?q . VALUES ( ?q ) { ( ontology:Q234460 ) ( ontology:Q838948 ) } } GROUP BY ?k } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) ?p WHERE { ?o rdf:type ?e . VALUES ( ?e ) { ( ontology:Q234460 ) ( ontology:Q838948 ) } } GROUP BY ?p } . FILTER ( ?x = ?d ) }
Moses Abraham
Moses and Abraham are seen in max number of texts or works of art
Moses Abraham
action argmax
action union
action find_tuple_counts
relation present in work
type common name
type text
action find_tuple_counts
relation present in work
type common name
type work of art
[{'concept': 'common name'}, 'present in work', [{'concept': 'text'}, {'concept': 'work of art'}]]
SELECT DISTINCT ?p WHERE { { SELECT DISTINCT ( MAX ( ?h ) AS ?d ) { SELECT DISTINCT ( COUNT ( ?l ) AS ?h ) ?k WHERE { ?l rdf:type ?q . VALUES ( ?q ) { ( ontology:text ) ( ontology:work_of_art ) } } GROUP BY ?k } } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?x ) ?p WHERE { ?o rdf:type ?e . VALUES ( ?e ) { ( ontology:text ) ( ontology:work_of_art ) } } GROUP BY ?p } . FILTER ( ?x = ?d ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q874
P35
Q502895
USER
Which person is the head of state of Turkmenistan ?
(Q874,P35,c(Q502895))
action filter_type
action find
entity Q874
relation P35
type Q502895
['Q874', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . resource:Q874 property:P35 ?x }
Turkmenistan
action filter_type
action find
entity Turkmenistan
relation head of state
type common name
['Turkmenistan', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . resource:Turkmenistan property:head_of_state ?x }
[]
common name
Q57530
SYSTEM
Gurbanguly Berdimuhamedow
Q57530
(Q874,P35,c(Q502895))
action filter_type
action find
entity Q874
relation P35
type Q502895
[ANSWER] is the head of state of Turkmenistan
['Q874', 'P35', {'concept': 'Q502895'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:Q502895 . resource:Q874 property:P35 ?x }
Gurbanguly Berdimuhamedow
Gurbanguly Berdimuhamedow is the head of state of Turkmenistan
Gurbanguly Berdimuhamedow
action filter_type
action find
entity Turkmenistan
relation head of state
type common name
['Turkmenistan', 'head of state', {'concept': 'common name'}]
SELECT DISTINCT ?x WHERE { ?x rdf:type ontology:common_name . resource:Turkmenistan property:head_of_state ?x }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q9077
P50
Q2342494
USER
What is the collectable written by Moses ?
(c(Q2342494),P50,Q9077)
action filter_type
action find_reverse
entity Q9077
relation P50
type Q2342494
[{'concept': 'Q2342494'}, 'P50', 'Q9077']
SELECT DISTINCT ?q WHERE { ?q property:P50 resource:Q9077 . ?q rdf:type ontology:Q2342494 }
Moses
action filter_type
action find_reverse
entity Moses
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Moses']
SELECT DISTINCT ?q WHERE { ?q property:author resource:Moses . ?q rdf:type ontology:collectable }
[]
collectable
Q1104627
SYSTEM
Book of the Law of the Lord
Q1104627
(c(Q2342494),P50,Q9077)
action filter_type
action find_reverse
entity Q9077
relation P50
type Q2342494
The collectable written by Moses is the [ANSWER]
[{'concept': 'Q2342494'}, 'P50', 'Q9077']
SELECT DISTINCT ?q WHERE { ?q property:P50 resource:Q9077 . ?q rdf:type ontology:Q2342494 }
Book of the Law of the Lord
The collectable written by Moses is the Book of the Law of the Lord
Book of the Law of the Lord
action filter_type
action find_reverse
entity Moses
relation author
type collectable
[{'concept': 'collectable'}, 'author', 'Moses']
SELECT DISTINCT ?q WHERE { ?q property:author resource:Moses . ?q rdf:type ontology:collectable }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q9077
P25
Q502895
USER
Which person was the mother of that one ?
(Q1104627,P25,c(Q502895))
action filter_type
action find
entity Q9077
relation P25
type Q502895
['Q1104627', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . resource:Q9077 property:P25 ?a }
Moses
action filter_type
action find
entity Moses
relation mother
type common name
['Book of the Law of the Lord', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . resource:Moses property:mother ?a }
[]
common name
Q594805
SYSTEM
Jochebed
Q594805
(Q1104627,P25,c(Q502895))
action filter_type
action find
entity Q9077
relation P25
type Q502895
[ANSWER] was the mother of that one
['Q1104627', 'P25', {'concept': 'Q502895'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Q502895 . resource:Q9077 property:P25 ?a }
Jochebed
Jochebed was the mother of that one
Jochebed
action filter_type
action find
entity Moses
relation mother
type common name
['Book of the Law of the Lord', 'mother', {'concept': 'common name'}]
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:common_name . resource:Moses property:mother ?a }
[]
Logical Reasoning (All)
Logical|Intersection|Single_Relation
Q4344 Q9077
P674
Q223393
USER
Which literary genres have the character Moses and Arnaut Daniel ?
AND((c(Q223393),P674,Q9077), (c(Q223393),P674,Q4344))
action filter_type
action intersection
action find_reverse
entity Q9077
relation P674
action find_reverse
entity Q4344
relation P674
type Q223393
{'AND': [[{'concept': 'Q223393'}, 'P674', 'Q9077'], [{'concept': 'Q223393'}, 'P674', 'Q4344']]}
SELECT DISTINCT ?x WHERE { ?x property:P674 resource:Q4344 . ?x property:P674 resource:Q9077 . ?x rdf:type ontology:Q223393 }
Arnaut Daniel Moses
action filter_type
action intersection
action find_reverse
entity Moses
relation characters
action find_reverse
entity Arnaut Daniel
relation characters
type literary genre
{'AND': [[{'concept': 'literary genre'}, 'characters', 'Moses'], [{'concept': 'literary genre'}, 'characters', 'Arnaut Daniel']]}
SELECT DISTINCT ?x WHERE { ?x property:characters resource:Arnaut_Daniel . ?x property:characters resource:Moses . ?x rdf:type ontology:literary_genre }
[]
literary genre
Q40185
SYSTEM
The Divine Comedy
Q40185
AND((c(Q223393),P674,Q9077), (c(Q223393),P674,Q4344))
action filter_type
action intersection
action find_reverse
entity Q9077
relation P674
action find_reverse
entity Q4344
relation P674
type Q223393
The [ANSWER] have the character Moses and Arnaut Daniel
{'AND': [[{'concept': 'Q223393'}, 'P674', 'Q9077'], [{'concept': 'Q223393'}, 'P674', 'Q4344']]}
SELECT DISTINCT ?x WHERE { ?x property:P674 resource:Q4344 . ?x property:P674 resource:Q9077 . ?x rdf:type ontology:Q223393 }
The Divine Comedy
The The Divine Comedy have the character Moses and Arnaut Daniel
The Divine Comedy
action filter_type
action intersection
action find_reverse
entity Moses
relation characters
action find_reverse
entity Arnaut Daniel
relation characters
type literary genre
{'AND': [[{'concept': 'literary genre'}, 'characters', 'Moses'], [{'concept': 'literary genre'}, 'characters', 'Arnaut Daniel']]}
SELECT DISTINCT ?x WHERE { ?x property:characters resource:Arnaut_Daniel . ?x property:characters resource:Moses . ?x rdf:type ontology:literary_genre }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, subject is indirect
Q40185 Q2470593
P674
Q502895
USER
Does Jimmy Rooney play a role in that literary genre ?
(Q40185,P674,Q2470593)
action is_in
entity Q2470593
action find
entity Q40185
relation P674
['Q40185', 'P674', 'Q2470593']
ASK WHERE { resource:Q40185 property:P674 resource:Q2470593 }
The Divine Comedy Jimmy Rooney
action is_in
entity Jimmy Rooney
action find
entity The Divine Comedy
relation characters
['The Divine Comedy', 'characters', 'Jimmy Rooney']
ASK WHERE { resource:The_Divine_Comedy property:characters resource:Jimmy_Rooney }
[]
common name
SYSTEM
NO
(Q40185,P674,Q2470593)
action is_in
entity Q2470593
action find
entity Q40185
relation P674
[ANSWER]
['Q40185', 'P674', 'Q2470593']
ASK WHERE { resource:Q40185 property:P674 resource:Q2470593 }
No
action is_in
entity Jimmy Rooney
action find
entity The Divine Comedy
relation characters
['The Divine Comedy', 'characters', 'Jimmy Rooney']
ASK WHERE { resource:The_Divine_Comedy property:characters resource:Jimmy_Rooney }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q9077 Q1770417 Q17076404
P1441
Q838948
USER
Is Moses from the works of Lillian Russell and Yemaatrathe Yemaaraathe ?
(Q9077,P1441,Q1770417) (Q9077,P1441,Q17076404)
action is_in
entity Q9077
action intersection
action find_reverse
entity Q1770417
relation P1441
action find_reverse
entity Q17076404
relation P1441
['Q9077', 'P1441', 'Q1770417'] ['Q9077', 'P1441', 'Q17076404']
ASK WHERE { resource:Q9077 property:P1441 resource:Q1770417 . resource:Q9077 property:P1441 resource:Q17076404 }
Moses Lillian Russell Yemaatrathe Yemaaraathe
action is_in
entity Moses
action intersection
action find_reverse
entity Lillian Russell
relation present in work
action find_reverse
entity Yemaatrathe Yemaaraathe
relation present in work
['Moses', 'present in work', 'Lillian Russell'] ['Moses', 'present in work', 'Yemaatrathe Yemaaraathe']
ASK WHERE { resource:Moses property:present_in_work resource:Lillian_Russell . resource:Moses property:present_in_work resource:Yemaatrathe_Yemaaraathe }
[]
work of art
SYSTEM
NO
(Q9077,P1441,Q1770417) (Q9077,P1441,Q17076404)
action is_in
entity Q9077
action intersection
action find_reverse
entity Q1770417
relation P1441
action find_reverse
entity Q17076404
relation P1441
[ANSWER]
['Q9077', 'P1441', 'Q1770417'] ['Q9077', 'P1441', 'Q17076404']
ASK WHERE { resource:Q9077 property:P1441 resource:Q1770417 . resource:Q9077 property:P1441 resource:Q17076404 }
No
action is_in
entity Moses
action intersection
action find_reverse
entity Lillian Russell
relation present in work
action find_reverse
entity Yemaatrathe Yemaaraathe
relation present in work
['Moses', 'present in work', 'Lillian Russell'] ['Moses', 'present in work', 'Yemaatrathe Yemaaraathe']
ASK WHERE { resource:Moses property:present_in_work resource:Lillian_Russell . resource:Moses property:present_in_work resource:Yemaatrathe_Yemaaraathe }
[]