Question: How many TV movies have a release year besides 1999 or a run-time other than 1.1 academic terms?
Choices:
119
120
121
122
123
124
125
126
127
128
Answer: 124
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "television film" .  { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v != 1999 ) .  } UNION { ?e <duration> ?pv . ?pv <pred:unit> "academic term" . ?pv <pred:value> ?v . FILTER ( ?v != "1.1"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
1999
!=
function: FilterConcept
dependencies: 1
inputs: television film
function: FindAll
function: FilterNum
dependencies: 3
inputs: duration
1.1 academic term
!=
function: FilterConcept
dependencies: 4
inputs: television film
function: Or
dependencies: 2
5
function: Count
dependencies: 6