Question: How many television series are there that began before 2005 or that have exactly 30 seasons?
Choices: 205
206
207
208
209
210
211
212
213
214
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television series" .  { ?e <start_time> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 2005 ) .  } UNION { ?e <number_of_seasons> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> "30"^^xsd:double .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: start time
2005
<
function: FilterConcept
dependencies: 1
inputs: television series
function: FindAll
function: FilterNum
dependencies: 3
inputs: number of seasons
30
=
function: FilterConcept
dependencies: 4
inputs: television series
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 214