Question: How many classes of instruments are the instrumentation of The Sorcerer's Apprentice (whose instrumentation is trumpet)?
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 <instrumentation> ?e . ?e_1 <pred:name> "The Sorcerer's Apprentice" . ?e_1 <instrumentation> ?e_2 . ?e_2 <pred:name> "trumpet" .   }
Program:
function: Find
inputs: trumpet
function: Relate
dependencies: 0
inputs: instrumentation
backward
function: Find
inputs: The Sorcerer's Apprentice
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: instrumentation
forward
function: FilterConcept
dependencies: 4
inputs: class of instruments
function: Count
dependencies: 5
Answer: 10