Question: What is the number of electronic musical instruments with Hornbostel-Sachs classification of 531.1 or that is based on drum kit
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 2
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "electronic musical instrument" .  { ?e <Hornbostel-Sachs_classification> ?pv . ?pv <pred:value> "531.1" .  } UNION { ?e <based_on> ?e_1 . ?e_1 <pred:name> "drum kit" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Hornbostel-Sachs classification
531.1
function: FilterConcept
dependencies: 1
inputs: electronic musical instrument
function: Find
inputs: drum kit
function: Relate
dependencies: 3
inputs: based on
backward
function: FilterConcept
dependencies: 4
inputs: electronic musical instrument
function: Or
dependencies: 2
5
function: Count
dependencies: 6