Question: How many anime television series there are that are a part of The Little Mermaid (the one whose publication date is 1989) or that were written by Alan Bates (the one that is a cast member of The Rose)?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "anime television series" .  { ?e <part_of> ?e_1 . ?e_1 <pred:name> "The Little Mermaid" . ?e_1 <publication_date> ?pv . ?pv <pred:year> 1989 .  } UNION { ?e <after_a_work_by> ?e_1 . ?e_1 <pred:name> "Alan Bates" . ?e_2 <cast_member> ?e_1 . ?e_2 <pred:name> "The Rose" .  } }
Program:
function: Find
inputs: The Little Mermaid
function: FilterYear
dependencies: 0
inputs: publication date
1989
=
function: Relate
dependencies: 1
inputs: part of
backward
function: FilterConcept
dependencies: 2
inputs: anime television series
function: Find
inputs: The Rose
function: Relate
dependencies: 4
inputs: cast member
forward
function: Find
inputs: Alan Bates
function: And
dependencies: 5
6
function: Relate
dependencies: 7
inputs: after a work by
backward
function: FilterConcept
dependencies: 8
inputs: anime television series
function: Or
dependencies: 3
9
function: Count
dependencies: 10
Answer: 0