Simple Question (Direct)
Simple Question
Q1208856
P1303
Q34379
USER
Which musical instrument does Diana McIntosh know to play ?
(Q1208856,P1303,c(Q34379))
action filter_type
action find
entity Q1208856
relation P1303
type Q34379
['Q1208856', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?i WHERE { resource:Q1208856 property:P1303 ?i . ?i rdf:type ontology:Q34379 }
Diana McIntosh
action filter_type
action find
entity Diana McIntosh
relation instrument
type musical instrument
['Diana McIntosh', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?i WHERE { resource:Diana_McIntosh property:instrument ?i . ?i rdf:type ontology:musical_instrument }
[]
musical instrument
Q5994
SYSTEM
piano
Q5994
(Q1208856,P1303,c(Q34379))
action filter_type
action find
entity Q1208856
relation P1303
type Q34379
Diana McIntosh knows the [ANSWER]
['Q1208856', 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?i WHERE { resource:Q1208856 property:P1303 ?i . ?i rdf:type ontology:Q34379 }
piano
Diana McIntosh knows the piano
piano
action filter_type
action find
entity Diana McIntosh
relation instrument
type musical instrument
['Diana McIntosh', 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?i WHERE { resource:Diana_McIntosh property:instrument ?i . ?i rdf:type ontology:musical_instrument }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1208856
P21
Q290
USER
Which sex does that person possess ?
(Q5994,P21,c(Q290))
action filter_type
action find
entity Q1208856
relation P21
type Q290
['Q5994', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q1208856 property:P21 ?y . ?y rdf:type ontology:Q290 }
Diana McIntosh
action filter_type
action find
entity Diana McIntosh
relation gender
type sex
['piano', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:Diana_McIntosh property:gender ?y . ?y rdf:type ontology:sex }
[]
sex
Q6581072
SYSTEM
female
Q6581072
(Q5994,P21,c(Q290))
action filter_type
action find
entity Q1208856
relation P21
type Q290
That person possesses the [ANSWER]
['Q5994', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?y WHERE { resource:Q1208856 property:P21 ?y . ?y rdf:type ontology:Q290 }
female
That person possesses the female
female
action filter_type
action find
entity Diana McIntosh
relation gender
type sex
['piano', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?y WHERE { resource:Diana_McIntosh property:gender ?y . ?y rdf:type ontology:sex }
[]
Verification (Boolean) (All)
Verification|2 entities, one direct and one indirect, object is indirect
Q6581072 Q48389
P21
Q502895
USER
Is Svetlana Kitova a that sex ?
(Q48389,P21,Q6581072)
action is_in
entity Q6581072
action find
entity Q48389
relation P21
['Q48389', 'P21', 'Q6581072']
ASK WHERE { resource:Q48389 property:P21 resource:Q6581072 }
female Svetlana Kitova
action is_in
entity female
action find
entity Svetlana Kitova
relation gender
['Svetlana Kitova', 'gender', 'female']
ASK WHERE { resource:Svetlana_Kitova property:gender resource:female }
[]
common name
SYSTEM
YES
(Q48389,P21,Q6581072)
action is_in
entity Q6581072
action find
entity Q48389
relation P21
[ANSWER]
['Q48389', 'P21', 'Q6581072']
ASK WHERE { resource:Q48389 property:P21 resource:Q6581072 }
Yes
action is_in
entity female
action find
entity Svetlana Kitova
relation gender
['Svetlana Kitova', 'gender', 'female']
ASK WHERE { resource:Svetlana_Kitova property:gender resource:female }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q189737
P870
Q34379 Q207628 Q188451
USER
How many musical instruments are the instrumentations used in around the same number of musical compositions and music genres as timpani ?
(c(Q207628)|c(Q188451),P870,c(Q34379))
action count
action approx
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q207628
action find_reverse_tuple_counts
relation P870
type Q34379
type Q188451
action count
action filter_multi_types
action find_reverse
entity Q189737
relation P870
type Q207628
type Q188451
[[{'concept': 'Q207628'}, {'concept': 'Q188451'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?l ) WHERE { VALUES ( ?t ) { ( ontology:Q207628 ) ( ontology:Q188451 ) } . ?d rdf:type ?t } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { ?p property:P870 resource:Q189737 . { { ?p rdf:type ontology:Q207628 } UNION { ?p rdf:type ontology:Q188451 } } } } . FILTER ( ?l = ?h ) }
timpani
action count
action approx
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type musical composition
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type music genre
action count
action filter_multi_types
action find_reverse
entity timpani
relation instrumentation
type musical composition
type music genre
[[{'concept': 'musical composition'}, {'concept': 'music genre'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?l ) WHERE { VALUES ( ?t ) { ( ontology:musical_composition ) ( ontology:music_genre ) } . ?d rdf:type ?t } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { ?p property:instrumentation resource:timpani . { { ?p rdf:type ontology:musical_composition } UNION { ?p rdf:type ontology:music_genre } } } } . FILTER ( ?l = ?h ) }
[]
musical instrument musical composition music genre
SYSTEM
16
Q80284 Q8371 Q213461 Q46185 Q845193 Q190172 Q189737 Q626035 Q593995 Q521151 Q8338 Q320341 Q39777 Q11404 Q206987 Q81982
(c(Q207628)|c(Q188451),P870,c(Q34379))
action count
action approx
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q207628
action find_reverse_tuple_counts
relation P870
type Q34379
type Q188451
action count
action filter_multi_types
action find_reverse
entity Q189737
relation P870
type Q207628
type Q188451
[ANSWER]
[[{'concept': 'Q207628'}, {'concept': 'Q188451'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?l ) WHERE { VALUES ( ?t ) { ( ontology:Q207628 ) ( ontology:Q188451 ) } . ?d rdf:type ?t } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { ?p property:P870 resource:Q189737 . { { ?p rdf:type ontology:Q207628 } UNION { ?p rdf:type ontology:Q188451 } } } } . FILTER ( ?l = ?h ) }
viola cello harmonium bass guitar xylorimba cymbal timpani glockenspiel player piano baryton trumpet celesta maraca drum vibraphone harpsichord
16
action count
action approx
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type musical composition
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type music genre
action count
action filter_multi_types
action find_reverse
entity timpani
relation instrumentation
type musical composition
type music genre
[[{'concept': 'musical composition'}, {'concept': 'music genre'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?i ) WHERE { { SELECT DISTINCT ?q ( COUNT ( ?d ) AS ?l ) WHERE { VALUES ( ?t ) { ( ontology:musical_composition ) ( ontology:music_genre ) } . ?d rdf:type ?t } GROUP BY ?q } . { SELECT DISTINCT ( COUNT ( ?p ) AS ?h ) WHERE { ?p property:instrumentation resource:timpani . { { ?p rdf:type ontology:musical_composition } UNION { ?p rdf:type ontology:music_genre } } } } . FILTER ( ?l = ?h ) }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q1208856
P106
Q12737077
USER
What do Diana McIntosh do for a living ?
(Q1208856,P106,c(Q12737077))
action filter_type
action find
entity Q1208856
relation P106
type Q12737077
['Q1208856', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q1208856 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
Diana McIntosh
action filter_type
action find
entity Diana McIntosh
relation occupation
type occupation
['Diana McIntosh', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Diana_McIntosh property:occupation ?f . ?f rdf:type ontology:occupation }
[]
occupation
Q486748 Q1622272 Q36834
SYSTEM
pianist, university teacher, composer
Q486748 Q1622272 Q36834
(Q1208856,P106,c(Q12737077))
action filter_type
action find
entity Q1208856
relation P106
type Q12737077
Diana McIntosh do for a living as [ANSWERS]
['Q1208856', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?f WHERE { resource:Q1208856 property:P106 ?f . ?f rdf:type ontology:Q12737077 }
pianist university teacher composer
Diana McIntosh do for a living as pianist, university teacher and composer
pianist university teacher composer
action filter_type
action find
entity Diana McIntosh
relation occupation
type occupation
['Diana McIntosh', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?f WHERE { resource:Diana_McIntosh property:occupation ?f . ?f rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1208856
P27
Q1048835
USER
Which political territory does that person belong to ?
(Q486748,P27,c(Q1048835)) (Q1622272,P27,c(Q1048835)) (Q36834,P27,c(Q1048835))
action filter_type
action find
entity Q1208856
relation P27
type Q1048835
['Q486748', 'P27', {'concept': 'Q1048835'}] ['Q1622272', 'P27', {'concept': 'Q1048835'}] ['Q36834', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { resource:Q1208856 property:P27 ?h . ?h rdf:type ontology:Q1048835 }
Diana McIntosh
action filter_type
action find
entity Diana McIntosh
relation country of citizenship
type political territorial entity
['pianist', 'country of citizenship', {'concept': 'political territorial entity'}] ['university teacher', 'country of citizenship', {'concept': 'political territorial entity'}] ['composer', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Diana_McIntosh property:country_of_citizenship ?h . ?h rdf:type ontology:political_territorial_entity }
[]
political territorial entity
Q16
SYSTEM
Canada
Q16
(Q486748,P27,c(Q1048835)) (Q1622272,P27,c(Q1048835)) (Q36834,P27,c(Q1048835))
action filter_type
action find
entity Q1208856
relation P27
type Q1048835
That person belongs to the [ANSWER]
['Q486748', 'P27', {'concept': 'Q1048835'}] ['Q1622272', 'P27', {'concept': 'Q1048835'}] ['Q36834', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ?h WHERE { resource:Q1208856 property:P27 ?h . ?h rdf:type ontology:Q1048835 }
Canada
That person belongs to the Canada
Canada
action filter_type
action find
entity Diana McIntosh
relation country of citizenship
type political territorial entity
['pianist', 'country of citizenship', {'concept': 'political territorial entity'}] ['university teacher', 'country of citizenship', {'concept': 'political territorial entity'}] ['composer', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ?h WHERE { resource:Diana_McIntosh property:country_of_citizenship ?h . ?h rdf:type ontology:political_territorial_entity }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type
Q8371
P870
Q34379 Q862597 Q838948
USER
How many musical instruments are used as instrumentation in around the same number of musical forms or works of art as cello ?
(c(Q862597)|c(Q838948),P870,c(Q34379))
action count
action approx
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q862597
action find_reverse_tuple_counts
relation P870
type Q34379
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q8371
relation P870
type Q862597
type Q838948
[[{'concept': 'Q862597'}, {'concept': 'Q838948'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) ?m WHERE { VALUES ( ?e ) { ( ontology:Q838948 ) ( ontology:Q862597 ) } . ?q rdf:type ?e } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?g ) WHERE { ?l property:P870 resource:Q8371 . { { ?l rdf:type ontology:Q862597 } UNION { ?l rdf:type ontology:Q838948 } } } } . FILTER ( ?j = ?g ) }
cello
action count
action approx
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type musical form
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type work of art
action count
action filter_multi_types
action find_reverse
entity cello
relation instrumentation
type musical form
type work of art
[[{'concept': 'musical form'}, {'concept': 'work of art'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) ?m WHERE { VALUES ( ?e ) { ( ontology:work_of_art ) ( ontology:musical_form ) } . ?q rdf:type ?e } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?g ) WHERE { ?l property:instrumentation resource:cello . { { ?l rdf:type ontology:musical_form } UNION { ?l rdf:type ontology:work_of_art } } } } . FILTER ( ?j = ?g ) }
[]
musical instrument musical form work of art
SYSTEM
18
Q80284 Q8371 Q213461 Q46185 Q845193 Q190172 Q189737 Q626035 Q593995 Q521151 Q8338 Q320341 Q1444 Q39777 Q8355 Q11404 Q206987 Q81982
(c(Q862597)|c(Q838948),P870,c(Q34379))
action count
action approx
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q862597
action find_reverse_tuple_counts
relation P870
type Q34379
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q8371
relation P870
type Q862597
type Q838948
[ANSWER]
[[{'concept': 'Q862597'}, {'concept': 'Q838948'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) ?m WHERE { VALUES ( ?e ) { ( ontology:Q838948 ) ( ontology:Q862597 ) } . ?q rdf:type ?e } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?g ) WHERE { ?l property:P870 resource:Q8371 . { { ?l rdf:type ontology:Q862597 } UNION { ?l rdf:type ontology:Q838948 } } } } . FILTER ( ?j = ?g ) }
viola cello harmonium bass guitar xylorimba cymbal timpani glockenspiel player piano baryton trumpet celesta organ maraca violin drum vibraphone harpsichord
18
action count
action approx
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type musical form
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type work of art
action count
action filter_multi_types
action find_reverse
entity cello
relation instrumentation
type musical form
type work of art
[[{'concept': 'musical form'}, {'concept': 'work of art'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?i ) WHERE { { SELECT DISTINCT ( COUNT ( ?q ) AS ?j ) ?m WHERE { VALUES ( ?e ) { ( ontology:work_of_art ) ( ontology:musical_form ) } . ?q rdf:type ?e } GROUP BY ?m } . { SELECT DISTINCT ( COUNT ( ?l ) AS ?g ) WHERE { ?l property:instrumentation resource:cello . { { ?l rdf:type ontology:musical_form } UNION { ?l rdf:type ontology:work_of_art } } } } . FILTER ( ?j = ?g ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Mult. entity type|Incomplete
Q626035
P870
Q34379 Q862597 Q838948
USER
And also tell me about glockenspiel?
(c(Q862597)|c(Q838948),P870,c(Q34379))
action count
action approx
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q862597
action find_reverse_tuple_counts
relation P870
type Q34379
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q626035
relation P870
type Q862597
type Q838948
[[{'concept': 'Q862597'}, {'concept': 'Q838948'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { ?x property:P870 resource:Q626035 . { VALUES ( ?e ) { ( ontology:Q862597 ) ( ontology:Q838948 ) } . ?x rdf:type ?e } } } . FILTER ( ?f = ?i ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) ?m WHERE { { ?r property:P870 ?m . ?r rdf:type ontology:Q862597 . ?m rdf:type ontology:Q34379 } UNION { ?r property:P870 ?m . ?m rdf:type ontology:Q34379 . ?r rdf:type ontology:Q838948 } } GROUP BY ?m } }
glockenspiel
action count
action approx
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type musical form
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type work of art
action count
action filter_multi_types
action find_reverse
entity glockenspiel
relation instrumentation
type musical form
type work of art
[[{'concept': 'musical form'}, {'concept': 'work of art'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { ?x property:instrumentation resource:glockenspiel . { VALUES ( ?e ) { ( ontology:musical_form ) ( ontology:work_of_art ) } . ?x rdf:type ?e } } } . FILTER ( ?f = ?i ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) ?m WHERE { { ?r property:instrumentation ?m . ?r rdf:type ontology:musical_form . ?m rdf:type ontology:musical_instrument } UNION { ?r property:instrumentation ?m . ?m rdf:type ontology:musical_instrument . ?r rdf:type ontology:work_of_art } } GROUP BY ?m } }
[]
musical instrument musical form work of art
SYSTEM
18
Q80284 Q8371 Q213461 Q46185 Q845193 Q190172 Q189737 Q626035 Q593995 Q521151 Q8338 Q320341 Q1444 Q39777 Q8355 Q11404 Q206987 Q81982
(c(Q862597)|c(Q838948),P870,c(Q34379))
action count
action approx
action union
action find_reverse_tuple_counts
relation P870
type Q34379
type Q862597
action find_reverse_tuple_counts
relation P870
type Q34379
type Q838948
action count
action filter_multi_types
action find_reverse
entity Q626035
relation P870
type Q862597
type Q838948
[ANSWER]
[[{'concept': 'Q862597'}, {'concept': 'Q838948'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { ?x property:P870 resource:Q626035 . { VALUES ( ?e ) { ( ontology:Q862597 ) ( ontology:Q838948 ) } . ?x rdf:type ?e } } } . FILTER ( ?f = ?i ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) ?m WHERE { { ?r property:P870 ?m . ?r rdf:type ontology:Q862597 . ?m rdf:type ontology:Q34379 } UNION { ?r property:P870 ?m . ?m rdf:type ontology:Q34379 . ?r rdf:type ontology:Q838948 } } GROUP BY ?m } }
viola cello harmonium bass guitar xylorimba cymbal timpani glockenspiel player piano baryton trumpet celesta organ maraca violin drum vibraphone harpsichord
18
action count
action approx
action union
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type musical form
action find_reverse_tuple_counts
relation instrumentation
type musical instrument
type work of art
action count
action filter_multi_types
action find_reverse
entity glockenspiel
relation instrumentation
type musical form
type work of art
[[{'concept': 'musical form'}, {'concept': 'work of art'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?m ) AS ?j ) WHERE { { SELECT DISTINCT ( COUNT ( ?x ) AS ?i ) WHERE { ?x property:instrumentation resource:glockenspiel . { VALUES ( ?e ) { ( ontology:musical_form ) ( ontology:work_of_art ) } . ?x rdf:type ?e } } } . FILTER ( ?f = ?i ) . { SELECT DISTINCT ( COUNT ( ?r ) AS ?f ) ?m WHERE { { ?r property:instrumentation ?m . ?r rdf:type ontology:musical_form . ?m rdf:type ontology:musical_instrument } UNION { ?r property:instrumentation ?m . ?m rdf:type ontology:musical_instrument . ?r rdf:type ontology:work_of_art } } GROUP BY ?m } }
[]