Question: How many musical instruments did record producer John Paul Jones play besides the zither?
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> "musical instrument" .  { ?e_1 <different_from> ?e . ?e_1 <pred:name> "zither" .  } UNION { ?e_1 <instrument> ?e . ?e_1 <pred:name> "John Paul Jones" . ?e_1 <occupation> ?e_2 . ?e_2 <pred:name> "record producer" .  } }
Program:
function: Find
inputs: zither
function: Relate
dependencies: 0
inputs: different from
forward
function: FilterConcept
dependencies: 1
inputs: musical instrument
function: Find
inputs: record producer
function: Relate
dependencies: 3
inputs: occupation
backward
function: Find
inputs: John Paul Jones
function: And
dependencies: 4
5
function: Relate
dependencies: 6
inputs: instrument
forward
function: FilterConcept
dependencies: 7
inputs: musical instrument
function: Or
dependencies: 2
8
function: Count
dependencies: 9