Question: what is the number of animated feature films that are written by the person who is the author of John Carter (which has Willem Dafoe as a cast member)
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> "animated feature film" . ?e <after_a_work_by> ?e_1 . ?e_1 <pred:instance_of> ?c_1 . ?c_1 <pred:name> "human" . ?e_2 <after_a_work_by> ?e_1 . ?e_2 <pred:name> "John Carter" . ?e_2 <cast_member> ?e_3 . ?e_3 <pred:name> "Willem Dafoe" .   }
Program:
function: Find
inputs: Willem Dafoe
function: Relate
dependencies: 0
inputs: cast member
backward
function: Find
inputs: John Carter
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: after a work by
forward
function: FilterConcept
dependencies: 4
inputs: human
function: Relate
dependencies: 5
inputs: after a work by
backward
function: FilterConcept
dependencies: 6
inputs: animated feature film
function: Count
dependencies: 7