Simple Question (Direct)
Simple Question
Q3103576
P1303
Q34379
USER
Which musical instrument does Georges Tzipine know to play ?
(Q3103576,P1303,c(Q34379))
action filter_type
action find
entity Q3103576
relation P1303
type Q34379
['Q3103576', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?m WHERE { resource:Q3103576 property:P1303 ?m . ?m rdf:type ontology:Q34379 }
Georges Tzipine
action filter_type
action find
entity Georges Tzipine
relation instrument
type musical instrument
['Georges Tzipine', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?m WHERE { resource:Georges_Tzipine property:instrument ?m . ?m rdf:type ontology:musical_instrument }
[]
musical instrument
Q8355
SYSTEM
violin
Q8355
(Q3103576,P1303,c(Q34379))
action filter_type
action find
entity Q3103576
relation P1303
type Q34379
Georges Tzipine knows the [ANSWER]
['Q3103576', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?m WHERE { resource:Q3103576 property:P1303 ?m . ?m rdf:type ontology:Q34379 }
violin
Georges Tzipine knows the violin
violin
action filter_type
action find
entity Georges Tzipine
relation instrument
type musical instrument
['Georges Tzipine', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?m WHERE { resource:Georges_Tzipine property:instrument ?m . ?m rdf:type ontology:musical_instrument }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8355
P870
Q188451
USER
Which music genres employs that musical instrument as musical instrument ?
(c(Q188451),P870,Q8355)
action filter_type
action find_reverse
entity Q8355
relation P870
type Q188451
[{'concept': 'Q188451'}, 'P870', 'Q8355']
SELECT DISTINCT ?u WHERE { ?u property:P870 resource:Q8355 . ?u rdf:type ontology:Q188451 }
violin
action filter_type
action find_reverse
entity violin
relation instrumentation
type music genre
[{'concept': 'music genre'}, 'instrumentation', 'violin']
SELECT DISTINCT ?u WHERE { ?u property:instrumentation resource:violin . ?u rdf:type ontology:music_genre }
[]
music genre
Q669358 Q1154601 Q3073254
SYSTEM
Violin Sonata No. 5, Violin Sonata No. 9, Violin Sonata No. 1
Q3490268 Q3073254 Q3490221 Q2719749 Q20646570 Q20646571 Q3490181 Q1300778 Q3490122 Q15632116 Q2457349 Q1892808 Q264268 Q2269974 Q3490207 Q3133281 Q550350 Q3069060 Q2252472 Q428956 Q3490205 Q20646569 Q3490199 Q2270897 Q3490195 Q1635731 Q3490212 Q3490213 Q669358 Q3490184 Q7933385 Q2181451 Q1154601 Q4428775 Q1635353 Q3490251 Q3069052 Q2412736 Q1067735 Q1635740 Q2375280 Q1271144 Q3069033 Q2352641
(c(Q188451),P870,Q8355)
action filter_type
action find_reverse
entity Q8355
relation P870
type Q188451
[ANSWERS] employ that musical instrument as musical instrument
[{'concept': 'Q188451'}, 'P870', 'Q8355']
SELECT DISTINCT ?u WHERE { ?u property:P870 resource:Q8355 . ?u rdf:type ontology:Q188451 }
Violin Sonata in A Violin Sonata No. 1 Violin Sonatas Violin Sonata Sonata No. 2 in A minor, BWV 1003 Sonata No. 3 in C major, BWV 1005 Violin Sonata in F minor Violin Sonata No. 8 Violin Sonata Violin Sonata No. 25 Violin Sonata No. 1 Violin Sonata No. 7 Violin Sonata No. 2 Phantasy for Violin and Piano Violin Sonata No. 2 Violin Sonata No. 32 Violin Sonata No. 28 Violin Sonata No. 35 Violin Sonata No. 29 Violin Sonata No. 6 Violin Sonata No. 1 Sonata No. 1 in G minor, BWV 1001 Violin Sonata F-A-E Sonata Violin Sonata Violin Sonata No. 1 Violin Sonata No. 3 Violin Sonata No. 3 Violin Sonata No. 5 Violin Sonata No. 24 Violin sonata Violin Sonata Violin Sonata No. 9 Violin Sonata Violin Sonata No. 2 Rosary Sonatas Violin Sonata No. 27 Violin Sonata in F major (Mendelssohn) Violin Sonata No. 10 Violin Sonata No. 4 Violin Sonata in F major (Mendelssohn) Violin Sonata No. 3 Violin Sonata No. 33 Violin Sonata No. 2
Violin Sonata No. 5, Violin Sonata No. 9 and Violin Sonata No. 1 employ that musical instrument as musical instrument
Violin Sonata No. 5 Violin Sonata No. 9 Violin Sonata No. 1
action filter_type
action find_reverse
entity violin
relation instrumentation
type music genre
[{'concept': 'music genre'}, 'instrumentation', 'violin']
SELECT DISTINCT ?u WHERE { ?u property:instrumentation resource:violin . ?u rdf:type ontology:music_genre }
[]
Clarification
Simple Question|Single Entity|Indirect
Q669358
P825
Q502895
USER
Which person is that music genre dedicated to ?
(Q669358,P825,c(Q502895))
action filter_type
action find
entity Q669358
relation P825
type Q502895
['Q669358', 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q669358 property:P825 ?w . ?w rdf:type ontology:Q502895 }
Violin Sonata No. 5
action filter_type
action find
entity Violin Sonata No. 5
relation dedicated to
type common name
['Violin Sonata No. 5', 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Violin_Sonata_No._5 property:dedicated_to ?w . ?w rdf:type ontology:common_name }
[]
common name
Clarification for simple ques.
Q669358
SYSTEM
Did you mean Violin Sonata No. 5 ?
Q669358 Q1154601 Q3073254
(Q669358,P825,c(Q502895)) (Q1154601,P825,c(Q502895)) (Q3073254,P825,c(Q502895))
[ANSWER]
['Q669358', 'P825', {'concept': 'Q502895'}] ['Q1154601', 'P825', {'concept': 'Q502895'}] ['Q3073254', 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q669358 property:P825 ?w . ?w rdf:type ontology:Q502895 }
Violin Sonata No. 5 Violin Sonata No. 9 Violin Sonata No. 1
Did you mean Violin Sonata No. 5 ?
Violin Sonata No. 5
['Violin Sonata No. 5', 'dedicated to', {'concept': 'common name'}] ['Violin Sonata No. 9', 'dedicated to', {'concept': 'common name'}] ['Violin Sonata No. 1', 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Violin_Sonata_No._5 property:dedicated_to ?w . ?w rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
USER
Yes
(Q669358,P825,c(Q502895))
['Q669358', 'P825', {'concept': 'Q502895'}]
['Violin Sonata No. 5', 'dedicated to', {'concept': 'common name'}]
[]
Q1948037
SYSTEM
Moritz Reichsgraf von Fries
Q1948037
(Q669358,P825,c(Q502895))
action filter_type
action find
entity Q669358
relation P825
type Q502895
That music genre is [ANSWER]
['Q669358', 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?w WHERE { resource:Q669358 property:P825 ?w . ?w rdf:type ontology:Q502895 }
Moritz Reichsgraf von Fries
That music genre is Moritz Reichsgraf von Fries
Moritz Reichsgraf von Fries
action filter_type
action find
entity Violin Sonata No. 5
relation dedicated to
type common name
['Violin Sonata No. 5', 'dedicated to', {'concept': 'common name'}]
SELECT DISTINCT ?w WHERE { resource:Violin_Sonata_No._5 property:dedicated_to ?w . ?w rdf:type ontology:common_name }
[]
Logical Reasoning (All)
Logical|Union|Single_Relation
Q21285629 Q1948037
P27
Q1048835
USER
Which political territories do Moritz Reichsgraf von Fries or Loni Uhila belong to ?
OR((Q1948037,P27,c(Q1048835)), (Q21285629,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1948037
relation P27
action find
entity Q21285629
relation P27
type Q1048835
{'OR': [['Q1948037', 'P27', {'concept': 'Q1048835'}], ['Q21285629', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { { ?q property:P27 ?t . VALUES ( ?q ) { ( resource:Q1948037 ) ( resource:Q21285629 ) } } . ?t rdf:type ontology:Q1048835 }
Loni Uhila Moritz Reichsgraf von Fries
action filter_type
action union
action find
entity Moritz Reichsgraf von Fries
relation country of citizenship
action find
entity Loni Uhila
relation country of citizenship
type political territorial entity
{'OR': [['Moritz Reichsgraf von Fries', 'country of citizenship', {'concept': 'political territorial entity'}], ['Loni Uhila', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { ?q property:country_of_citizenship ?t . VALUES ( ?q ) { ( resource:Moritz_Reichsgraf_von_Fries ) ( resource:Loni_Uhila ) } } . ?t rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q664 Q40
SYSTEM
New Zealand, Austria
Q664 Q40
OR((Q1948037,P27,c(Q1048835)), (Q21285629,P27,c(Q1048835)))
action filter_type
action union
action find
entity Q1948037
relation P27
action find
entity Q21285629
relation P27
type Q1048835
Moritz Reichsgraf von Fries or Loni Uhila belong to the [ANSWERS]
{'OR': [['Q1948037', 'P27', {'concept': 'Q1048835'}], ['Q21285629', 'P27', {'concept': 'Q1048835'}]]}
SELECT DISTINCT ?t WHERE { { ?q property:P27 ?t . VALUES ( ?q ) { ( resource:Q1948037 ) ( resource:Q21285629 ) } } . ?t rdf:type ontology:Q1048835 }
New Zealand Austria
Moritz Reichsgraf von Fries or Loni Uhila belong to the New Zealand and Austria
New Zealand Austria
action filter_type
action union
action find
entity Moritz Reichsgraf von Fries
relation country of citizenship
action find
entity Loni Uhila
relation country of citizenship
type political territorial entity
{'OR': [['Moritz Reichsgraf von Fries', 'country of citizenship', {'concept': 'political territorial entity'}], ['Loni Uhila', 'country of citizenship', {'concept': 'political territorial entity'}]]}
SELECT DISTINCT ?t WHERE { { ?q property:country_of_citizenship ?t . VALUES ( ?q ) { ( resource:Moritz_Reichsgraf_von_Fries ) ( resource:Loni_Uhila ) } } . ?t rdf:type ontology:political_territorial_entity }
[]
Verification (Boolean) (All)
Verification|one entity, multiple entities (as object) referred indirectly
Q20742245
P27
Q502895
USER
Are William McHardy civilians of those political territories ?
(Q20742245,P27,Q664) (Q20742245,P27,Q40)
action is_in
entity prev_answer
action find
entity Q20742245
relation P27
['Q20742245', 'P27', 'Q664'] ['Q20742245', 'P27', 'Q40']
ASK WHERE { VALUES ( ?v ) { ( resource:Q664 ) ( resource:Q40 ) } . resource:Q20742245 property:P27 ?v }
William McHardy
action is_in
entity prev_answer
action find
entity William McHardy
relation country of citizenship
['William McHardy', 'country of citizenship', 'New Zealand'] ['William McHardy', 'country of citizenship', 'Austria']
ASK WHERE { VALUES ( ?v ) { ( resource:New_Zealand ) ( resource:Austria ) } . resource:William_McHardy property:country_of_citizenship ?v }
[]
common name
SYSTEM
NO
(Q20742245,P27,Q664) (Q20742245,P27,Q40)
action is_in
entity prev_answer
action find
entity Q20742245
relation P27
[ANSWER]
['Q20742245', 'P27', 'Q664'] ['Q20742245', 'P27', 'Q40']
ASK WHERE { VALUES ( ?v ) { ( resource:Q664 ) ( resource:Q40 ) } . resource:Q20742245 property:P27 ?v }
No
action is_in
entity prev_answer
action find
entity William McHardy
relation country of citizenship
['William McHardy', 'country of citizenship', 'New Zealand'] ['William McHardy', 'country of citizenship', 'Austria']
ASK WHERE { VALUES ( ?v ) { ( resource:New_Zealand ) ( resource:Austria ) } . resource:William_McHardy property:country_of_citizenship ?v }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q669358 Q2130586 Q255
P86
Q502895
USER
Does Violin Sonata No. 5 have Rand Holmes and Ludwig van Beethoven as the melodist ?
(Q669358,P86,Q2130586) (Q669358,P86,Q255)
action is_in
entity Q669358
action intersection
action find_reverse
entity Q2130586
relation P86
action find_reverse
entity Q255
relation P86
['Q669358', 'P86', 'Q2130586'] ['Q669358', 'P86', 'Q255']
ASK WHERE { resource:Q669358 property:P86 resource:Q2130586 . resource:Q669358 property:P86 resource:Q255 }
Violin Sonata No. 5 Rand Holmes Ludwig van Beethoven
action is_in
entity Violin Sonata No. 5
action intersection
action find_reverse
entity Rand Holmes
relation composer
action find_reverse
entity Ludwig van Beethoven
relation composer
['Violin Sonata No. 5', 'composer', 'Rand Holmes'] ['Violin Sonata No. 5', 'composer', 'Ludwig van Beethoven']
ASK WHERE { resource:Violin_Sonata_No._5 property:composer resource:Rand_Holmes . resource:Violin_Sonata_No._5 property:composer resource:Ludwig_van_Beethoven }
[]
common name
SYSTEM
NO and YES respectively
(Q669358,P86,Q2130586) (Q669358,P86,Q255)
action is_in
entity Q669358
action intersection
action find_reverse
entity Q2130586
relation P86
action find_reverse
entity Q255
relation P86
[ANSWER]
['Q669358', 'P86', 'Q2130586'] ['Q669358', 'P86', 'Q255']
ASK WHERE { resource:Q669358 property:P86 resource:Q2130586 . resource:Q669358 property:P86 resource:Q255 }
NO and YES respectively
action is_in
entity Violin Sonata No. 5
action intersection
action find_reverse
entity Rand Holmes
relation composer
action find_reverse
entity Ludwig van Beethoven
relation composer
['Violin Sonata No. 5', 'composer', 'Rand Holmes'] ['Violin Sonata No. 5', 'composer', 'Ludwig van Beethoven']
ASK WHERE { resource:Violin_Sonata_No._5 property:composer resource:Rand_Holmes . resource:Violin_Sonata_No._5 property:composer resource:Ludwig_van_Beethoven }
[]