Question: How many TV series debuted post-2012 or have over 720 episodes?
Choices:
54
55
56
57
58
59
60
61
62
63
Answer: 57
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television series" .  { ?e <number_of_episodes> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v > "720"^^xsd:double ) .  } UNION { ?e <start_time> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 2012 ) .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: number of episodes
720
>
function: FilterConcept
dependencies: 1
inputs: television series
function: FindAll
function: FilterYear
dependencies: 3
inputs: start time
2012
>
function: FilterConcept
dependencies: 4
inputs: television series
function: Or
dependencies: 2
5
function: Count
dependencies: 6