Question: How many studio albums have Metallica (which includes James Hetfield as a part) as a performer?
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> "studio album" . ?e <performer> ?e_1 . ?e_1 <pred:name> "Metallica" . ?e_1 <has_part> ?e_2 . ?e_2 <pred:name> "James Hetfield" .   }
Program:
function: Find
inputs: James Hetfield
function: Relate
dependencies: 0
inputs: has part
backward
function: Find
inputs: Metallica
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: performer
backward
function: FilterConcept
dependencies: 4
inputs: studio album
function: Count
dependencies: 5