Question: How many electronic instruments were used by Serj Tankian or are based on a drum kit ?
Choices: 2
3
4
5
6
7
8
9
10
11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "electronic musical instrument" .  { ?e_1 <instrument> ?e . ?e_1 <pred:name> "Serj Tankian" .  } UNION { ?e <based_on> ?e_1 . ?e_1 <pred:name> "drum kit" .  } }
Program:
function: Find
inputs: Serj Tankian
function: Relate
dependencies: 0
inputs: instrument
forward
function: FilterConcept
dependencies: 1
inputs: electronic musical instrument
function: Find
inputs: drum kit
function: Relate
dependencies: 3
inputs: based on
backward
function: FilterConcept
dependencies: 4
inputs: electronic musical instrument
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 3