Question: How many animated feature film have a film editor whose name is Michael Kahn (the one that is a film editor of The Color Purple) or contain Winnie the Poor, who was named Edward Winnie-the-Poor Bear at birth ?
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 feature film" .  { ?e <film_editor> ?e_1 . ?e_1 <pred:name> "Michael Kahn" . ?e_2 <film_editor> ?e_1 . ?e_2 <pred:name> "The Color Purple" .  } UNION { ?e_1 <present_in_work> ?e . ?e_1 <pred:name> "Winnie the Pooh" . ?e_1 <birth_name> ?pv . ?pv <pred:value> "Edward Winnie-the-Pooh Bear" .  } }
Program:
function: Find
inputs: The Color Purple
function: Relate
dependencies: 0
inputs: film editor
forward
function: Find
inputs: Michael Kahn
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: film editor
backward
function: FilterConcept
dependencies: 4
inputs: animated feature film
function: Find
inputs: Winnie the Pooh
function: FilterStr
dependencies: 6
inputs: birth name
Edward Winnie-the-Pooh Bear
function: Relate
dependencies: 7
inputs: present in work
forward
function: FilterConcept
dependencies: 8
inputs: animated feature film
function: Or
dependencies: 5
9
function: Count
dependencies: 10