Question: How many keyboard instruments are classified by Hornbostel-Sachs as 412.132 or are over 2.1 meters tall?
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> "keyboard instrument" .  { ?e <Hornbostel-Sachs_classification> ?pv . ?pv <pred:value> "412.132" .  } UNION { ?e <height> ?pv . ?pv <pred:unit> "metre" . ?pv <pred:value> ?v . FILTER ( ?v > "2.1"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Hornbostel-Sachs classification
412.132
function: FilterConcept
dependencies: 1
inputs: keyboard instrument
function: FindAll
function: FilterNum
dependencies: 3
inputs: height
2.1 metre
>
function: FilterConcept
dependencies: 4
inputs: keyboard instrument
function: Or
dependencies: 2
5
function: Count
dependencies: 6