Question: How many animated characters appear in Shrek 2, which features the voice of Rupert Everett ?
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> "animated character" . ?e <present_in_work> ?e_1 . ?e_1 <pred:name> "Shrek 2" . ?e_1 <voice_actor> ?e_2 . ?e_2 <pred:name> "Rupert Everett" .   }
Program:
function: Find
inputs: Rupert Everett
function: Relate
dependencies: 0
inputs: voice actor
backward
function: Find
inputs: Shrek 2
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: present in work
backward
function: FilterConcept
dependencies: 4
inputs: animated character
function: Count
dependencies: 5