Simple Question (Direct)
Simple Question
Q4426800
P1303
Q34379
USER
Which musical instrument can Eugène Sauzay perform with ?
(Q4426800,P1303,c(Q34379))
action filter_type
action find
entity Q4426800
relation P1303
type Q34379
['Q4426800', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q34379 . resource:Q4426800 property:P1303 ?m }
Eugène Sauzay
action filter_type
action find
entity Eugène Sauzay
relation instrument
type musical instrument
['Eugène Sauzay', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:musical_instrument . resource:Eugène_Sauzay property:instrument ?m }
[]
musical instrument
Q8355
SYSTEM
violin
Q8355
(Q4426800,P1303,c(Q34379))
action filter_type
action find
entity Q4426800
relation P1303
type Q34379
Eugène Sauzay can perform a [ANSWER]
['Q4426800', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:Q34379 . resource:Q4426800 property:P1303 ?m }
violin
Eugène Sauzay can perform a violin
violin
action filter_type
action find
entity Eugène Sauzay
relation instrument
type musical instrument
['Eugène Sauzay', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?m WHERE { ?m rdf:type ontology:musical_instrument . resource:Eugène_Sauzay property:instrument ?m }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8355
P264
Q2031291
USER
Which release has that musical instrument as its record label ?
(c(Q2031291),P264,Q8355)
action filter_type
action find_reverse
entity Q8355
relation P264
type Q2031291
[{'concept': 'Q2031291'}, 'P264', 'Q8355']
SELECT DISTINCT ?w WHERE { ?w property:P264 resource:Q8355 . ?w rdf:type ontology:Q2031291 }
violin
action filter_type
action find_reverse
entity violin
relation record label
type release
[{'concept': 'release'}, 'record label', 'violin']
SELECT DISTINCT ?w WHERE { ?w property:record_label resource:violin . ?w rdf:type ontology:release }
[]
release
Q7936123
SYSTEM
Vision
Q7936123
(c(Q2031291),P264,Q8355)
action filter_type
action find_reverse
entity Q8355
relation P264
type Q2031291
[ANSWER] has that musical instrument as its record label
[{'concept': 'Q2031291'}, 'P264', 'Q8355']
SELECT DISTINCT ?w WHERE { ?w property:P264 resource:Q8355 . ?w rdf:type ontology:Q2031291 }
Vision
Vision has that musical instrument as its record label
Vision
action filter_type
action find_reverse
entity violin
relation record label
type release
[{'concept': 'release'}, 'record label', 'violin']
SELECT DISTINCT ?w WHERE { ?w property:record_label resource:violin . ?w rdf:type ontology:release }
[]
Quantitative Reasoning (All)
Quantitative|Min/Max|Mult. entity type
P180
Q34379 Q3305213 Q838948
USER
Which musical instruments are demonstrated in min number of paintings or works of art ?
(c(Q3305213)|c(Q838948),P180,c(Q34379))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q34379
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q34379
type Q838948
[[{'concept': 'Q3305213'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?q ) { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?t ) WHERE { VALUES ( ?z ) { ( ontology:Q838948 ) ( ontology:Q3305213 ) } . ?n rdf:type ?z } GROUP BY ?y } } . { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?i ) WHERE { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:Q3305213 ) ( ontology:Q838948 ) } } GROUP BY ?h } . FILTER ( ?i = ?q ) }
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type musical instrument
type painting
action find_reverse_tuple_counts
relation depicts
type musical instrument
type work of art
[[{'concept': 'painting'}, {'concept': 'work of art'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?q ) { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?t ) WHERE { VALUES ( ?z ) { ( ontology:work_of_art ) ( ontology:painting ) } . ?n rdf:type ?z } GROUP BY ?y } } . { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?i ) WHERE { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:painting ) ( ontology:work_of_art ) } } GROUP BY ?h } . FILTER ( ?i = ?q ) }
[]
musical instrument painting work of art
Q81982 Q218547 Q8371
SYSTEM
harpsichord, Sigismund Bell, cello
Q8371 Q3382191 Q7933058 Q81982 Q218547 Q8338 Q173453 Q1141589 Q426948 Q871633 Q3500690 Q80019 Q1798603
(c(Q3305213)|c(Q838948),P180,c(Q34379))
action argmin
action union
action find_reverse_tuple_counts
relation P180
type Q34379
type Q3305213
action find_reverse_tuple_counts
relation P180
type Q34379
type Q838948
[ANSWERS] are demonstrated in min number of paintings or works of art
[[{'concept': 'Q3305213'}, {'concept': 'Q838948'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?q ) { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?t ) WHERE { VALUES ( ?z ) { ( ontology:Q838948 ) ( ontology:Q3305213 ) } . ?n rdf:type ?z } GROUP BY ?y } } . { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?i ) WHERE { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:Q3305213 ) ( ontology:Q838948 ) } } GROUP BY ?h } . FILTER ( ?i = ?q ) }
cello upright piano Viola caipira harpsichord Sigismund Bell trumpet wind instrument Crotales sistrum Handbell Church bell double bass string instrument
Harpsichord, Sigismund Bell and cello are demonstrated in min number of paintings or works of art
harpsichord Sigismund Bell cello
action argmin
action union
action find_reverse_tuple_counts
relation depicts
type musical instrument
type painting
action find_reverse_tuple_counts
relation depicts
type musical instrument
type work of art
[[{'concept': 'painting'}, {'concept': 'work of art'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ?h WHERE { { SELECT DISTINCT ( MIN ( ?t ) AS ?q ) { SELECT DISTINCT ?y ( COUNT ( ?n ) AS ?t ) WHERE { VALUES ( ?z ) { ( ontology:work_of_art ) ( ontology:painting ) } . ?n rdf:type ?z } GROUP BY ?y } } . { SELECT DISTINCT ?h ( COUNT ( ?w ) AS ?i ) WHERE { ?w rdf:type ?c . VALUES ( ?c ) { ( ontology:painting ) ( ontology:work_of_art ) } } GROUP BY ?h } . FILTER ( ?i = ?q ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q81982
P425
Q12737077
USER
What has harpsichord as the associated field of occupation ?
(Q81982,P425,c(Q12737077))
action filter_type
action find
entity Q81982
relation P425
type Q12737077
['Q81982', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q81982 property:P425 ?i . ?i rdf:type ontology:Q12737077 }
harpsichord
action filter_type
action find
entity harpsichord
relation field of this occupation
type occupation
['harpsichord', 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:harpsichord property:field_of_this_occupation ?i . ?i rdf:type ontology:occupation }
[]
occupation
Q5371902
SYSTEM
harpsichordist
Q5371902
(Q81982,P425,c(Q12737077))
action filter_type
action find
entity Q81982
relation P425
type Q12737077
T [ANSWER] has harpsichord as the associated field of occupation
['Q81982', 'P425', {'concept': 'Q12737077'}]
SELECT DISTINCT ?i WHERE { resource:Q81982 property:P425 ?i . ?i rdf:type ontology:Q12737077 }
harpsichordist
T harpsichordist has harpsichord as the associated field of occupation
harpsichordist
action filter_type
action find
entity harpsichord
relation field of this occupation
type occupation
['harpsichord', 'field of this occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?i WHERE { resource:harpsichord property:field_of_this_occupation ?i . ?i rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q4426800
P802
Q502895
USER
Which people were a notable student of Eugène Sauzay ?
(c(Q502895),P802,Q4426800)
action filter_type
action find_reverse
entity Q4426800
relation P802
type Q502895
[{'concept': 'Q502895'}, 'P802', 'Q4426800']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . ?g property:P802 resource:Q4426800 }
Eugène Sauzay
action filter_type
action find_reverse
entity Eugène Sauzay
relation student
type common name
[{'concept': 'common name'}, 'student', 'Eugène Sauzay']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . ?g property:student resource:Eugène_Sauzay }
[]
common name
Q512197 Q311387
SYSTEM
Pierre Baillot, Anton Reicha
Q512197 Q311387
(c(Q502895),P802,Q4426800)
action filter_type
action find_reverse
entity Q4426800
relation P802
type Q502895
[ANSWERS] were a notable student of Eugène Sauzay
[{'concept': 'Q502895'}, 'P802', 'Q4426800']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:Q502895 . ?g property:P802 resource:Q4426800 }
Pierre Baillot Anton Reicha
Pierre Baillot and Anton Reicha were a notable student of Eugène Sauzay
Pierre Baillot Anton Reicha
action filter_type
action find_reverse
entity Eugène Sauzay
relation student
type common name
[{'concept': 'common name'}, 'student', 'Eugène Sauzay']
SELECT DISTINCT ?g WHERE { ?g rdf:type ontology:common_name . ?g property:student resource:Eugène_Sauzay }
[]
Simple Question (Direct)
Simple Question|Mult. Entity|Indirect
Q512197 Q311387
P1066
Q502895
USER
Who are a student of Pierre Baillot and Anton Reicha ?
(c(Q502895),P1066,Q512197) (c(Q502895),P1066,Q311387)
action union
action filter_type
action find_reverse
entity Q512197
relation P1066
type Q502895
action filter_type
action find_reverse
entity Q311387
relation P1066
type Q502895
[{'concept': 'Q502895'}, 'P1066', 'Q512197'] [{'concept': 'Q502895'}, 'P1066', 'Q311387']
SELECT DISTINCT ?v WHERE { { ?v property:P1066 resource:Q512197 . ?v rdf:type ontology:Q502895 } UNION { ?v rdf:type ontology:Q502895 . ?v property:P1066 resource:Q311387 } }
Pierre Baillot Anton Reicha
action union
action filter_type
action find_reverse
entity Pierre Baillot
relation student of
type common name
action filter_type
action find_reverse
entity Anton Reicha
relation student of
type common name
[{'concept': 'common name'}, 'student of', 'Pierre Baillot'] [{'concept': 'common name'}, 'student of', 'Anton Reicha']
SELECT DISTINCT ?v WHERE { { ?v property:student_of resource:Pierre_Baillot . ?v rdf:type ontology:common_name } UNION { ?v rdf:type ontology:common_name . ?v property:student_of resource:Anton_Reicha } }
[]
common name
Q41309 Q936364 Q180278
SYSTEM
Franz Liszt, Édouard Deldevez, Charles Gounod
Q957041 Q1390375 Q224002 Q4426800 Q1064049 Q1390375 Q2003880 Q442198 Q180278 Q2935070 Q4426800 Q1151 Q312790 Q3190548 Q936364 Q1356212 Q2839738 Q41309 Q50187
(c(Q502895),P1066,Q512197) (c(Q502895),P1066,Q311387)
action union
action filter_type
action find_reverse
entity Q512197
relation P1066
type Q502895
action filter_type
action find_reverse
entity Q311387
relation P1066
type Q502895
A student of Pierre Baillot and Anton Reicha are born [ANSWERS]
[{'concept': 'Q502895'}, 'P1066', 'Q512197'] [{'concept': 'Q502895'}, 'P1066', 'Q311387']
SELECT DISTINCT ?v WHERE { { ?v property:P1066 resource:Q512197 . ?v rdf:type ontology:Q502895 } UNION { ?v rdf:type ontology:Q502895 . ?v property:P1066 resource:Q311387 } }
François Habeneck Narcisse Girard Edouard Lalo Eugène Sauzay Charles Dancla Narcisse Girard Albert Grisar Louise Farrenc Charles Gounod Camille Schubert Eugène Sauzay Hector Berlioz Henri Vieuxtemps Justinien Viallon Édouard Deldevez Napoléon Henri Reber Alphonse Clarke Franz Liszt César Franck
A student of Pierre Baillot and Anton Reicha are born Franz Liszt, Édouard Deldevez and Charles Gounod
Franz Liszt Édouard Deldevez Charles Gounod
action union
action filter_type
action find_reverse
entity Pierre Baillot
relation student of
type common name
action filter_type
action find_reverse
entity Anton Reicha
relation student of
type common name
[{'concept': 'common name'}, 'student of', 'Pierre Baillot'] [{'concept': 'common name'}, 'student of', 'Anton Reicha']
SELECT DISTINCT ?v WHERE { { ?v property:student_of resource:Pierre_Baillot . ?v rdf:type ontology:common_name } UNION { ?v rdf:type ontology:common_name . ?v property:student_of resource:Anton_Reicha } }
[]
Clarification
Simple Question|Single Entity|Indirect
Q180278
P22
Q502895
USER
Who was the dad of that one ?
(Q180278,P22,c(Q502895))
action filter_type
action find
entity Q180278
relation P22
type Q502895
['Q180278', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q180278 property:P22 ?w . ?w rdf:type ontology:Q502895 }
Charles Gounod
action filter_type
action find
entity Charles Gounod
relation father
type common name
['Charles Gounod', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Charles_Gounod property:father ?w . ?w rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q936364
SYSTEM
Did you mean Édouard Deldevez ?
Q41309 Q936364 Q180278
(Q41309,P22,c(Q502895)) (Q936364,P22,c(Q502895)) (Q180278,P22,c(Q502895))
[ANSWER]
['Q41309', 'P22', {'concept': 'Q502895'}] ['Q936364', 'P22', {'concept': 'Q502895'}] ['Q180278', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q180278 property:P22 ?w . ?w rdf:type ontology:Q502895 }
Franz Liszt Édouard Deldevez Charles Gounod
Did you mean Édouard Deldevez ?
Édouard Deldevez
['Franz Liszt', 'father', {'concept': 'common name'}] ['Édouard Deldevez', 'father', {'concept': 'common name'}] ['Charles Gounod', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Charles_Gounod property:father ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
No, I meant Charles Gounod. Could you tell me the answer for that?
(Q180278,P22,c(Q502895))
Q180278
['Q180278', 'P22', {'concept': 'Q502895'}]
['Charles Gounod', 'father', {'concept': 'common name'}]
[]
Q16199122
SYSTEM
François-Louis Gounod
Q16199122
(Q180278,P22,c(Q502895))
action filter_type
action find
entity Q180278
relation P22
type Q502895
The dad of that one was to [ANSWER]
['Q180278', 'P22', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q180278 property:P22 ?w . ?w rdf:type ontology:Q502895 }
François-Louis Gounod
The dad of that one was to François-Louis Gounod
François-Louis Gounod
action filter_type
action find
entity Charles Gounod
relation father
type common name
['Charles Gounod', 'father', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Charles_Gounod property:father ?w . ?w rdf:type ontology:common_name }
[]