Question: How many short films have a duration less than 580 minutes long?
Choices:
8
9
10
11
12
13
14
15
16
17
Answer: 11
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "short film" . ?e <duration> ?pv . ?pv <pred:unit> "minute" . ?pv <pred:value> ?v . FILTER ( ?v < "580"^^xsd:double ) .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: duration
580 minute
<
function: FilterConcept
dependencies: 1
inputs: short film
function: Count
dependencies: 2