Question: How many animated series did not begin in 2009 or have 5 seasons total?
Choices:
31
32
33
34
35
36
37
38
39
40
Answer: 32
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "animated series" .  { ?e <start_time> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 2009 ) .  } UNION { ?e <number_of_seasons> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "5"^^xsd:double .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: start time
2009
!=
function: FilterConcept
dependencies: 1
inputs: animated series
function: FindAll
function: FilterNum
dependencies: 3
inputs: number of seasons
5
=
function: FilterConcept
dependencies: 4
inputs: animated series
function: Or
dependencies: 2
5
function: Count
dependencies: 6