Simple Question (Direct)
Simple Question
Q17501895
P21
Q290
USER
What is the sex of Allard Plummer ?
(Q17501895,P21,c(Q290))
action filter_type
action find
entity Q17501895
relation P21
type Q290
['Q17501895', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q290 . resource:Q17501895 property:P21 ?c }
Allard Plummer
action filter_type
action find
entity Allard Plummer
relation gender
type sex
['Allard Plummer', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:sex . resource:Allard_Plummer property:gender ?c }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q17501895,P21,c(Q290))
action filter_type
action find
entity Q17501895
relation P21
type Q290
The sex of Allard Plummer is the [ANSWER]
['Q17501895', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:Q290 . resource:Q17501895 property:P21 ?c }
male
The sex of Allard Plummer is the male
male
action filter_type
action find
entity Allard Plummer
relation gender
type sex
['Allard Plummer', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?c WHERE { ?c rdf:type ontology:sex . resource:Allard_Plummer property:gender ?c }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q17501895
P641
Q349
USER
Which sport was Allard Plummer a part of ?
(Q17501895,P641,c(Q349))
action filter_type
action find
entity Q17501895
relation P641
type Q349
['Q17501895', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?x WHERE { resource:Q17501895 property:P641 ?x . ?x rdf:type ontology:Q349 }
Allard Plummer
action filter_type
action find
entity Allard Plummer
relation sport
type sport
['Allard Plummer', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?x WHERE { resource:Allard_Plummer property:sport ?x . ?x rdf:type ontology:sport }
[]
sport
Q2736
SYSTEM
association football
Q2736
(Q17501895,P641,c(Q349))
action filter_type
action find
entity Q17501895
relation P641
type Q349
Which sport was Allard Plummer a part of
['Q17501895', 'P641', {'concept': 'Q349'}]
SELECT DISTINCT ?x WHERE { resource:Q17501895 property:P641 ?x . ?x rdf:type ontology:Q349 }
association football
Which sport was Allard Plummer a part of
association football
action filter_type
action find
entity Allard Plummer
relation sport
type sport
['Allard Plummer', 'sport', {'concept': 'sport'}]
SELECT DISTINCT ?x WHERE { resource:Allard_Plummer property:sport ?x . ?x rdf:type ontology:sport }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type
Q201129
P1303
Q34379 Q502895
USER
Which musical instruments can more number of people perform with than lyre ?
(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 Q201129
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:P1303 ?b . ?b rdf:type ontology:Q34379 . ?h rdf:type ontology:Q502895 } GROUP BY ?b } . FILTER ( ?f > ?d ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { ?e rdf:type ontology:Q34379 . resource:Q201129 property:P1303 ?e } } }
lyre
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity lyre
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:instrument ?b . ?b rdf:type ontology:musical_instrument . ?h rdf:type ontology:common_name } GROUP BY ?b } . FILTER ( ?f > ?d ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { ?e rdf:type ontology:musical_instrument . resource:lyre property:instrument ?e } } }
[]
musical instrument common name
Q5994 Q81982 Q80284
SYSTEM
piano, harpsichord, viola
Q80284 Q46185 Q80019 Q2563510 Q5994 Q81982 Q206987 Q189737 Q8338 Q8371 Q8355 Q213461 Q3382191 Q213100 Q626035 Q742180 Q1444 Q220971 Q128309 Q726306 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 Q201129
relation P1303
type Q34379
[ANSWERS] can more number of people perform with than lyre
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:P1303 ?b . ?b rdf:type ontology:Q34379 . ?h rdf:type ontology:Q502895 } GROUP BY ?b } . FILTER ( ?f > ?d ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { ?e rdf:type ontology:Q34379 . resource:Q201129 property:P1303 ?e } } }
viola bass guitar double bass steel-string acoustic guitar piano harpsichord vibraphone timpani trumpet cello violin harmonium upright piano tabla glockenspiel viola d'amore organ marimba drum kit erhu electronic keyboard drum
Piano, harpsichord and viola can more number of people perform with than lyre
piano harpsichord viola
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity lyre
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?b WHERE { { SELECT DISTINCT ?b ( COUNT ( ?h ) AS ?f ) WHERE { ?h property:instrument ?b . ?b rdf:type ontology:musical_instrument . ?h rdf:type ontology:common_name } GROUP BY ?b } . FILTER ( ?f > ?d ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?d ) WHERE { ?e rdf:type ontology:musical_instrument . resource:lyre property:instrument ?e } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Single entity type|Incomplete
Q81982
P1303
Q34379 Q502895
USER
And how about harpsichord?
(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 Q81982
relation P1303
type Q34379
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?r ) WHERE { ?i property:P1303 ?d . ?d rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 } GROUP BY ?d } . FILTER ( ?r > ?w ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { resource:Q81982 property:P1303 ?f . ?f rdf:type ontology:Q34379 } } }
harpsichord
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity harpsichord
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?r ) WHERE { ?i property:instrument ?d . ?d rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name } GROUP BY ?d } . FILTER ( ?r > ?w ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { resource:harpsichord property:instrument ?f . ?f rdf:type ontology:musical_instrument } } }
[]
musical instrument common name
Q5994 Q80284 Q46185
SYSTEM
piano, viola, bass guitar
Q80284 Q46185 Q80019 Q5994 Q8338 Q8371 Q8355 Q1444 Q128309 Q1343007
(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 Q81982
relation P1303
type Q34379
[ANSWERS]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?r ) WHERE { ?i property:P1303 ?d . ?d rdf:type ontology:Q34379 . ?i rdf:type ontology:Q502895 } GROUP BY ?d } . FILTER ( ?r > ?w ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { resource:Q81982 property:P1303 ?f . ?f rdf:type ontology:Q34379 } } }
viola bass guitar double bass piano trumpet cello violin organ drum kit electronic keyboard
piano viola bass guitar
action greater
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find
entity harpsichord
relation instrument
type musical instrument
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?d WHERE { { SELECT DISTINCT ?d ( COUNT ( ?i ) AS ?r ) WHERE { ?i property:instrument ?d . ?d rdf:type ontology:musical_instrument . ?i rdf:type ontology:common_name } GROUP BY ?d } . FILTER ( ?r > ?w ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?w ) WHERE { resource:harpsichord property:instrument ?f . ?f rdf:type ontology:musical_instrument } } }
[]
Simple Question (Coreferenced)
Simple Question|Mult. Entity
Q5994 Q80284 Q46185
P425
Q12737077
USER
Which occupations do those musical instruments belong to ?
(c(Q12737077),P425,Q5994) (c(Q12737077),P425,Q80284) (c(Q12737077),P425,Q46185)
action filter_type
action find_reverse
entity prev_answer
relation P425
type Q12737077
[{'concept': 'Q12737077'}, 'P425', 'Q5994'] [{'concept': 'Q12737077'}, 'P425', 'Q80284'] [{'concept': 'Q12737077'}, 'P425', 'Q46185']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q12737077 . ?m property:P425 ?y . VALUES ( ?y ) { ( resource:Q80284 ) ( resource:Q46185 ) ( resource:Q80019 ) } }
piano viola bass guitar
action filter_type
action find_reverse
entity prev_answer
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'piano'] [{'concept': 'occupation'}, 'field of this occupation', 'viola'] [{'concept': 'occupation'}, 'field of this occupation', 'bass guitar']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:occupation . ?m property:field_of_this_occupation ?y . VALUES ( ?y ) { ( resource:viola ) ( resource:bass_guitar ) ( resource:double_bass ) } }
[]
occupation
Q885122 Q21504978 Q486748
SYSTEM
piano maker, bass-guitarist, pianist
Q486748 Q885122 Q899758 Q21504978
(c(Q12737077),P425,Q5994) (c(Q12737077),P425,Q80284) (c(Q12737077),P425,Q46185)
action filter_type
action find_reverse
entity prev_answer
relation P425
type Q12737077
Those musical instruments belong to the [ANSWERS]
[{'concept': 'Q12737077'}, 'P425', 'Q5994'] [{'concept': 'Q12737077'}, 'P425', 'Q80284'] [{'concept': 'Q12737077'}, 'P425', 'Q46185']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q12737077 . ?m property:P425 ?y . VALUES ( ?y ) { ( resource:Q80284 ) ( resource:Q46185 ) ( resource:Q80019 ) } }
pianist piano maker violist bass-guitarist
Those musical instruments belong to the piano maker, bass-guitarist and pianist
piano maker bass-guitarist pianist
action filter_type
action find_reverse
entity prev_answer
relation field of this occupation
type occupation
[{'concept': 'occupation'}, 'field of this occupation', 'piano'] [{'concept': 'occupation'}, 'field of this occupation', 'viola'] [{'concept': 'occupation'}, 'field of this occupation', 'bass guitar']
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:occupation . ?m property:field_of_this_occupation ?y . VALUES ( ?y ) { ( resource:viola ) ( resource:bass_guitar ) ( resource:double_bass ) } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q21504978
P106
Q502895
USER
Which people have the profession as that occupation ?
(c(Q502895),P106,Q21504978)
action filter_type
action find_reverse
entity Q21504978
relation P106
type Q502895
[{'concept': 'Q502895'}, 'P106', 'Q21504978']
SELECT DISTINCT ?g WHERE { ?g property:P106 resource:Q21504978 . ?g rdf:type ontology:Q502895 }
bass-guitarist
action filter_type
action find_reverse
entity bass-guitarist
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'bass-guitarist']
SELECT DISTINCT ?g WHERE { ?g property:occupation resource:bass-guitarist . ?g rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q21504978
SYSTEM
Did you mean bass-guitarist ?
Q885122 Q21504978 Q486748
(c(Q502895),P106,Q885122) (c(Q502895),P106,Q21504978) (c(Q502895),P106,Q486748)
[ANSWER]
[{'concept': 'Q502895'}, 'P106', 'Q885122'] [{'concept': 'Q502895'}, 'P106', 'Q21504978'] [{'concept': 'Q502895'}, 'P106', 'Q486748']
SELECT DISTINCT ?g WHERE { ?g property:P106 resource:Q21504978 . ?g rdf:type ontology:Q502895 }
piano maker bass-guitarist pianist
Did you mean bass-guitarist ?
bass-guitarist
[{'concept': 'common name'}, 'occupation', 'piano maker'] [{'concept': 'common name'}, 'occupation', 'bass-guitarist'] [{'concept': 'common name'}, 'occupation', 'pianist']
SELECT DISTINCT ?g WHERE { ?g property:occupation resource:bass-guitarist . ?g rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(c(Q502895),P106,Q21504978)
[{'concept': 'Q502895'}, 'P106', 'Q21504978']
[{'concept': 'common name'}, 'occupation', 'bass-guitarist']
[]
Q3787435 Q6501192 Q2923441
SYSTEM
Hugh Bullen, Laurent Pardo, Brad Stewart
Q6501192 Q11678892 Q11312231 Q2474957 Q11852485 Q16204298 Q3787435 Q22276823 Q2234986 Q2923441 Q12331297 Q7388697
(c(Q502895),P106,Q21504978)
action filter_type
action find_reverse
entity Q21504978
relation P106
type Q502895
[ANSWERS] have the profession as that occupation
[{'concept': 'Q502895'}, 'P106', 'Q21504978']
SELECT DISTINCT ?g WHERE { ?g property:P106 resource:Q21504978 . ?g rdf:type ontology:Q502895 }
Laurent Pardo Katsuhiko Kurosu Steve Fox Edwin Wieringa Ari Laaksonen Tomoya Ohtani Hugh Bullen Andy Pask Rhonda Smith Brad Stewart Per Chr. Frost Mohd Syukri bin Mohd Shanushi
Hugh Bullen, Laurent Pardo and Brad Stewart have the profession as that occupation
Hugh Bullen Laurent Pardo Brad Stewart
action filter_type
action find_reverse
entity bass-guitarist
relation occupation
type common name
[{'concept': 'common name'}, 'occupation', 'bass-guitarist']
SELECT DISTINCT ?g WHERE { ?g property:occupation resource:bass-guitarist . ?g rdf:type ontology:common_name }
[]