Question: How many animated feature-length movies were released earlier than 2006 or have a run-time exceeding 15 weeks?
Choices: 35
36
37
38
39
40
41
42
43
44
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "animated feature film" .  { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 2006 ) .  } UNION { ?e <duration> ?pv . ?pv <pred:unit> "week" . ?pv <pred:value> ?v . FILTER ( ?v > "15"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
2006
<
function: FilterConcept
dependencies: 1
inputs: animated feature film
function: FindAll
function: FilterNum
dependencies: 3
inputs: duration
15 week
>
function: FilterConcept
dependencies: 4
inputs: animated feature film
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 40