Question: How many episodes of TV series were originally performed in a year other than 1989 or have a length of 6 months?
Choices: 4
5
6
7
8
9
10
11
12
13
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television series episode" .  { ?e <date_of_first_performance> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1989 ) .  } UNION { ?e <duration> ?pv . ?pv <pred:unit> "month" . ?pv <pred:value> "6"^^xsd:double .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: date of first performance
1989
!=
function: FilterConcept
dependencies: 1
inputs: television series episode
function: FindAll
function: FilterNum
dependencies: 3
inputs: duration
6 month
=
function: FilterConcept
dependencies: 4
inputs: television series episode
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 9