Question: How many short films have a publication date before 2008 or after 1929?
Choices:
17
18
19
20
21
22
23
24
25
26
Answer: 19
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "short film" .  { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 2008 ) .  } UNION { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v > 1929 ) .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
2008
<
function: FilterConcept
dependencies: 1
inputs: short film
function: FindAll
function: FilterYear
dependencies: 3
inputs: publication date
1929
>
function: FilterConcept
dependencies: 4
inputs: short film
function: Or
dependencies: 2
5
function: Count
dependencies: 6