Question: How many islands cover the area of less than 250,000 square km ?
Choices:
31
32
33
34
35
36
37
38
39
40
Answer: 32
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "island" . ?e <area> ?pv . ?pv <pred:unit> "square kilometre" . ?pv <pred:value> ?v . FILTER ( ?v < "250000"^^xsd:double ) .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: area
250000 square kilometre
<
function: FilterConcept
dependencies: 1
inputs: island
function: Count
dependencies: 2