Question: How many different miniseries were published after the year 2000 or have a duration that is not 6 months?
Choices:
10
11
12
13
14
15
16
17
18
19
Answer: 15
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "miniseries" .  { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 2000 ) .  } UNION { ?e <duration> ?pv . ?pv <pred:unit> "month" . ?pv <pred:value> ?v . FILTER ( ?v != "6"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
2000
>
function: FilterConcept
dependencies: 1
inputs: miniseries
function: FindAll
function: FilterNum
dependencies: 3
inputs: duration
6 month
!=
function: FilterConcept
dependencies: 4
inputs: miniseries
function: Or
dependencies: 2
5
function: Count
dependencies: 6