Simple Question (Direct)
Simple Question
Q468356
P140
Q874405
USER
What is the religious affiliation of Ali Akbar Khan ?
(Q468356,P140,c(Q874405))
action filter_type
action find
entity Q468356
relation P140
type Q874405
['Q468356', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?n WHERE { resource:Q468356 property:P140 ?n . ?n rdf:type ontology:Q874405 }
Ali Akbar Khan
action filter_type
action find
entity Ali Akbar Khan
relation religion
type social group
['Ali Akbar Khan', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?n WHERE { resource:Ali_Akbar_Khan property:religion ?n . ?n rdf:type ontology:social_group }
[]
social group
Q432
SYSTEM
Islam
Q432
(Q468356,P140,c(Q874405))
action filter_type
action find
entity Q468356
relation P140
type Q874405
The religious affiliation of Ali Akbar Khan is of [ANSWER]
['Q468356', 'P140', {'concept': 'Q874405'}]
SELECT DISTINCT ?n WHERE { resource:Q468356 property:P140 ?n . ?n rdf:type ontology:Q874405 }
Islam
The religious affiliation of Ali Akbar Khan is of Islam
Islam
action filter_type
action find
entity Ali Akbar Khan
relation religion
type social group
['Ali Akbar Khan', 'religion', {'concept': 'social group'}]
SELECT DISTINCT ?n WHERE { resource:Ali_Akbar_Khan property:religion ?n . ?n rdf:type ontology:social_group }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q468356
P22
Q502895
USER
Who was the dad of Ali Akbar Khan ?
(Q468356,P22,c(Q502895))
action filter_type
action find
entity Q468356
relation P22
type Q502895
['Q468356', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q468356 property:P22 ?s . ?s rdf:type ontology:Q502895 }
Ali Akbar Khan
action filter_type
action find
entity Ali Akbar Khan
relation father
type common name
['Ali Akbar Khan', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Ali_Akbar_Khan property:father ?s . ?s rdf:type ontology:common_name }
[]
common name
Q2837826
SYSTEM
Allauddin Khan
Q2837826
(Q468356,P22,c(Q502895))
action filter_type
action find
entity Q468356
relation P22
type Q502895
The dad of Ali Akbar Khan was Syed [ANSWER]
['Q468356', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?s WHERE { resource:Q468356 property:P22 ?s . ?s rdf:type ontology:Q502895 }
Allauddin Khan
The dad of Ali Akbar Khan was Syed Allauddin Khan
Allauddin Khan
action filter_type
action find
entity Ali Akbar Khan
relation father
type common name
['Ali Akbar Khan', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?s WHERE { resource:Ali_Akbar_Khan property:father ?s . ?s rdf:type ontology:common_name }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q579767
Q502895
USER
And also tell me about King Wei of Qi?
(Q579767,P22,c(Q502895))
action filter_type
action find
entity Q579767
relation P22
type Q502895
['Q579767', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q579767 property:P22 ?m . ?m rdf:type ontology:Q502895 }
King Wei of Qi
action filter_type
action find
entity King Wei of Qi
relation father
type common name
['King Wei of Qi', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:King_Wei_of_Qi property:father ?m . ?m rdf:type ontology:common_name }
[]
common name
Q589297
SYSTEM
Duke Huan of Tian Qi
Q589297
(Q579767,P22,c(Q502895))
action filter_type
action find
entity Q579767
relation P22
type Q502895
[ANSWER]
['Q579767', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?m WHERE { resource:Q579767 property:P22 ?m . ?m rdf:type ontology:Q502895 }
Duke Huan of Tian Qi
Duke Huan of Tian Qi
action filter_type
action find
entity King Wei of Qi
relation father
type common name
['King Wei of Qi', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?m WHERE { resource:King_Wei_of_Qi property:father ?m . ?m rdf:type ontology:common_name }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q589297 Q589235
P7
Q502895
USER
Is Duke Huan of Tian Qi a sibling of Yan, Marquis of Tian ?
(Q589297,P7,Q589235)
action is_in
entity Q589235
action find
entity Q589297
relation P7
['Q589297', 'P7', 'Q589235']
ASK WHERE { resource:Q589297 property:P7 resource:Q589235 }
Duke Huan of Tian Qi Yan, Marquis of Tian
action is_in
entity Yan, Marquis of Tian
action find
entity Duke Huan of Tian Qi
relation brother
['Duke Huan of Tian Qi', 'brother', 'Yan, Marquis of Tian']
ASK WHERE { resource:Duke_Huan_of_Tian_Qi property:brother resource:Yan,_Marquis_of_Tian }
[]
common name
SYSTEM
YES
(Q589297,P7,Q589235)
action is_in
entity Q589235
action find
entity Q589297
relation P7
[ANSWER]
['Q589297', 'P7', 'Q589235']
ASK WHERE { resource:Q589297 property:P7 resource:Q589235 }
Yes
action is_in
entity Yan, Marquis of Tian
action find
entity Duke Huan of Tian Qi
relation brother
['Duke Huan of Tian Qi', 'brother', 'Yan, Marquis of Tian']
ASK WHERE { resource:Duke_Huan_of_Tian_Qi property:brother resource:Yan,_Marquis_of_Tian }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q2837826 Q540417
P40
Q502895
USER
Is Jim Jarvis an offspring of Allauddin Khan ?
(Q2837826,P40,Q540417)
action is_in
entity Q540417
action find
entity Q2837826
relation P40
['Q2837826', 'P40', 'Q540417']
ASK WHERE { resource:Q2837826 property:P40 resource:Q540417 }
Allauddin Khan Jim Jarvis
action is_in
entity Jim Jarvis
action find
entity Allauddin Khan
relation child
['Allauddin Khan', 'child', 'Jim Jarvis']
ASK WHERE { resource:Allauddin_Khan property:child resource:Jim_Jarvis }
[]
common name
SYSTEM
NO
(Q2837826,P40,Q540417)
action is_in
entity Q540417
action find
entity Q2837826
relation P40
[ANSWER]
['Q2837826', 'P40', 'Q540417']
ASK WHERE { resource:Q2837826 property:P40 resource:Q540417 }
No
action is_in
entity Jim Jarvis
action find
entity Allauddin Khan
relation child
['Allauddin Khan', 'child', 'Jim Jarvis']
ASK WHERE { resource:Allauddin_Khan property:child resource:Jim_Jarvis }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2837826
P161
Q838948
USER
Which work of art has Allauddin Khan as actor ?
action filter_type
action find_reverse
entity Q2837826
relation P161
type Q838948
SELECT DISTINCT ?k WHERE { ?k property:P161 resource:Q2837826 . ?k rdf:type ontology:Q838948 }
Allauddin Khan
action filter_type
action find_reverse
entity Allauddin Khan
relation cast member
type work of art
SELECT DISTINCT ?k WHERE { ?k property:cast_member resource:Allauddin_Khan . ?k rdf:type ontology:work_of_art }
[]
work of art
Q7282787
SYSTEM
Raga
Q7282787
action filter_type
action find_reverse
entity Q2837826
relation P161
type Q838948
[ANSWER] has Allauddin Khan as actor
SELECT DISTINCT ?k WHERE { ?k property:P161 resource:Q2837826 . ?k rdf:type ontology:Q838948 }
Raga
Raga has Allauddin Khan as actor
Raga
action filter_type
action find_reverse
entity Allauddin Khan
relation cast member
type work of art
SELECT DISTINCT ?k WHERE { ?k property:cast_member resource:Allauddin_Khan . ?k rdf:type ontology:work_of_art }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2837826
P1066
Q502895
USER
Who is a pupil of Allauddin Khan ?
(c(Q502895),P1066,Q2837826)
action filter_type
action find_reverse
entity Q2837826
relation P1066
type Q502895
[{'concept': 'Q502895'}, 'P1066', 'Q2837826']
SELECT DISTINCT ?n WHERE { ?n property:P1066 resource:Q2837826 . ?n rdf:type ontology:Q502895 }
Allauddin Khan
action filter_type
action find_reverse
entity Allauddin Khan
relation student of
type common name
[{'concept': 'common name'}, 'student of', 'Allauddin Khan']
SELECT DISTINCT ?n WHERE { ?n property:student_of resource:Allauddin_Khan . ?n rdf:type ontology:common_name }
[]
common name
Q468356
SYSTEM
Ali Akbar Khan
Q468356
(c(Q502895),P1066,Q2837826)
action filter_type
action find_reverse
entity Q2837826
relation P1066
type Q502895
A pupil of Allauddin Khan is named [ANSWER]
[{'concept': 'Q502895'}, 'P1066', 'Q2837826']
SELECT DISTINCT ?n WHERE { ?n property:P1066 resource:Q2837826 . ?n rdf:type ontology:Q502895 }
Ali Akbar Khan
A pupil of Allauddin Khan is named Ali Akbar Khan
Ali Akbar Khan
action filter_type
action find_reverse
entity Allauddin Khan
relation student of
type common name
[{'concept': 'common name'}, 'student of', 'Allauddin Khan']
SELECT DISTINCT ?n WHERE { ?n property:student_of resource:Allauddin_Khan . ?n rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q2837826
P21
Q290
USER
What is the sex of Allauddin Khan ?
(Q2837826,P21,c(Q290))
action filter_type
action find
entity Q2837826
relation P21
type Q290
['Q2837826', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q2837826 property:P21 ?d . ?d rdf:type ontology:Q290 }
Allauddin Khan
action filter_type
action find
entity Allauddin Khan
relation gender
type sex
['Allauddin Khan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Allauddin_Khan property:gender ?d . ?d rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q2837826,P21,c(Q290))
action filter_type
action find
entity Q2837826
relation P21
type Q290
The sex of Allauddin Khan is the [ANSWER]
['Q2837826', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?d WHERE { resource:Q2837826 property:P21 ?d . ?d rdf:type ontology:Q290 }
male
The sex of Allauddin Khan is the male
male
action filter_type
action find
entity Allauddin Khan
relation gender
type sex
['Allauddin Khan', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?d WHERE { resource:Allauddin_Khan property:gender ?d . ?d rdf:type ontology:sex }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q1772011
Q290
USER
And how about Peter Sørensen?
(Q1772011,P21,c(Q290))
action filter_type
action find
entity Q1772011
relation P21
type Q290
['Q1772011', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q290 . resource:Q1772011 property:P21 ?p }
Peter Sørensen
action filter_type
action find
entity Peter Sørensen
relation gender
type sex
['Peter Sørensen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:sex . resource:Peter_Sørensen property:gender ?p }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q1772011,P21,c(Q290))
action filter_type
action find
entity Q1772011
relation P21
type Q290
[ANSWER]
['Q1772011', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:Q290 . resource:Q1772011 property:P21 ?p }
male
male
action filter_type
action find
entity Peter Sørensen
relation gender
type sex
['Peter Sørensen', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?p WHERE { ?p rdf:type ontology:sex . resource:Peter_Sørensen property:gender ?p }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments do max number of people know to play ?
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?r ) { SELECT DISTINCT ?s ( COUNT ( ?b ) AS ?v ) WHERE { ?b property:P1303 ?s . ?b rdf:type ontology:Q502895 . ?s rdf:type ontology:Q34379 } GROUP BY ?s } } . { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?f ) WHERE { ?k rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 . ?z property:P1303 ?k } GROUP BY ?k } . FILTER ( ?f = ?r ) }
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?r ) { SELECT DISTINCT ?s ( COUNT ( ?b ) AS ?v ) WHERE { ?b property:instrument ?s . ?b rdf:type ontology:common_name . ?s rdf:type ontology:musical_instrument } GROUP BY ?s } } . { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?f ) WHERE { ?k rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name . ?z property:instrument ?k } GROUP BY ?k } . FILTER ( ?f = ?r ) }
[]
musical instrument common name
Q5994
SYSTEM
piano
Q5994
(c(Q502895),P1303,Q3623688)
action argmax
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
Max number of people know how [ANSWER]
[{'concept': 'Q502895'}, 'P1303', 'Q3623688']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?r ) { SELECT DISTINCT ?s ( COUNT ( ?b ) AS ?v ) WHERE { ?b property:P1303 ?s . ?b rdf:type ontology:Q502895 . ?s rdf:type ontology:Q34379 } GROUP BY ?s } } . { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?f ) WHERE { ?k rdf:type ontology:Q34379 . ?z rdf:type ontology:Q502895 . ?z property:P1303 ?k } GROUP BY ?k } . FILTER ( ?f = ?r ) }
piano
Max number of people know how piano
piano
action argmax
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
[{'concept': 'common name'}, 'instrument', 'Paraguayan harp']
SELECT DISTINCT ?k WHERE { { SELECT DISTINCT ( MAX ( ?v ) AS ?r ) { SELECT DISTINCT ?s ( COUNT ( ?b ) AS ?v ) WHERE { ?b property:instrument ?s . ?b rdf:type ontology:common_name . ?s rdf:type ontology:musical_instrument } GROUP BY ?s } } . { SELECT DISTINCT ?k ( COUNT ( ?z ) AS ?f ) WHERE { ?k rdf:type ontology:musical_instrument . ?z rdf:type ontology:common_name . ?z property:instrument ?k } GROUP BY ?k } . FILTER ( ?f = ?r ) }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q604538
P1303
Q34379 Q502895
USER
Which musical instruments are played by greater number of people than Temple block ?
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q604538
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:P1303 ?g . ?g rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { resource:Q604538 property:P1303 ?h . ?h rdf:type ontology:Q34379 } } . FILTER ( ?o > ?w ) }
Temple block
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Temple block
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:instrument ?g . ?g rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { resource:Temple_block property:instrument ?h . ?h rdf:type ontology:musical_instrument } } . FILTER ( ?o > ?w ) }
[]
musical instrument common name
Q5994 Q81982 Q862501
SYSTEM
piano, harpsichord, ondes Martenot
Q80284 Q46185 Q201129 Q424017 Q80019 Q2563510 Q5994 Q3574843 Q81982 Q182718 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q862501 Q213100 Q537750 Q626035 Q742180 Q1300012 Q1444 Q220971 Q128309 Q726306 Q483994 Q1343007 Q11404
(c(Q502895),P1303,c(Q34379))
action greater
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find
entity Q604538
relation P1303
type Q34379
[ANSWERS] are played by greater number of people than Temple block
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:P1303 ?g . ?g rdf:type ontology:Q34379 . ?y rdf:type ontology:Q502895 } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { resource:Q604538 property:P1303 ?h . ?h rdf:type ontology:Q34379 } } . FILTER ( ?o > ?w ) }
viola bass guitar lyre acoustic bass guitar double bass steel-string acoustic guitar piano tonbak harpsichord Nyckelharpa vibraphone timpani trumpet cello violin harmonium upright piano ondes Martenot tabla Djembe glockenspiel viola d'amore toy piano organ marimba drum kit erhu Kazoo electronic keyboard drum
Piano, harpsichord and ondes Martenot are played by greater number of people than Temple block
piano harpsichord ondes Martenot
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity Temple block
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?g WHERE { { SELECT DISTINCT ?g ( COUNT ( ?y ) AS ?o ) WHERE { ?y property:instrument ?g . ?g rdf:type ontology:musical_instrument . ?y rdf:type ontology:common_name } GROUP BY ?g } . { SELECT DISTINCT ( COUNT ( ?h ) AS ?w ) WHERE { resource:Temple_block property:instrument ?h . ?h rdf:type ontology:musical_instrument } } . FILTER ( ?o > ?w ) }
[]