Simple Question (Direct)
Simple Question
Q854986
P106
Q12737077
USER
What does Dorina Böczögő do for a living ?
(Q854986,P106,c(Q12737077))
action filter_type
action find
entity Q854986
relation P106
type Q12737077
['Q854986', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q854986 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
Dorina Böczögő
action filter_type
action find
entity Dorina Böczögő
relation occupation
type occupation
['Dorina Böczögő', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Dorina_Böczögő property:occupation ?k . ?k rdf:type ontology:occupation }
[]
occupation
Q13381572
SYSTEM
artistic gymnast
Q13381572
(Q854986,P106,c(Q12737077))
action filter_type
action find
entity Q854986
relation P106
type Q12737077
Dorina Böczögő does an [ANSWER] for a living
['Q854986', 'P106', {'concept': 'Q12737077'}]
SELECT DISTINCT ?k WHERE { resource:Q854986 property:P106 ?k . ?k rdf:type ontology:Q12737077 }
artistic gymnast
Dorina Böczögő does an artistic gymnast for a living
artistic gymnast
action filter_type
action find
entity Dorina Böczögő
relation occupation
type occupation
['Dorina Böczögő', 'occupation', {'concept': 'occupation'}]
SELECT DISTINCT ?k WHERE { resource:Dorina_Böczögő property:occupation ?k . ?k rdf:type ontology:occupation }
[]
Simple Question (Coreferenced)
Simple Question|Single Entity|Indirect
Q13381572
P425
Q31629
USER
Which type of sport has that one as thier associated field of occupation ?
(Q13381572,P425,c(Q31629))
action filter_type
action find
entity Q13381572
relation P425
type Q31629
['Q13381572', 'P425', {'concept': 'Q31629'}]
SELECT DISTINCT ?j WHERE { resource:Q13381572 property:P425 ?j . ?j rdf:type ontology:Q31629 }
artistic gymnast
action filter_type
action find
entity artistic gymnast
relation field of this occupation
type type of sport
['artistic gymnast', 'field of this occupation', {'concept': 'type of sport'}]
SELECT DISTINCT ?j WHERE { resource:artistic_gymnast property:field_of_this_occupation ?j . ?j rdf:type ontology:type_of_sport }
[]
type of sport
Q326827
SYSTEM
artistic gymnastics
Q326827
(Q13381572,P425,c(Q31629))
action filter_type
action find
entity Q13381572
relation P425
type Q31629
The [ANSWER] has that one as thier associated field of occupation
['Q13381572', 'P425', {'concept': 'Q31629'}]
SELECT DISTINCT ?j WHERE { resource:Q13381572 property:P425 ?j . ?j rdf:type ontology:Q31629 }
artistic gymnastics
The artistic gymnastics has that one as thier associated field of occupation
artistic gymnastics
action filter_type
action find
entity artistic gymnast
relation field of this occupation
type type of sport
['artistic gymnast', 'field of this occupation', {'concept': 'type of sport'}]
SELECT DISTINCT ?j WHERE { resource:artistic_gymnast property:field_of_this_occupation ?j . ?j rdf:type ontology:type_of_sport }
[]
Simple Question (Ellipsis)
only subject is changed, parent and predicate remains same
Q13581129
Q31629
USER
And also tell me about orienteer?
(Q13581129,P425,c(Q31629))
action filter_type
action find
entity Q13581129
relation P425
type Q31629
['Q13581129', 'P425', {'concept': 'Q31629'}]
SELECT DISTINCT ?p WHERE { resource:Q13581129 property:P425 ?p . ?p rdf:type ontology:Q31629 }
orienteer
action filter_type
action find
entity orienteer
relation field of this occupation
type type of sport
['orienteer', 'field of this occupation', {'concept': 'type of sport'}]
SELECT DISTINCT ?p WHERE { resource:orienteer property:field_of_this_occupation ?p . ?p rdf:type ontology:type_of_sport }
[]
type of sport
Q29358
SYSTEM
orienteering
Q29358
(Q13581129,P425,c(Q31629))
action filter_type
action find
entity Q13581129
relation P425
type Q31629
[ANSWER]
['Q13581129', 'P425', {'concept': 'Q31629'}]
SELECT DISTINCT ?p WHERE { resource:Q13581129 property:P425 ?p . ?p rdf:type ontology:Q31629 }
orienteering
orienteering
action filter_type
action find
entity orienteer
relation field of this occupation
type type of sport
['orienteer', 'field of this occupation', {'concept': 'type of sport'}]
SELECT DISTINCT ?p WHERE { resource:orienteer property:field_of_this_occupation ?p . ?p rdf:type ontology:type_of_sport }
[]
Simple Question (Direct)
Simple Question|Single Entity
Q326827
P2416
Q502895
USER
Which people participated in artistic gymnastics ?
(c(Q502895),P2416,Q326827)
action filter_type
action find_reverse
entity Q326827
relation P2416
type Q502895
[{'concept': 'Q502895'}, 'P2416', 'Q326827']
SELECT DISTINCT ?o WHERE { ?o property:P2416 resource:Q326827 . ?o rdf:type ontology:Q502895 }
artistic gymnastics
action filter_type
action find_reverse
entity artistic gymnastics
relation sports discipline competed in
type common name
[{'concept': 'common name'}, 'sports discipline competed in', 'artistic gymnastics']
SELECT DISTINCT ?o WHERE { ?o property:sports_discipline_competed_in resource:artistic_gymnastics . ?o rdf:type ontology:common_name }
[]
common name
Q241847 Q4805307 Q390877
SYSTEM
McKayla Maroney, Ashleigh Brennan, Agata Karczmarek
Q241847 Q4805307 Q390877
(c(Q502895),P2416,Q326827)
action filter_type
action find_reverse
entity Q326827
relation P2416
type Q502895
[ANSWERS] participated in artistic gymnastics
[{'concept': 'Q502895'}, 'P2416', 'Q326827']
SELECT DISTINCT ?o WHERE { ?o property:P2416 resource:Q326827 . ?o rdf:type ontology:Q502895 }
McKayla Maroney Ashleigh Brennan Agata Karczmarek
McKayla Maroney, Ashleigh Brennan and Agata Karczmarek participated in artistic gymnastics
McKayla Maroney Ashleigh Brennan Agata Karczmarek
action filter_type
action find_reverse
entity artistic gymnastics
relation sports discipline competed in
type common name
[{'concept': 'common name'}, 'sports discipline competed in', 'artistic gymnastics']
SELECT DISTINCT ?o WHERE { ?o property:sports_discipline_competed_in resource:artistic_gymnastics . ?o rdf:type ontology:common_name }
[]
Clarification
Simple Question|Single Entity|Indirect
Q241847
P1344
Q16510064
USER
Which sporting event did that person compete in ?
(Q241847,P1344,c(Q16510064))
action filter_type
action find
entity Q241847
relation P1344
type Q16510064
['Q241847', 'P1344', {'concept': 'Q16510064'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q16510064 . resource:Q241847 property:P1344 ?f }
McKayla Maroney
action filter_type
action find
entity McKayla Maroney
relation participant of
type sporting event
['McKayla Maroney', 'participant of', {'concept': 'sporting event'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:sporting_event . resource:McKayla_Maroney property:participant_of ?f }
[]
sporting event
Clarification for simple ques.
Q4805307
SYSTEM
Did you mean Ashleigh Brennan ?
Q241847 Q4805307 Q390877
(Q241847,P1344,c(Q16510064)) (Q4805307,P1344,c(Q16510064)) (Q390877,P1344,c(Q16510064))
[ANSWER]
['Q241847', 'P1344', {'concept': 'Q16510064'}] ['Q4805307', 'P1344', {'concept': 'Q16510064'}] ['Q390877', 'P1344', {'concept': 'Q16510064'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q16510064 . resource:Q241847 property:P1344 ?f }
McKayla Maroney Ashleigh Brennan Agata Karczmarek
Did you mean Ashleigh Brennan ?
Ashleigh Brennan
['McKayla Maroney', 'participant of', {'concept': 'sporting event'}] ['Ashleigh Brennan', 'participant of', {'concept': 'sporting event'}] ['Agata Karczmarek', 'participant of', {'concept': 'sporting event'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:sporting_event . resource:McKayla_Maroney property:participant_of ?f }
[]
Simple Question (Coreferenced)
USER
No, I meant McKayla Maroney. Could you tell me the answer for that?
(Q241847,P1344,c(Q16510064))
Q241847
['Q241847', 'P1344', {'concept': 'Q16510064'}]
['McKayla Maroney', 'participant of', {'concept': 'sporting event'}]
[]
Q247544
SYSTEM
Gymnastics at the 2012 Summer Olympics – Women's vault
Q247544
(Q241847,P1344,c(Q16510064))
action filter_type
action find
entity Q241847
relation P1344
type Q16510064
That person competed in [ANSWER]
['Q241847', 'P1344', {'concept': 'Q16510064'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:Q16510064 . resource:Q241847 property:P1344 ?f }
Gymnastics at the 2012 Summer Olympics – Women's vault
That person competed in Gymnastics at the 2012 Summer Olympics – Women's vault
Gymnastics at the 2012 Summer Olympics – Women's vault
action filter_type
action find
entity McKayla Maroney
relation participant of
type sporting event
['McKayla Maroney', 'participant of', {'concept': 'sporting event'}]
SELECT DISTINCT ?f WHERE { ?f rdf:type ontology:sporting_event . resource:McKayla_Maroney property:participant_of ?f }
[]
Verification (Boolean) (All)
Verification|3 entities, 2 direct, 2(direct) are query entities, subject is indirect
Q247544 Q42243 Q145
P17
Q15617994
USER
Is that sporting event located in Marcallo con Casone and United Kingdom ?
(Q247544,P17,Q42243) (Q247544,P17,Q145)
action is_in
entity Q247544
action intersection
action find_reverse
entity Q42243
relation P17
action find_reverse
entity Q145
relation P17
['Q247544', 'P17', 'Q42243'] ['Q247544', 'P17', 'Q145']
ASK WHERE { resource:Q247544 property:P17 resource:Q42243 . resource:Q247544 property:P17 resource:Q145 }
Gymnastics at the 2012 Summer Olympics – Women's vault Marcallo con Casone United Kingdom
action is_in
entity Gymnastics at the 2012 Summer Olympics – Women's vault
action intersection
action find_reverse
entity Marcallo con Casone
relation country
action find_reverse
entity United Kingdom
relation country
["Gymnastics at the 2012 Summer Olympics – Women's vault", 'country', 'Marcallo con Casone'] ["Gymnastics at the 2012 Summer Olympics – Women's vault", 'country', 'United Kingdom']
ASK WHERE { resource:Gymnastics_at_the_2012_Summer_Olympics_–_Women's_vault property:country resource:Marcallo_con_Casone . resource:Gymnastics_at_the_2012_Summer_Olympics_–_Women's_vault property:country resource:United_Kingdom }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q247544,P17,Q42243) (Q247544,P17,Q145)
action is_in
entity Q247544
action intersection
action find_reverse
entity Q42243
relation P17
action find_reverse
entity Q145
relation P17
[ANSWER]
['Q247544', 'P17', 'Q42243'] ['Q247544', 'P17', 'Q145']
ASK WHERE { resource:Q247544 property:P17 resource:Q42243 . resource:Q247544 property:P17 resource:Q145 }
NO and YES respectively
action is_in
entity Gymnastics at the 2012 Summer Olympics – Women's vault
action intersection
action find_reverse
entity Marcallo con Casone
relation country
action find_reverse
entity United Kingdom
relation country
["Gymnastics at the 2012 Summer Olympics – Women's vault", 'country', 'Marcallo con Casone'] ["Gymnastics at the 2012 Summer Olympics – Women's vault", 'country', 'United Kingdom']
ASK WHERE { resource:Gymnastics_at_the_2012_Summer_Olympics_–_Women's_vault property:country resource:Marcallo_con_Casone . resource:Gymnastics_at_the_2012_Summer_Olympics_–_Women's_vault property:country resource:United_Kingdom }
[]
Verification (Boolean) (All)
Verification|3 entities, all direct, 2 are query entities
Q241847 Q288775 Q30
P27
Q15617994
USER
Is McKayla Maroney a native of Giovo and United States of America ?
(Q241847,P27,Q288775) (Q241847,P27,Q30)
action is_in
entity Q241847
action intersection
action find_reverse
entity Q288775
relation P27
action find_reverse
entity Q30
relation P27
['Q241847', 'P27', 'Q288775'] ['Q241847', 'P27', 'Q30']
ASK WHERE { resource:Q241847 property:P27 resource:Q30 . resource:Q241847 property:P27 resource:Q288775 }
McKayla Maroney Giovo United States of America
action is_in
entity McKayla Maroney
action intersection
action find_reverse
entity Giovo
relation country of citizenship
action find_reverse
entity United States of America
relation country of citizenship
['McKayla Maroney', 'country of citizenship', 'Giovo'] ['McKayla Maroney', 'country of citizenship', 'United States of America']
ASK WHERE { resource:McKayla_Maroney property:country_of_citizenship resource:United_States_of_America . resource:McKayla_Maroney property:country_of_citizenship resource:Giovo }
[]
designation for an administrative territorial entity
SYSTEM
NO and YES respectively
(Q241847,P27,Q288775) (Q241847,P27,Q30)
action is_in
entity Q241847
action intersection
action find_reverse
entity Q288775
relation P27
action find_reverse
entity Q30
relation P27
[ANSWER]
['Q241847', 'P27', 'Q288775'] ['Q241847', 'P27', 'Q30']
ASK WHERE { resource:Q241847 property:P27 resource:Q30 . resource:Q241847 property:P27 resource:Q288775 }
NO and YES respectively
action is_in
entity McKayla Maroney
action intersection
action find_reverse
entity Giovo
relation country of citizenship
action find_reverse
entity United States of America
relation country of citizenship
['McKayla Maroney', 'country of citizenship', 'Giovo'] ['McKayla Maroney', 'country of citizenship', 'United States of America']
ASK WHERE { resource:McKayla_Maroney property:country_of_citizenship resource:United_States_of_America . resource:McKayla_Maroney property:country_of_citizenship resource:Giovo }
[]
Quantitative Reasoning (All)
Quantitative|Atleast/ Atmost/ Approx. the same/Equal|Mult. entity type
P941
Q502895 Q2198855 Q6619679
USER
Which people inspired approximately 1 cultural movements or fictional humanoids ?
(c(Q2198855)|c(Q6619679),P941,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q2198855
action find_reverse_tuple_counts
relation P941
type Q502895
type Q6619679
value 1
[[{'concept': 'Q2198855'}, {'concept': 'Q6619679'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?y ) AS ?h ) WHERE { { ?y property:P941 ?n . ?y rdf:type ontology:Q6619679 . ?n rdf:type ontology:Q502895 } UNION { ?n rdf:type ontology:Q502895 . ?y rdf:type ontology:Q2198855 . ?y property:P941 ?n } } GROUP BY ?n } . FILTER ( ?h = 1 ) }
action approx
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type cultural movement
action find_reverse_tuple_counts
relation inspired by
type common name
type fictional humanoid
value 1
[[{'concept': 'cultural movement'}, {'concept': 'fictional humanoid'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?y ) AS ?h ) WHERE { { ?y property:inspired_by ?n . ?y rdf:type ontology:fictional_humanoid . ?n rdf:type ontology:common_name } UNION { ?n rdf:type ontology:common_name . ?y rdf:type ontology:cultural_movement . ?y property:inspired_by ?n } } GROUP BY ?n } . FILTER ( ?h = 1 ) }
[]
common name cultural movement fictional humanoid
Q22686 Q154545 Q334001
SYSTEM
Donald Trump, Léopold Sédar Senghor, Thomas Cole
Q334001 Q154545 Q2907490 Q22686 Q2409128
(c(Q2198855)|c(Q6619679),P941,c(Q502895))
action approx
action union
action find_reverse_tuple_counts
relation P941
type Q502895
type Q2198855
action find_reverse_tuple_counts
relation P941
type Q502895
type Q6619679
value 1
[ANSWERS] inspired approximately 1 cultural movements or fictional humanoids
[[{'concept': 'Q2198855'}, {'concept': 'Q6619679'}], 'P941', {'concept': 'Q502895'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?y ) AS ?h ) WHERE { { ?y property:P941 ?n . ?y rdf:type ontology:Q6619679 . ?n rdf:type ontology:Q502895 } UNION { ?n rdf:type ontology:Q502895 . ?y rdf:type ontology:Q2198855 . ?y property:P941 ?n } } GROUP BY ?n } . FILTER ( ?h = 1 ) }
Thomas Cole Léopold Sédar Senghor Bo Gritz Donald Trump Dušan Popov
Donald Trump, Léopold Sédar Senghor and Thomas Cole inspired approximately 1 cultural movements or fictional humanoids
Donald Trump Léopold Sédar Senghor Thomas Cole
action approx
action union
action find_reverse_tuple_counts
relation inspired by
type common name
type cultural movement
action find_reverse_tuple_counts
relation inspired by
type common name
type fictional humanoid
value 1
[[{'concept': 'cultural movement'}, {'concept': 'fictional humanoid'}], 'inspired by', {'concept': 'common name'}]
SELECT DISTINCT ?n WHERE { { SELECT DISTINCT ?n ( COUNT ( ?y ) AS ?h ) WHERE { { ?y property:inspired_by ?n . ?y rdf:type ontology:fictional_humanoid . ?n rdf:type ontology:common_name } UNION { ?n rdf:type ontology:common_name . ?y rdf:type ontology:cultural_movement . ?y property:inspired_by ?n } } GROUP BY ?n } . FILTER ( ?h = 1 ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type
Q1327500
P1303
Q34379 Q502895
USER
How many musical instruments can less number of people perform with than electronic musical instrument ?
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q1327500
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?t ) AS ?u ) WHERE { ?t property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { ?k property:P1303 resource:Q1327500 . ?k rdf:type ontology:Q502895 } } . FILTER ( ?u < ?z ) }
electronic musical instrument
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity electronic musical instrument
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?t ) AS ?u ) WHERE { ?t property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { ?k property:instrument resource:electronic_musical_instrument . ?k rdf:type ontology:common_name } } . FILTER ( ?u < ?z ) }
[]
musical instrument common name
SYSTEM
3
Q1879664 Q748455 Q173453
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q1327500
relation P1303
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?t ) AS ?u ) WHERE { ?t property:P1303 ?s . ?s rdf:type ontology:Q34379 . ?t rdf:type ontology:Q502895 } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { ?k property:P1303 resource:Q1327500 . ?k rdf:type ontology:Q502895 } } . FILTER ( ?u < ?z ) }
spoon cajón wind instrument
3
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity electronic musical instrument
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?s ) AS ?g ) WHERE { { SELECT DISTINCT ?s ( COUNT ( ?t ) AS ?u ) WHERE { ?t property:instrument ?s . ?s rdf:type ontology:musical_instrument . ?t rdf:type ontology:common_name } GROUP BY ?s } . { SELECT DISTINCT ( COUNT ( ?k ) AS ?z ) WHERE { ?k property:instrument resource:electronic_musical_instrument . ?k rdf:type ontology:common_name } } . FILTER ( ?u < ?z ) }
[]
Comparative Reasoning (Count) (All)
Comparative|Count over More/Less|Single entity type|Incomplete
Q593995
P1303
Q34379 Q502895
USER
And also tell me about player piano?
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q593995
relation P1303
type Q502895
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?u ) WHERE { ?o property:P1303 ?r . ?r rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { ?i rdf:type ontology:Q502895 . ?i property:P1303 resource:Q593995 } } . FILTER ( ?u < ?s ) }
player piano
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity player piano
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?u ) WHERE { ?o property:instrument ?r . ?r rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { ?i rdf:type ontology:common_name . ?i property:instrument resource:player_piano } } . FILTER ( ?u < ?s ) }
[]
musical instrument common name
SYSTEM
3
Q1879664 Q748455 Q173453
(c(Q502895),P1303,c(Q34379))
action count
action less
action find_reverse_tuple_counts
relation P1303
type Q34379
type Q502895
action count
action filter_type
action find_reverse
entity Q593995
relation P1303
type Q502895
[ANSWER]
[{'concept': 'Q502895'}, 'P1303', {'concept': 'Q34379'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?u ) WHERE { ?o property:P1303 ?r . ?r rdf:type ontology:Q34379 . ?o rdf:type ontology:Q502895 } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { ?i rdf:type ontology:Q502895 . ?i property:P1303 resource:Q593995 } } . FILTER ( ?u < ?s ) }
spoon cajón wind instrument
3
action count
action less
action find_reverse_tuple_counts
relation instrument
type musical instrument
type common name
action count
action filter_type
action find_reverse
entity player piano
relation instrument
type common name
[{'concept': 'common name'}, 'instrument', {'concept': 'musical instrument'}]
SELECT DISTINCT ( COUNT ( ?r ) AS ?h ) WHERE { { SELECT DISTINCT ?r ( COUNT ( ?o ) AS ?u ) WHERE { ?o property:instrument ?r . ?r rdf:type ontology:musical_instrument . ?o rdf:type ontology:common_name } GROUP BY ?r } . { SELECT DISTINCT ( COUNT ( ?i ) AS ?s ) WHERE { ?i rdf:type ontology:common_name . ?i property:instrument resource:player_piano } } . FILTER ( ?u < ?s ) }
[]