Question: What is the number of short movies that have a duration of under 810 minutes.
Choices:
7
8
9
10
11
12
13
14
15
16
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 < "810"^^xsd:double ) .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: duration
810 minute
<
function: FilterConcept
dependencies: 1
inputs: short film
function: Count
dependencies: 2