Question: How many capitals are there with an above sea level elevation less than 710 metres?
Choices:
37
38
39
40
41
42
43
44
45
46
Answer: 37
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "capital" . ?e <elevation_above_sea_level> ?pv . ?pv <pred:unit> "metre" . ?pv <pred:value> ?v . FILTER ( ?v < "710"^^xsd:double ) .  }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: elevation above sea level
710 metre
<
function: FilterConcept
dependencies: 1
inputs: capital
function: Count
dependencies: 2