Question: How many bowed string instruments were used by Stuart Duncan or comprise the part of a banjo >
Choices: 1
2
3
4
5
6
7
8
9
10
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "bowed string instrument" .  { ?e_1 <instrument> ?e . ?e_1 <pred:name> "Stuart Duncan" .  } UNION { ?e_1 <has_parts_of_the_class> ?e . ?e_1 <pred:name> "banjo" .  } }
Program:
function: Find
inputs: Stuart Duncan
function: Relate
dependencies: 0
inputs: instrument
forward
function: FilterConcept
dependencies: 1
inputs: bowed string instrument
function: Find
inputs: banjo
function: Relate
dependencies: 3
inputs: has parts of the class
forward
function: FilterConcept
dependencies: 4
inputs: bowed string instrument
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 1