Simple Question (Direct)
Simple Question
Q2665908
P1303
Q34379
USER
Which musical instrument can Leopold August Abel perform with ?
(Q2665908,P1303,c(Q34379))
action filter_type
action find
entity Q2665908
relation P1303
type Q34379
['Q2665908', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?j WHERE { resource:Q2665908 property:P1303 ?j . ?j rdf:type ontology:Q34379 }
Leopold August Abel
action filter_type
action find
entity Leopold August Abel
relation instrument
type musical instrument
['Leopold August Abel', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?j WHERE { resource:Leopold_August_Abel property:instrument ?j . ?j rdf:type ontology:musical_instrument }
[]
musical instrument
Q8355
SYSTEM
violin
Q8355
(Q2665908,P1303,c(Q34379))
action filter_type
action find
entity Q2665908
relation P1303
type Q34379
Leopold August Abel can perform the [ANSWER]
['Q2665908', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?j WHERE { resource:Q2665908 property:P1303 ?j . ?j rdf:type ontology:Q34379 }
violin
Leopold August Abel can perform the violin
violin
action filter_type
action find
entity Leopold August Abel
relation instrument
type musical instrument
['Leopold August Abel', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?j WHERE { resource:Leopold_August_Abel property:instrument ?j . ?j rdf:type ontology:musical_instrument }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q8355
P870
Q188451
USER
Who employs that musical instrument as a musical instrument ?
(c(Q188451),P870,Q8355)
action filter_type
action find_reverse
entity Q8355
relation P870
type Q188451
[{'concept': 'Q188451'}, 'P870', 'Q8355']
SELECT DISTINCT ?t WHERE { ?t property:P870 resource:Q8355 . ?t 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 ?t WHERE { ?t property:instrumentation resource:violin . ?t 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 a musical instrument
[{'concept': 'Q188451'}, 'P870', 'Q8355']
SELECT DISTINCT ?t WHERE { ?t property:P870 resource:Q8355 . ?t 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 a 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 ?t WHERE { ?t property:instrumentation resource:violin . ?t rdf:type ontology:music_genre }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q845193
P870
Q34379 Q9748 Q15850590
USER
Which musical instruments were used in the composition of greater number of concertoes or theatrical genres than xylorimba ?
(c(Q9748)|c(Q15850590),P870,c(Q34379))
action greater
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q9748
action find_reverse_tuple_counts
relation P870
type Q34379
type Q15850590
action count
action filter_multi_types
action find_reverse
entity Q845193
relation P870
type Q9748
type Q15850590
[[{'concept': 'Q9748'}, {'concept': 'Q15850590'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?y ) WHERE { VALUES ( ?u ) { ( ontology:Q9748 ) ( ontology:Q15850590 ) } . ?s rdf:type ?u } GROUP BY ?q } . FILTER ( ?y > ?t ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { ?e property:P870 resource:Q845193 . { VALUES ( ?i ) { ( ontology:Q15850590 ) ( ontology:Q9748 ) } . ?e rdf:type ?i } } } }
xylorimba
action greater
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type concerto
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type theatrical genre
action count
action filter_multi_types
action find_reverse
entity xylorimba
relation instrumentation
type concerto
type theatrical genre
[[{'concept': 'concerto'}, {'concept': 'theatrical genre'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?y ) WHERE { VALUES ( ?u ) { ( ontology:concerto ) ( ontology:theatrical_genre ) } . ?s rdf:type ?u } GROUP BY ?q } . FILTER ( ?y > ?t ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { ?e property:instrumentation resource:xylorimba . { VALUES ( ?i ) { ( ontology:theatrical_genre ) ( ontology:concerto ) } . ?e rdf:type ?i } } } }
[]
musical instrument concerto theatrical genre
Q5994 Q81982 Q80284
SYSTEM
piano, harpsichord, viola
Q80284 Q8371 Q5994 Q1444 Q8355 Q81982
(c(Q9748)|c(Q15850590),P870,c(Q34379))
action greater
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q9748
action find_reverse_tuple_counts
relation P870
type Q34379
type Q15850590
action count
action filter_multi_types
action find_reverse
entity Q845193
relation P870
type Q9748
type Q15850590
[ANSWERS] were used in the composition of greater number of concertoes or theatrical genres than xylorimba
[[{'concept': 'Q9748'}, {'concept': 'Q15850590'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?y ) WHERE { VALUES ( ?u ) { ( ontology:Q9748 ) ( ontology:Q15850590 ) } . ?s rdf:type ?u } GROUP BY ?q } . FILTER ( ?y > ?t ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { ?e property:P870 resource:Q845193 . { VALUES ( ?i ) { ( ontology:Q15850590 ) ( ontology:Q9748 ) } . ?e rdf:type ?i } } } }
viola cello piano organ violin harpsichord
Piano, harpsichord and viola were used in the composition of greater number of concertoes or theatrical genres than xylorimba
piano harpsichord viola
action greater
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type concerto
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type theatrical genre
action count
action filter_multi_types
action find_reverse
entity xylorimba
relation instrumentation
type concerto
type theatrical genre
[[{'concept': 'concerto'}, {'concept': 'theatrical genre'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?q WHERE { { SELECT DISTINCT ?q ( COUNT ( ?s ) AS ?y ) WHERE { VALUES ( ?u ) { ( ontology:concerto ) ( ontology:theatrical_genre ) } . ?s rdf:type ?u } GROUP BY ?q } . FILTER ( ?y > ?t ) . { SELECT DISTINCT ( COUNT ( ?e ) AS ?t ) WHERE { ?e property:instrumentation resource:xylorimba . { VALUES ( ?i ) { ( ontology:theatrical_genre ) ( ontology:concerto ) } . ?e rdf:type ?i } } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q8338
P870
Q34379 Q9748 Q15850590
USER
And also tell me about trumpet?
(c(Q9748)|c(Q15850590),P870,c(Q34379))
action greater
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q9748
action find_reverse_tuple_counts
relation P870
type Q34379
type Q15850590
action count
action filter_multi_types
action find_reverse
entity Q8338
relation P870
type Q9748
type Q15850590
[[{'concept': 'Q9748'}, {'concept': 'Q15850590'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) ?t WHERE { { ?y property:P870 ?t . ?t rdf:type ontology:Q34379 . ?y rdf:type ontology:Q9748 } UNION { ?y property:P870 ?t . ?t rdf:type ontology:Q34379 . ?y rdf:type ontology:Q15850590 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { { { ?o rdf:type ontology:Q9748 } UNION { ?o rdf:type ontology:Q15850590 } } . ?o property:P870 resource:Q8338 } } . FILTER ( ?m > ?r ) }
trumpet
action greater
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type concerto
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type theatrical genre
action count
action filter_multi_types
action find_reverse
entity trumpet
relation instrumentation
type concerto
type theatrical genre
[[{'concept': 'concerto'}, {'concept': 'theatrical genre'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) ?t WHERE { { ?y property:instrumentation ?t . ?t rdf:type ontology:musical_instrument . ?y rdf:type ontology:concerto } UNION { ?y property:instrumentation ?t . ?t rdf:type ontology:musical_instrument . ?y rdf:type ontology:theatrical_genre } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { { { ?o rdf:type ontology:concerto } UNION { ?o rdf:type ontology:theatrical_genre } } . ?o property:instrumentation resource:trumpet } } . FILTER ( ?m > ?r ) }
[]
musical instrument concerto theatrical genre
Q5994 Q81982 Q80284
SYSTEM
piano, harpsichord, viola
Q80284 Q8371 Q5994 Q1444 Q8355 Q81982
(c(Q9748)|c(Q15850590),P870,c(Q34379))
action greater
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q9748
action find_reverse_tuple_counts
relation P870
type Q34379
type Q15850590
action count
action filter_multi_types
action find_reverse
entity Q8338
relation P870
type Q9748
type Q15850590
[ANSWERS]
[[{'concept': 'Q9748'}, {'concept': 'Q15850590'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) ?t WHERE { { ?y property:P870 ?t . ?t rdf:type ontology:Q34379 . ?y rdf:type ontology:Q9748 } UNION { ?y property:P870 ?t . ?t rdf:type ontology:Q34379 . ?y rdf:type ontology:Q15850590 } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { { { ?o rdf:type ontology:Q9748 } UNION { ?o rdf:type ontology:Q15850590 } } . ?o property:P870 resource:Q8338 } } . FILTER ( ?m > ?r ) }
viola cello piano organ violin harpsichord
piano harpsichord viola
action greater
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type concerto
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type theatrical genre
action count
action filter_multi_types
action find_reverse
entity trumpet
relation instrumentation
type concerto
type theatrical genre
[[{'concept': 'concerto'}, {'concept': 'theatrical genre'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?t WHERE { { SELECT DISTINCT ( COUNT ( ?y ) AS ?m ) ?t WHERE { { ?y property:instrumentation ?t . ?t rdf:type ontology:musical_instrument . ?y rdf:type ontology:concerto } UNION { ?y property:instrumentation ?t . ?t rdf:type ontology:musical_instrument . ?y rdf:type ontology:theatrical_genre } } GROUP BY ?t } . { SELECT DISTINCT ( COUNT ( ?o ) AS ?r ) WHERE { { { ?o rdf:type ontology:concerto } UNION { ?o rdf:type ontology:theatrical_genre } } . ?o property:instrumentation resource:trumpet } } . FILTER ( ?m > ?r ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q669358
P825
Q502895
USER
What is Violin Sonata No. 5 dedicated to ?
(Q669358,P825,c(Q502895))
action filter_type
action find
entity Q669358
relation P825
type Q502895
['Q669358', 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q669358 property:P825 ?c . ?c 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 ?c WHERE { resource:Violin_Sonata_No._5 property:dedicated_to ?c . ?c rdf:type ontology:common_name }
[]
common name
Q1948037
SYSTEM
Moritz Reichsgraf von Fries
Q1948037
(Q669358,P825,c(Q502895))
action filter_type
action find
entity Q669358
relation P825
type Q502895
Violin Sonata No. 5 is dedicated to [ANSWER] to
['Q669358', 'P825', {'concept': 'Q502895'}]
SELECT DISTINCT ?c WHERE { resource:Q669358 property:P825 ?c . ?c rdf:type ontology:Q502895 }
Moritz Reichsgraf von Fries
Violin Sonata No. 5 is dedicated to Moritz Reichsgraf von Fries to
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 ?c WHERE { resource:Violin_Sonata_No._5 property:dedicated_to ?c . ?c rdf:type ontology:common_name }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q669358
P86
Q502895
USER
Which person composed Violin Sonata No. 5 ?
(Q669358,P86,c(Q502895))
action filter_type
action find
entity Q669358
relation P86
type Q502895
['Q669358', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q669358 property:P86 ?k . ?k rdf:type ontology:Q502895 }
Violin Sonata No. 5
action filter_type
action find
entity Violin Sonata No. 5
relation composer
type common name
['Violin Sonata No. 5', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Violin_Sonata_No._5 property:composer ?k . ?k rdf:type ontology:common_name }
[]
common name
Q255
SYSTEM
Ludwig van Beethoven
Q255
(Q669358,P86,c(Q502895))
action filter_type
action find
entity Q669358
relation P86
type Q502895
[ANSWER] composed Violin Sonata No. 5
['Q669358', 'P86', {'concept': 'Q502895'}]
SELECT DISTINCT ?k WHERE { resource:Q669358 property:P86 ?k . ?k rdf:type ontology:Q502895 }
Ludwig van Beethoven
Ludwig van Beethoven composed Violin Sonata No. 5
Ludwig van Beethoven
action filter_type
action find
entity Violin Sonata No. 5
relation composer
type common name
['Violin Sonata No. 5', 'composer', {'concept': 'common name'}]
SELECT DISTINCT ?k WHERE { resource:Violin_Sonata_No._5 property:composer ?k . ?k rdf:type ontology:common_name }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q255
P119
Q43229
USER
Which organization is the tomb of that person ?
(Q255,P119,c(Q43229))
action filter_type
action find
entity Q255
relation P119
type Q43229
['Q255', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?r WHERE { resource:Q255 property:P119 ?r . ?r rdf:type ontology:Q43229 }
Ludwig van Beethoven
action filter_type
action find
entity Ludwig van Beethoven
relation place of burial
type organization
['Ludwig van Beethoven', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?r WHERE { resource:Ludwig_van_Beethoven property:place_of_burial ?r . ?r rdf:type ontology:organization }
[]
organization
Q240744
SYSTEM
Zentralfriedhof
Q240744
(Q255,P119,c(Q43229))
action filter_type
action find
entity Q255
relation P119
type Q43229
[ANSWER] is the tomb of that person
['Q255', 'P119', {'concept': 'Q43229'}]
SELECT DISTINCT ?r WHERE { resource:Q255 property:P119 ?r . ?r rdf:type ontology:Q43229 }
Zentralfriedhof
Zentralfriedhof is the tomb of that person
Zentralfriedhof
action filter_type
action find
entity Ludwig van Beethoven
relation place of burial
type organization
['Ludwig van Beethoven', 'place of burial', {'concept': 'organization'}]
SELECT DISTINCT ?r WHERE { resource:Ludwig_van_Beethoven property:place_of_burial ?r . ?r rdf:type ontology:organization }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q80019
P180
Q34379 Q838948 Q340169
USER
How many musical instruments are expressed in approximately the same number of works of art or medias as double bass ?
(c(Q838948)|c(Q340169),P180,c(Q34379))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q34379
type Q838948
action find_reverse_tuple_counts
relation P180
type Q34379
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q80019
relation P180
type Q838948
type Q340169
[[{'concept': 'Q838948'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { ?o property:P180 resource:Q80019 . { ?o rdf:type ?i . VALUES ( ?i ) { ( ontology:Q838948 ) ( ontology:Q340169 ) } } } } . FILTER ( ?q = ?y ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) ?r WHERE { { ?r rdf:type ontology:Q34379 . ?j rdf:type ontology:Q838948 . ?j property:P180 ?r } UNION { ?j property:P180 ?r . ?r rdf:type ontology:Q34379 . ?j rdf:type ontology:Q340169 } } GROUP BY ?r } }
double bass
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type musical instrument
type work of art
action find_reverse_tuple_counts
relation depicts
type musical instrument
type media
action count
action filter_multi_types
action find_reverse
entity double bass
relation depicts
type work of art
type media
[[{'concept': 'work of art'}, {'concept': 'media'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { ?o property:depicts resource:double_bass . { ?o rdf:type ?i . VALUES ( ?i ) { ( ontology:work_of_art ) ( ontology:media ) } } } } . FILTER ( ?q = ?y ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) ?r WHERE { { ?r rdf:type ontology:musical_instrument . ?j rdf:type ontology:work_of_art . ?j property:depicts ?r } UNION { ?j property:depicts ?r . ?r rdf:type ontology:musical_instrument . ?j rdf:type ontology:media } } GROUP BY ?r } }
[]
musical instrument work of art media
SYSTEM
18
Q8371 Q3382191 Q5994 Q7933058 Q81982 Q190172 Q218547 Q8338 Q1444 Q173453 Q1148709 Q1141589 Q426948 Q871633 Q3500690 Q80019 Q11404 Q1798603
(c(Q838948)|c(Q340169),P180,c(Q34379))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q34379
type Q838948
action find_reverse_tuple_counts
relation P180
type Q34379
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q80019
relation P180
type Q838948
type Q340169
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { ?o property:P180 resource:Q80019 . { ?o rdf:type ?i . VALUES ( ?i ) { ( ontology:Q838948 ) ( ontology:Q340169 ) } } } } . FILTER ( ?q = ?y ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) ?r WHERE { { ?r rdf:type ontology:Q34379 . ?j rdf:type ontology:Q838948 . ?j property:P180 ?r } UNION { ?j property:P180 ?r . ?r rdf:type ontology:Q34379 . ?j rdf:type ontology:Q340169 } } GROUP BY ?r } }
cello upright piano piano Viola caipira harpsichord cymbal Sigismund Bell trumpet organ wind instrument grand piano Crotales sistrum Handbell Church bell double bass drum string instrument
18
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type musical instrument
type work of art
action find_reverse_tuple_counts
relation depicts
type musical instrument
type media
action count
action filter_multi_types
action find_reverse
entity double bass
relation depicts
type work of art
type media
[[{'concept': 'work of art'}, {'concept': 'media'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?v ) WHERE { { SELECT DISTINCT ( COUNT ( ?o ) AS ?y ) WHERE { ?o property:depicts resource:double_bass . { ?o rdf:type ?i . VALUES ( ?i ) { ( ontology:work_of_art ) ( ontology:media ) } } } } . FILTER ( ?q = ?y ) . { SELECT DISTINCT ( COUNT ( ?j ) AS ?q ) ?r WHERE { { ?r rdf:type ontology:musical_instrument . ?j rdf:type ontology:work_of_art . ?j property:depicts ?r } UNION { ?j property:depicts ?r . ?r rdf:type ontology:musical_instrument . ?j rdf:type ontology:media } } GROUP BY ?r } }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q426948
P180
Q34379 Q838948 Q340169
USER
And what about sistrum?
(c(Q838948)|c(Q340169),P180,c(Q34379))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q34379
type Q838948
action find_reverse_tuple_counts
relation P180
type Q34379
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q426948
relation P180
type Q838948
type Q340169
[[{'concept': 'Q838948'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?f ) WHERE { VALUES ( ?e ) { ( ontology:Q838948 ) ( ontology:Q340169 ) } . ?z rdf:type ?e } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { ?s property:P180 resource:Q426948 . { ?s rdf:type ?c . VALUES ( ?c ) { ( ontology:Q838948 ) ( ontology:Q340169 ) } } } } . FILTER ( ?f = ?b ) }
sistrum
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type musical instrument
type work of art
action find_reverse_tuple_counts
relation depicts
type musical instrument
type media
action count
action filter_multi_types
action find_reverse
entity sistrum
relation depicts
type work of art
type media
[[{'concept': 'work of art'}, {'concept': 'media'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?f ) WHERE { VALUES ( ?e ) { ( ontology:work_of_art ) ( ontology:media ) } . ?z rdf:type ?e } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { ?s property:depicts resource:sistrum . { ?s rdf:type ?c . VALUES ( ?c ) { ( ontology:work_of_art ) ( ontology:media ) } } } } . FILTER ( ?f = ?b ) }
[]
musical instrument work of art media
SYSTEM
18
Q8371 Q3382191 Q5994 Q7933058 Q81982 Q190172 Q218547 Q8338 Q1444 Q173453 Q1148709 Q1141589 Q426948 Q871633 Q3500690 Q80019 Q11404 Q1798603
(c(Q838948)|c(Q340169),P180,c(Q34379))
action count
action approx
action union
action find_reverse_tuple_counts
relation P180
type Q34379
type Q838948
action find_reverse_tuple_counts
relation P180
type Q34379
type Q340169
action count
action filter_multi_types
action find_reverse
entity Q426948
relation P180
type Q838948
type Q340169
[ANSWER]
[[{'concept': 'Q838948'}, {'concept': 'Q340169'}], 'P180', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?f ) WHERE { VALUES ( ?e ) { ( ontology:Q838948 ) ( ontology:Q340169 ) } . ?z rdf:type ?e } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { ?s property:P180 resource:Q426948 . { ?s rdf:type ?c . VALUES ( ?c ) { ( ontology:Q838948 ) ( ontology:Q340169 ) } } } } . FILTER ( ?f = ?b ) }
cello upright piano piano Viola caipira harpsichord cymbal Sigismund Bell trumpet organ wind instrument grand piano Crotales sistrum Handbell Church bell double bass drum string instrument
18
action count
action approx
action union
action find_reverse_tuple_counts
relation depicts
type musical instrument
type work of art
action find_reverse_tuple_counts
relation depicts
type musical instrument
type media
action count
action filter_multi_types
action find_reverse
entity sistrum
relation depicts
type work of art
type media
[[{'concept': 'work of art'}, {'concept': 'media'}], 'depicts', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?j ) AS ?h ) WHERE { { SELECT DISTINCT ?j ( COUNT ( ?z ) AS ?f ) WHERE { VALUES ( ?e ) { ( ontology:work_of_art ) ( ontology:media ) } . ?z rdf:type ?e } GROUP BY ?j } . { SELECT DISTINCT ( COUNT ( ?s ) AS ?b ) WHERE { ?s property:depicts resource:sistrum . { ?s rdf:type ?c . VALUES ( ?c ) { ( ontology:work_of_art ) ( ontology:media ) } } } } . FILTER ( ?f = ?b ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q18545868
P106
Q12737077
USER
What is the job of Shōhei Tsuchiya ?
(Q18545868,P106,c(Q12737077))
action filter_type
action find
entity Q18545868
relation P106
type Q12737077
['Q18545868', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q18545868 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
Shōhei Tsuchiya
action filter_type
action find
entity Shōhei Tsuchiya
relation occupation
type occupation
['Shōhei Tsuchiya', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Shōhei_Tsuchiya property:occupation ?d . ?d rdf:type ontology:occupation }
[]
occupation
Q36834
SYSTEM
composer
Q36834
(Q18545868,P106,c(Q12737077))
action filter_type
action find
entity Q18545868
relation P106
type Q12737077
The job of Shōhei Tsuchiya is a [ANSWER]
['Q18545868', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?d WHERE { resource:Q18545868 property:P106 ?d . ?d rdf:type ontology:Q12737077 }
composer
The job of Shōhei Tsuchiya is a composer
composer
action filter_type
action find
entity Shōhei Tsuchiya
relation occupation
type occupation
['Shōhei Tsuchiya', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?d WHERE { resource:Shōhei_Tsuchiya property:occupation ?d . ?d rdf:type ontology:occupation }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q255
P7
Q502895
USER
Who are Ludwig van Beethoven a brother of ?
(c(Q502895),P7,Q255)
action filter_type
action find
entity Q255
relation P7
type Q502895
[{'concept': 'Q502895'}, 'P7', 'Q255']
SELECT DISTINCT ?x WHERE { resource:Q255 property:P7 ?x . ?x rdf:type ontology:Q502895 }
Ludwig van Beethoven
action filter_type
action find
entity Ludwig van Beethoven
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Ludwig van Beethoven']
SELECT DISTINCT ?x WHERE { resource:Ludwig_van_Beethoven property:brother ?x . ?x rdf:type ontology:common_name }
[]
common name
Q10336787 Q6374627
SYSTEM
Nicolaus Johann van Beethoven, Kaspar Anton Karl van Beethoven
Q10336787 Q6374627
(c(Q502895),P7,Q255)
action filter_type
action find
entity Q255
relation P7
type Q502895
[ANSWERS] are Ludwig van Beethoven a brother of
[{'concept': 'Q502895'}, 'P7', 'Q255']
SELECT DISTINCT ?x WHERE { resource:Q255 property:P7 ?x . ?x rdf:type ontology:Q502895 }
Nicolaus Johann van Beethoven Kaspar Anton Karl van Beethoven
Nicolaus Johann van Beethoven and Kaspar Anton Karl van Beethoven are Ludwig van Beethoven a brother of
Nicolaus Johann van Beethoven Kaspar Anton Karl van Beethoven
action filter_type
action find
entity Ludwig van Beethoven
relation brother
type common name
[{'concept': 'common name'}, 'brother', 'Ludwig van Beethoven']
SELECT DISTINCT ?x WHERE { resource:Ludwig_van_Beethoven property:brother ?x . ?x rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q6374627
P27
Q1048835
USER
Which political territory does that person belong to ?
(Q6374627,P27,c(Q1048835))
action filter_type
action find
entity Q6374627
relation P27
type Q1048835
['Q6374627', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q6374627 property:P27 ?a . ?a rdf:type ontology:Q1048835 }
Kaspar Anton Karl van Beethoven
action filter_type
action find
entity Kaspar Anton Karl van Beethoven
relation country of citizenship
type political territorial entity
['Kaspar Anton Karl van Beethoven', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Kaspar_Anton_Karl_van_Beethoven property:country_of_citizenship ?a . ?a rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Clarification for simple ques.
Q6374627
SYSTEM
Did you mean Kaspar Anton Karl van Beethoven ?
Q10336787 Q6374627
(Q10336787,P27,c(Q1048835)) (Q6374627,P27,c(Q1048835))
[ANSWER]
['Q10336787', 'P27', {'concept': 'Q1048835'}] ['Q6374627', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q6374627 property:P27 ?a . ?a rdf:type ontology:Q1048835 }
Nicolaus Johann van Beethoven Kaspar Anton Karl van Beethoven
Did you mean Kaspar Anton Karl van Beethoven ?
Kaspar Anton Karl van Beethoven
['Nicolaus Johann van Beethoven', 'country of citizenship', {'concept': 'political territorial entity'}] ['Kaspar Anton Karl van Beethoven', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Kaspar_Anton_Karl_van_Beethoven property:country_of_citizenship ?a . ?a rdf:type ontology:political_territorial_entity }
[]
Simple Question (Coreferenced)
USER
Yes
(Q6374627,P27,c(Q1048835))
['Q6374627', 'P27', {'concept': 'Q1048835'}]
['Kaspar Anton Karl van Beethoven', 'country of citizenship', {'concept': 'political territorial entity'}]
[]
Q183
SYSTEM
Germany
Q183
(Q6374627,P27,c(Q1048835))
action filter_type
action find
entity Q6374627
relation P27
type Q1048835
That person belongs to the [ANSWER]
['Q6374627', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?a WHERE { resource:Q6374627 property:P27 ?a . ?a rdf:type ontology:Q1048835 }
Germany
That person belongs to the Germany
Germany
action filter_type
action find
entity Kaspar Anton Karl van Beethoven
relation country of citizenship
type political territorial entity
['Kaspar Anton Karl van Beethoven', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?a WHERE { resource:Kaspar_Anton_Karl_van_Beethoven property:country_of_citizenship ?a . ?a rdf:type ontology:political_territorial_entity }
[]