Question: What number of animated movies use Japanese or was published after 1988?
Choices:
30
31
32
33
34
35
36
37
38
39
Answer: 34
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "animated film" .  { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1988 ) .  } UNION { ?e <language_of_work_or_name> ?e_1 . ?e_1 <pred:name> "Japanese" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
1988
>
function: FilterConcept
dependencies: 1
inputs: animated film
function: Find
inputs: Japanese
function: Relate
dependencies: 3
inputs: language of work or name
backward
function: FilterConcept
dependencies: 4
inputs: animated film
function: Or
dependencies: 2
5
function: Count
dependencies: 6