Question: How many media franchises have less than 4800 episodes or ended after 1995?
Choices: 0
1
2
3
4
5
6
7
8
9
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "media franchise" .  { ?e <number_of_episodes> ?pv . ?pv <pred:unit> "1" . ?pv <pred:value> ?v . FILTER ( ?v < "4800"^^xsd:double ) .  } UNION { ?e <end_time> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1995 ) .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: number of episodes
4800
<
function: FilterConcept
dependencies: 1
inputs: media franchise
function: FindAll
function: FilterYear
dependencies: 3
inputs: end time
1995
>
function: FilterConcept
dependencies: 4
inputs: media franchise
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 2