Question: How many guitars have a Hornbostel-Sachs classification of 321.322 or are the instrument of Billy Ray Cyrus?
Choices:
3
4
5
6
7
8
9
10
11
12
Answer: 3
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "guitar" .  { ?e <Hornbostel-Sachs_classification> ?pv . ?pv <pred:value> "321.322" .  } UNION { ?e_1 <instrument> ?e . ?e_1 <pred:name> "Billy Ray Cyrus" .  } }
Program:
function: FindAll
function: FilterStr
dependencies: 0
inputs: Hornbostel-Sachs classification
321.322
function: FilterConcept
dependencies: 1
inputs: guitar
function: Find
inputs: Billy Ray Cyrus
function: Relate
dependencies: 3
inputs: instrument
forward
function: FilterConcept
dependencies: 4
inputs: guitar
function: Or
dependencies: 2
5
function: Count
dependencies: 6