Question: How many sound that is the genre of James Brown (the one that died from pneumonia) or that has glam metal as a part?
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> "sound" .  { ?e_1 <genre> ?e . ?e_1 <pred:name> "James Brown" . ?e_1 <cause_of_death> ?e_2 . ?e_2 <pred:name> "pneumonia" .  } UNION { ?e_1 <part_of> ?e . ?e_1 <pred:name> "glam metal" .  } }
Program:
function: Find
inputs: pneumonia
function: Relate
dependencies: 0
inputs: cause of death
backward
function: Find
inputs: James Brown
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: genre
forward
function: FilterConcept
dependencies: 4
inputs: sound
function: Find
inputs: glam metal
function: Relate
dependencies: 6
inputs: part of
forward
function: FilterConcept
dependencies: 7
inputs: sound
function: Or
dependencies: 5
8
function: Count
dependencies: 9