Question: How many classes of instruments are used by a harpsichordist or are the instrument used by Mike Patton?
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> "class of instruments" .  { ?e_1 <uses> ?e . ?e_1 <pred:name> "harpsichordist" .  } UNION { ?e_1 <instrument> ?e . ?e_1 <pred:name> "Mike Patton" .  } }
Program:
function: Find
inputs: harpsichordist
function: Relate
dependencies: 0
inputs: uses
forward
function: FilterConcept
dependencies: 1
inputs: class of instruments
function: Find
inputs: Mike Patton
function: Relate
dependencies: 3
inputs: instrument
forward
function: FilterConcept
dependencies: 4
inputs: class of instruments
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2