Question: How many silent films were published before 1930 or have a length of less than 14.8 hours?
Choices: 2
3
4
5
6
7
8
9
10
11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "silent film" .  { ?e <publication_date> ?pv . ?pv <pred:year> ?v . FILTER ( ?v < 1930 ) .  } UNION { ?e <duration> ?pv . ?pv <pred:unit> "hour" . ?pv <pred:value> ?v . FILTER ( ?v < "14.8"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterYear
dependencies: 0
inputs: publication date
1930
<
function: FilterConcept
dependencies: 1
inputs: silent film
function: FindAll
function: FilterNum
dependencies: 3
inputs: duration
14.8 hour
<
function: FilterConcept
dependencies: 4
inputs: silent film
function: Or
dependencies: 2
5
function: Count
dependencies: 6
Answer: 6