Question: How many animated characters are either the spouse of Superman as he appears in Batman Beyond or have the birth name of Edward in Winnie the Pooh Bear?
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_1 <spouse> ?e . ?e_1 <pred:name> "Superman" . ?e_1 <present_in_work> ?e_2 . ?e_2 <pred:name> "Batman Beyond" .  } UNION { ?e <birth_name> ?pv . ?pv <pred:value> "Edward Winnie-the-Pooh Bear" .  } }
Program:
function: Find
inputs: Batman Beyond
function: Relate
dependencies: 0
inputs: present in work
backward
function: Find
inputs: Superman
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: spouse
forward
function: FilterConcept
dependencies: 4
inputs: animated character
function: FindAll
function: FilterStr
dependencies: 6
inputs: birth name
Edward Winnie-the-Pooh Bear
function: FilterConcept
dependencies: 7
inputs: animated character
function: Or
dependencies: 5
8
function: Count
dependencies: 9