Question: How many musicians are the occupation of Alice Cooper (who has the record label Warner Music Group)?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 1
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "musician" . ?e_1 <occupation> ?e . ?e_1 <pred:name> "Alice Cooper" . ?e_1 <record_label> ?e_2 . ?e_2 <pred:name> "Warner Music Group" .   }
Program:
function: Find
inputs: Warner Music Group
function: Relate
dependencies: 0
inputs: record label
backward
function: Find
inputs: Alice Cooper
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: occupation
forward
function: FilterConcept
dependencies: 4
inputs: musician
function: Count
dependencies: 5