Question: How many albums derive Tommy distributed by Columbia Pictures?
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> "album" . ?e <derivative_work> ?e_1 . ?e_1 <pred:name> "Tommy" . ?e_1 <distributor> ?e_2 . ?e_2 <pred:name> "Columbia Pictures" .   }
Program:
function: Find
inputs: Columbia Pictures
function: Relate
dependencies: 0
inputs: distributor
backward
function: Find
inputs: Tommy
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: derivative work
backward
function: FilterConcept
dependencies: 4
inputs: album
function: Count
dependencies: 5