Question: What's the number of silent films that are shorter than 740 minutes long?
Choices:
6
7
8
9
10
11
12
13
14
15
Answer: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "silent film" . ?e <duration> ?pv . ?pv <pred:unit> "minute" . ?pv <pred:value> ?v . FILTER ( ?v != "740"^^xsd:double ) .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: duration
740 minute
!=
function: FilterConcept
dependencies: 1
inputs: silent film
function: Count
dependencies: 2