Simple Question (Direct)
Simple Question
Q1912371
P463
Q19335303
USER
What was Max Clara a member of ?
(Q1912371,P463,c(Q19335303))
action filter_type
action find
entity Q1912371
relation P463
type Q19335303
['Q1912371', 'P463', {'concept': 'Q19335303'}]
SELECT DISTINCT ?b WHERE { resource:Q1912371 property:P463 ?b . ?b rdf:type ontology:Q19335303 }
Max Clara
action filter_type
action find
entity Max Clara
relation member of
type type of business entity in Germany
['Max Clara', 'member of', {'concept': 'type of business entity in Germany'}]
SELECT DISTINCT ?b WHERE { resource:Max_Clara property:member_of ?b . ?b rdf:type ontology:type_of_business_entity_in_Germany }
[]
type of business entity in Germany
Q543804
SYSTEM
German Academy of Sciences Leopoldina
Q543804
(Q1912371,P463,c(Q19335303))
action filter_type
action find
entity Q1912371
relation P463
type Q19335303
Max Clara was a member of [ANSWER]
['Q1912371', 'P463', {'concept': 'Q19335303'}]
SELECT DISTINCT ?b WHERE { resource:Q1912371 property:P463 ?b . ?b rdf:type ontology:Q19335303 }
German Academy of Sciences Leopoldina
Max Clara was a member of German Academy of Sciences Leopoldina
German Academy of Sciences Leopoldina
action filter_type
action find
entity Max Clara
relation member of
type type of business entity in Germany
['Max Clara', 'member of', {'concept': 'type of business entity in Germany'}]
SELECT DISTINCT ?b WHERE { resource:Max_Clara property:member_of ?b . ?b rdf:type ontology:type_of_business_entity_in_Germany }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q1912371
P106
Q12737077
USER
What are the professions of that person ?
(Q543804,P106,c(Q12737077))
action filter_type
action find
entity Q1912371
relation P106
type Q12737077
['Q543804', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q1912371 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
Max Clara
action filter_type
action find
entity Max Clara
relation occupation
type occupation
['German Academy of Sciences Leopoldina', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Max_Clara property:occupation ?c . ?c rdf:type ontology:occupation }
[]
occupation
Q4002666 Q1622272
SYSTEM
military physician, university teacher
Q4002666 Q1622272
(Q543804,P106,c(Q12737077))
action filter_type
action find
entity Q1912371
relation P106
type Q12737077
The professions of that person are [ANSWERS]
['Q543804', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?c WHERE { resource:Q1912371 property:P106 ?c . ?c rdf:type ontology:Q12737077 }
military physician university teacher
The professions of that person are military physician and university teacher
military physician university teacher
action filter_type
action find
entity Max Clara
relation occupation
type occupation
['German Academy of Sciences Leopoldina', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?c WHERE { resource:Max_Clara property:occupation ?c . ?c rdf:type ontology:occupation }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P169
Q502895 Q2424752 Q46970
USER
Which people are the chief executive officer of around 1 products and airlines ?
(c(Q2424752)|c(Q46970),P169,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P169
type Q502895
type Q2424752
action find_reverse_tuple_counts
relation P169
type Q502895
type Q46970
value 1
[[{'concept': 'Q2424752'}, {'concept': 'Q46970'}], 'P169', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?a ) AS ?l ) WHERE { ?a rdf:type ?b . VALUES ( ?b ) { ( ontology:Q2424752 ) ( ontology:Q46970 ) } } GROUP BY ?i } . FILTER ( ?l = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation chief executive officer
type common name
type product
action find_reverse_tuple_counts
relation chief executive officer
type common name
type airline
value 1
[[{'concept': 'product'}, {'concept': 'airline'}], 'chief executive officer', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?a ) AS ?l ) WHERE { ?a rdf:type ?b . VALUES ( ?b ) { ( ontology:product ) ( ontology:airline ) } } GROUP BY ?i } . FILTER ( ?l = 1 ) }
[]
common name product airline
Q4707007 Q1608491 Q597242
SYSTEM
Alan Joyce, Mike Davis, Michael O'Leary
Q597242 Q4707007 Q5231122 Q5214356 Q1608491 Q6307615 Q6273164
(c(Q2424752)|c(Q46970),P169,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P169
type Q502895
type Q2424752
action find_reverse_tuple_counts
relation P169
type Q502895
type Q46970
value 1
[ANSWERS] are the chief executive officer of around 1 products and airlines
[[{'concept': 'Q2424752'}, {'concept': 'Q46970'}], 'P169', {'concept': 'Q502895'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?a ) AS ?l ) WHERE { ?a rdf:type ?b . VALUES ( ?b ) { ( ontology:Q2424752 ) ( ontology:Q46970 ) } } GROUP BY ?i } . FILTER ( ?l = 1 ) }
Michael O'Leary Alan Joyce David Barger Dan Schulman Mike Davis Julian Stone Jonathan Ornstein
Alan Joyce, Mike Davis and Michael O'Leary are the chief executive officer of around 1 products and airlines
Alan Joyce Mike Davis Michael O'Leary
action approx
action union
action find_reverse_tuple_counts
relation chief executive officer
type common name
type product
action find_reverse_tuple_counts
relation chief executive officer
type common name
type airline
value 1
[[{'concept': 'product'}, {'concept': 'airline'}], 'chief executive officer', {'concept': 'common name'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ?i ( COUNT ( ?a ) AS ?l ) WHERE { ?a rdf:type ?b . VALUES ( ?b ) { ( ontology:product ) ( ontology:airline ) } } GROUP BY ?i } . FILTER ( ?l = 1 ) }
[]
Quantitative Reasoning (Count) (All)
Quantitative|Count|Single entity type
Q1912371
P27
Q1048835
USER
How many political territories are the countries of citizenship of Max Clara ?
(Q1912371,P27,c(Q1048835))
action count
action filter_type
action find
entity Q1912371
relation P27
type Q1048835
['Q1912371', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { resource:Q1912371 property:P27 ?q . ?q rdf:type ontology:Q1048835 }
Max Clara
action count
action filter_type
action find
entity Max Clara
relation country of citizenship
type political territorial entity
['Max Clara', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { resource:Max_Clara property:country_of_citizenship ?q . ?q rdf:type ontology:political_territorial_entity }
[]
political territorial entity
SYSTEM
2
Q183 Q40
(Q1912371,P27,c(Q1048835))
action count
action filter_type
action find
entity Q1912371
relation P27
type Q1048835
[ANSWER]
['Q1912371', 'P27', {'concept': 'Q1048835'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { resource:Q1912371 property:P27 ?q . ?q rdf:type ontology:Q1048835 }
Germany Austria
2
action count
action filter_type
action find
entity Max Clara
relation country of citizenship
type political territorial entity
['Max Clara', 'country of citizenship', {'concept': 'political territorial entity'}]
SELECT DISTINCT ( COUNT ( ?q ) AS ?s ) WHERE { resource:Max_Clara property:country_of_citizenship ?q . ?q rdf:type ontology:political_territorial_entity }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q22006443
P21
Q290
USER
What is the sex of Thomas Lærke ?
(Q22006443,P21,c(Q290))
action filter_type
action find
entity Q22006443
relation P21
type Q290
['Q22006443', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q22006443 property:P21 ?i . ?i rdf:type ontology:Q290 }
Thomas Lærke
action filter_type
action find
entity Thomas Lærke
relation gender
type sex
['Thomas Lærke', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Thomas_Lærke property:gender ?i . ?i rdf:type ontology:sex }
[]
sex
Q6581097
SYSTEM
male
Q6581097
(Q22006443,P21,c(Q290))
action filter_type
action find
entity Q22006443
relation P21
type Q290
The sex of Thomas Lærke is the [ANSWER]
['Q22006443', 'P21', {'concept': 'Q290'}]
SELECT DISTINCT ?i WHERE { resource:Q22006443 property:P21 ?i . ?i rdf:type ontology:Q290 }
male
The sex of Thomas Lærke is the male
male
action filter_type
action find
entity Thomas Lærke
relation gender
type sex
['Thomas Lærke', 'gender', {'concept': 'sex'}]
SELECT DISTINCT ?i WHERE { resource:Thomas_Lærke property:gender ?i . ?i rdf:type ontology:sex }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Single entity type
P1303
Q34379 Q502895
USER
Which musical instruments are played by approximately 3192 people ?
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3192
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?s ) WHERE { ?w rdf:type ontology:Q502895 . ?n rdf:type ontology:Q34379 . ?w property:P1303 ?n } GROUP BY ?n } . FILTER ( ?s = 3192 ) }
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3192
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?s ) WHERE { ?w rdf:type ontology:common_name . ?n rdf:type ontology:musical_instrument . ?w property:instrument ?n } GROUP BY ?n } . FILTER ( ?s = 3192 ) }
[]
musical instrument common name
Q8355 Q1444 Q128309
SYSTEM
violin, organ, drum kit
Q8355 Q1444 Q128309
(c(Q502895),P1303,c(Q34379))
action approx
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
value 3192
[ANSWERS] are played by approximately 3192 people
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?s ) WHERE { ?w rdf:type ontology:Q502895 . ?n rdf:type ontology:Q34379 . ?w property:P1303 ?n } GROUP BY ?n } . FILTER ( ?s = 3192 ) }
violin organ drum kit
Violin, organ and drum kit are played by approximately 3192 people
violin organ drum kit
action approx
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
value 3192
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?w ) AS ?s ) WHERE { ?w rdf:type ontology:common_name . ?n rdf:type ontology:musical_instrument . ?w property:instrument ?n } GROUP BY ?n } . FILTER ( ?s = 3192 ) }
[]
Clarification
Comparative|More/Less|Mult. entity type|Indirect
P870
Q34379 Q862597 Q838948
USER
Which musical instruments were used in the composition of approximately the same number of musical forms and works of art as that musical instrument ?
(c(Q862597)|c(Q838948),P870,c(Q34379))
[[{'concept': 'Q862597'}, {'concept': 'Q838948'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?u ) { ( ?z ) ( ?x ) } . ?u property:Q617028 ?y } . ?z rdf:type ontology:Q862597 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q838948 }
[[{'concept': 'musical form'}, {'concept': 'work of art'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?u ) { ( ?z ) ( ?x ) } . ?u property:instrumentation ?y } . ?z rdf:type ontology:musical_form . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:work_of_art }
[]
musical instrument musical form work of art
Comparative|More/Less|Mult. entity type|Clarification
Q128309
SYSTEM
Did you mean drum kit ?
(c(Q862597)|c(Q838948),P870,c(Q34379))
[ANSWER]
[[{'concept': 'Q862597'}, {'concept': 'Q838948'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?u ) { ( ?z ) ( ?x ) } . ?u property:Q617028 ?y } . ?z rdf:type ontology:Q862597 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q838948 }
Did you mean drum kit ?
drum kit
[[{'concept': 'musical form'}, {'concept': 'work of art'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?y WHERE { { VALUES ( ?u ) { ( ?z ) ( ?x ) } . ?u property:instrumentation ?y } . ?z rdf:type ontology:musical_form . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:work_of_art }
[]
Comparative Reasoning (All)
USER
No, I meant violin. Could you tell me the answer for that?
(c(Q862597)|c(Q838948),P870,c(Q34379))
Q8355
[[{'concept': 'Q862597'}, {'concept': 'Q838948'}], 'P870', {'concept': 'Q34379'}]
[[{'concept': 'musical form'}, {'concept': 'work of art'}], 'instrumentation', {'concept': 'musical instrument'}]
[]
Q521151 Q81982 Q80284
SYSTEM
baryton, harpsichord, viola
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))
[ANSWERS] were used in the composition of approximately the same number of musical forms and works of art as that musical instrument
[[{'concept': 'Q862597'}, {'concept': 'Q838948'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?y WHERE { { { ?z property:Q617028 ?y } UNION { ?x property:Q617028 ?y } } . ?z rdf:type ontology:Q862597 . ?y rdf:type ontology:Q34379 . ?x rdf:type ontology:Q838948 }
viola cello harmonium bass guitar xylorimba cymbal timpani glockenspiel player piano baryton trumpet celesta organ maraca violin drum vibraphone harpsichord
Baryton, harpsichord and viola were used in the composition of approximately the same number of musical forms and works of art as that musical instrument
baryton harpsichord viola
[[{'concept': 'musical form'}, {'concept': 'work of art'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?y WHERE { { { ?z property:instrumentation ?y } UNION { ?x property:instrumentation ?y } } . ?z rdf:type ontology:musical_form . ?y rdf:type ontology:musical_instrument . ?x rdf:type ontology:work_of_art }
[]
Clarification
Simple Question|Single Entity|Indirect
Q80284
P870
Q207628
USER
Which musical composition uses that musical instrument as a musical instrument ?
(c(Q207628),P870,Q80284)
action filter_type
action find_reverse
entity Q80284
relation P870
type Q207628
[{'concept': 'Q207628'}, 'P870', 'Q80284']
SELECT DISTINCT ?j WHERE { ?j property:P870 resource:Q80284 . ?j rdf:type ontology:Q207628 }
viola
action filter_type
action find_reverse
entity viola
relation instrumentation
type musical composition
[{'concept': 'musical composition'}, 'instrumentation', 'viola']
SELECT DISTINCT ?j WHERE { ?j property:instrumentation resource:viola . ?j rdf:type ontology:musical_composition }
[]
musical composition
Clarification for simple ques.
Q521151
SYSTEM
Did you mean baryton ?
Q521151 Q81982 Q80284
(c(Q207628),P870,Q521151) (c(Q207628),P870,Q81982) (c(Q207628),P870,Q80284)
[ANSWER]
[{'concept': 'Q207628'}, 'P870', 'Q521151'] [{'concept': 'Q207628'}, 'P870', 'Q81982'] [{'concept': 'Q207628'}, 'P870', 'Q80284']
SELECT DISTINCT ?j WHERE { ?j property:P870 resource:Q80284 . ?j rdf:type ontology:Q207628 }
baryton harpsichord viola
Did you mean baryton ?
baryton
[{'concept': 'musical composition'}, 'instrumentation', 'baryton'] [{'concept': 'musical composition'}, 'instrumentation', 'harpsichord'] [{'concept': 'musical composition'}, 'instrumentation', 'viola']
SELECT DISTINCT ?j WHERE { ?j property:instrumentation resource:viola . ?j rdf:type ontology:musical_composition }
[]
Simple Question (Coreferenced)
USER
No, I meant viola. Could you tell me the answer for that?
(c(Q207628),P870,Q80284)
Q80284
[{'concept': 'Q207628'}, 'P870', 'Q80284']
[{'concept': 'musical composition'}, 'instrumentation', 'viola']
[]
Q18121432
SYSTEM
Rondo in C minor
Q18121432
(c(Q207628),P870,Q80284)
action filter_type
action find_reverse
entity Q80284
relation P870
type Q207628
The [ANSWER] uses that musical instrument as a musical instrument
[{'concept': 'Q207628'}, 'P870', 'Q80284']
SELECT DISTINCT ?j WHERE { ?j property:P870 resource:Q80284 . ?j rdf:type ontology:Q207628 }
Rondo in C minor
The Rondo in C minor uses that musical instrument as a musical instrument
Rondo in C minor
action filter_type
action find_reverse
entity viola
relation instrumentation
type musical composition
[{'concept': 'musical composition'}, 'instrumentation', 'viola']
SELECT DISTINCT ?j WHERE { ?j property:instrumentation resource:viola . ?j rdf:type ontology:musical_composition }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q18121432 Q81752 Q1372814
P86
Q502895
USER
Is that musical composition composed by Anton Bruckner and Alessandro Juliani ?
(Q18121432,P86,Q81752) (Q18121432,P86,Q1372814)
action is_in
entity Q18121432
action intersection
action find_reverse
entity Q81752
relation P86
action find_reverse
entity Q1372814
relation P86
['Q18121432', 'P86', 'Q81752'] ['Q18121432', 'P86', 'Q1372814']
ASK WHERE { resource:Q18121432 property:P86 resource:Q81752 . resource:Q18121432 property:P86 resource:Q1372814 }
Rondo in C minor Anton Bruckner Alessandro Juliani
action is_in
entity Rondo in C minor
action intersection
action find_reverse
entity Anton Bruckner
relation composer
action find_reverse
entity Alessandro Juliani
relation composer
['Rondo in C minor', 'composer', 'Anton Bruckner'] ['Rondo in C minor', 'composer', 'Alessandro Juliani']
ASK WHERE { resource:Rondo_in_C_minor property:composer resource:Anton_Bruckner . resource:Rondo_in_C_minor property:composer resource:Alessandro_Juliani }
[]
common name
SYSTEM
YES and NO respectively
(Q18121432,P86,Q81752) (Q18121432,P86,Q1372814)
action is_in
entity Q18121432
action intersection
action find_reverse
entity Q81752
relation P86
action find_reverse
entity Q1372814
relation P86
[ANSWER]
['Q18121432', 'P86', 'Q81752'] ['Q18121432', 'P86', 'Q1372814']
ASK WHERE { resource:Q18121432 property:P86 resource:Q81752 . resource:Q18121432 property:P86 resource:Q1372814 }
YES and NO respectively
action is_in
entity Rondo in C minor
action intersection
action find_reverse
entity Anton Bruckner
relation composer
action find_reverse
entity Alessandro Juliani
relation composer
['Rondo in C minor', 'composer', 'Anton Bruckner'] ['Rondo in C minor', 'composer', 'Alessandro Juliani']
ASK WHERE { resource:Rondo_in_C_minor property:composer resource:Anton_Bruckner . resource:Rondo_in_C_minor property:composer resource:Alessandro_Juliani }
[]
Verification (Boolean) (All)
Verification|2 entities, both direct
Q1912371 Q40
P27
Q1048835
USER
Is Max Clara an inhabitant of Austria ?
(Q1912371,P27,Q40)
action is_in
entity Q40
action find
entity Q1912371
relation P27
['Q1912371', 'P27', 'Q40']
ASK WHERE { resource:Q1912371 property:P27 resource:Q40 }
Max Clara Austria
action is_in
entity Austria
action find
entity Max Clara
relation country of citizenship
['Max Clara', 'country of citizenship', 'Austria']
ASK WHERE { resource:Max_Clara property:country_of_citizenship resource:Austria }
[]
political territorial entity
SYSTEM
YES
(Q1912371,P27,Q40)
action is_in
entity Q40
action find
entity Q1912371
relation P27
[ANSWER]
['Q1912371', 'P27', 'Q40']
ASK WHERE { resource:Q1912371 property:P27 resource:Q40 }
Yes
action is_in
entity Austria
action find
entity Max Clara
relation country of citizenship
['Max Clara', 'country of citizenship', 'Austria']
ASK WHERE { resource:Max_Clara property:country_of_citizenship resource:Austria }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type
Q593995
P870
Q34379 Q207628 Q838948
USER
Which musical instruments are the instrumentations used in around the same number of musical compositions or works of art as player piano ?
(c(Q207628)|c(Q838948),P870,c(Q34379))
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 Q838948
action count
action filter_multi_types
action find_reverse
entity Q593995
relation P870
type Q207628
type Q838948
[[{'concept': 'Q207628'}, {'concept': 'Q838948'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?r ) ?c WHERE { { ?h property:P870 ?c . ?c rdf:type ontology:Q34379 . ?h rdf:type ontology:Q207628 } UNION { ?h property:P870 ?c . ?c rdf:type ontology:Q34379 . ?h rdf:type ontology:Q838948 } } GROUP BY ?c } . FILTER ( ?r = ?v ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { { { ?o rdf:type ontology:Q207628 } UNION { ?o rdf:type ontology:Q838948 } } . ?o property:P870 resource:Q593995 } } }
player piano
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 work of art
action count
action filter_multi_types
action find_reverse
entity player piano
relation instrumentation
type musical composition
type work of art
[[{'concept': 'musical composition'}, {'concept': 'work of art'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?r ) ?c WHERE { { ?h property:instrumentation ?c . ?c rdf:type ontology:musical_instrument . ?h rdf:type ontology:musical_composition } UNION { ?h property:instrumentation ?c . ?c rdf:type ontology:musical_instrument . ?h rdf:type ontology:work_of_art } } GROUP BY ?c } . FILTER ( ?r = ?v ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { { { ?o rdf:type ontology:musical_composition } UNION { ?o rdf:type ontology:work_of_art } } . ?o property:instrumentation resource:player_piano } } }
[]
musical instrument musical composition work of art
Q521151 Q81982 Q80284
SYSTEM
baryton, harpsichord, viola
Q80284 Q8371 Q213461 Q46185 Q845193 Q190172 Q189737 Q626035 Q593995 Q521151 Q8338 Q320341 Q39777 Q8355 Q11404 Q206987 Q81982
(c(Q207628)|c(Q838948),P870,c(Q34379))
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 Q838948
action count
action filter_multi_types
action find_reverse
entity Q593995
relation P870
type Q207628
type Q838948
[ANSWERS] are the instrumentations used in around the same number of musical compositions or works of art as player piano
[[{'concept': 'Q207628'}, {'concept': 'Q838948'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?r ) ?c WHERE { { ?h property:P870 ?c . ?c rdf:type ontology:Q34379 . ?h rdf:type ontology:Q207628 } UNION { ?h property:P870 ?c . ?c rdf:type ontology:Q34379 . ?h rdf:type ontology:Q838948 } } GROUP BY ?c } . FILTER ( ?r = ?v ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { { { ?o rdf:type ontology:Q207628 } UNION { ?o rdf:type ontology:Q838948 } } . ?o property:P870 resource:Q593995 } } }
viola cello harmonium bass guitar xylorimba cymbal timpani glockenspiel player piano baryton trumpet celesta maraca violin drum vibraphone harpsichord
Baryton, harpsichord and viola are the instrumentations used in around the same number of musical compositions or works of art as player piano
baryton harpsichord viola
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 work of art
action count
action filter_multi_types
action find_reverse
entity player piano
relation instrumentation
type musical composition
type work of art
[[{'concept': 'musical composition'}, {'concept': 'work of art'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?c WHERE { { SELECT DISTINCT ( COUNT ( ?h ) AS ?r ) ?c WHERE { { ?h property:instrumentation ?c . ?c rdf:type ontology:musical_instrument . ?h rdf:type ontology:musical_composition } UNION { ?h property:instrumentation ?c . ?c rdf:type ontology:musical_instrument . ?h rdf:type ontology:work_of_art } } GROUP BY ?c } . FILTER ( ?r = ?v ) . { SELECT DISTINCT ( COUNT ( ?o ) AS ?v ) WHERE { { { ?o rdf:type ontology:musical_composition } UNION { ?o rdf:type ontology:work_of_art } } . ?o property:instrumentation resource:player_piano } } }
[]
Comparative Reasoning (All)
Comparative|More/Less|Mult. entity type|Incomplete
Q206987
P870
Q34379 Q207628 Q838948
USER
And also tell me about vibraphone?
(c(Q207628)|c(Q838948),P870,c(Q34379))
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 Q838948
action count
action filter_multi_types
action find_reverse
entity Q206987
relation P870
type Q207628
type Q838948
[[{'concept': 'Q207628'}, {'concept': 'Q838948'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { ?d property:P870 resource:Q206987 . { ?d rdf:type ?k . VALUES ( ?k ) { ( ontology:Q207628 ) ( ontology:Q838948 ) } } } } . FILTER ( ?m = ?u ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) ?i WHERE { VALUES ( ?s ) { ( ontology:Q207628 ) ( ontology:Q838948 ) } . ?f rdf:type ?s } GROUP BY ?i } }
vibraphone
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 work of art
action count
action filter_multi_types
action find_reverse
entity vibraphone
relation instrumentation
type musical composition
type work of art
[[{'concept': 'musical composition'}, {'concept': 'work of art'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { ?d property:instrumentation resource:vibraphone . { ?d rdf:type ?k . VALUES ( ?k ) { ( ontology:musical_composition ) ( ontology:work_of_art ) } } } } . FILTER ( ?m = ?u ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) ?i WHERE { VALUES ( ?s ) { ( ontology:musical_composition ) ( ontology:work_of_art ) } . ?f rdf:type ?s } GROUP BY ?i } }
[]
musical instrument musical composition work of art
Q521151 Q81982 Q80284
SYSTEM
baryton, harpsichord, viola
Q80284 Q8371 Q213461 Q46185 Q845193 Q190172 Q189737 Q626035 Q593995 Q521151 Q8338 Q320341 Q39777 Q8355 Q11404 Q206987 Q81982
(c(Q207628)|c(Q838948),P870,c(Q34379))
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 Q838948
action count
action filter_multi_types
action find_reverse
entity Q206987
relation P870
type Q207628
type Q838948
[ANSWERS]
[[{'concept': 'Q207628'}, {'concept': 'Q838948'}], 'P870', {'concept': 'Q34379'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { ?d property:P870 resource:Q206987 . { ?d rdf:type ?k . VALUES ( ?k ) { ( ontology:Q207628 ) ( ontology:Q838948 ) } } } } . FILTER ( ?m = ?u ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) ?i WHERE { VALUES ( ?s ) { ( ontology:Q207628 ) ( ontology:Q838948 ) } . ?f rdf:type ?s } GROUP BY ?i } }
viola cello harmonium bass guitar xylorimba cymbal timpani glockenspiel player piano baryton trumpet celesta maraca violin drum vibraphone harpsichord
baryton harpsichord viola
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 work of art
action count
action filter_multi_types
action find_reverse
entity vibraphone
relation instrumentation
type musical composition
type work of art
[[{'concept': 'musical composition'}, {'concept': 'work of art'}], 'instrumentation', {'concept': 'musical instrument'}]
SELECT DISTINCT ?i WHERE { { SELECT DISTINCT ( COUNT ( ?d ) AS ?u ) WHERE { ?d property:instrumentation resource:vibraphone . { ?d rdf:type ?k . VALUES ( ?k ) { ( ontology:musical_composition ) ( ontology:work_of_art ) } } } } . FILTER ( ?m = ?u ) . { SELECT DISTINCT ( COUNT ( ?f ) AS ?m ) ?i WHERE { VALUES ( ?s ) { ( ontology:musical_composition ) ( ontology:work_of_art ) } . ?f rdf:type ?s } GROUP BY ?i } }
[]