Question: How many short films are either titled Niagara Falls or were published before 1968?
Choices: 11
12
13
14
15
16
17
18
19
20
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 < 1968 ) .  } UNION { ?e <title> ?pv . ?pv <pred:value> "Niagara Falls" .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
1968
<
function: FilterConcept
dependencies: 1
inputs: short film
function: FindAll
function: FilterStr
dependencies: 3
inputs: title
Niagara Falls
function: FilterConcept
dependencies: 4
inputs: short film
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 14