Question: How many classes of instruments there are whose Hornbostel-Sachs classification is 111.241 or whose width is not equal to 50 centimeters?
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> "class of instruments" .  { ?e <Hornbostel-Sachs_classification> ?pv . ?pv <pred:value> "111.241" .  } UNION { ?e <width> ?pv . ?pv <pred:unit> "centimetre" . ?pv <pred:value> ?v . FILTER ( ?v != "50"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Hornbostel-Sachs classification
111.241
function: FilterConcept
dependencies: 1
inputs: class of instruments
function: FindAll
function: FilterNum
dependencies: 3
inputs: width
50 centimetre
!=
function: FilterConcept
dependencies: 4
inputs: class of instruments
function: Or
dependencies: 2
5
function: Count
dependencies: 6