Question: How many mountain ranges are greater than 330 feet but not equal to 63.1 kilometres?
Choices:
0
1
2
3
4
5
6
7
8
9
Answer: 6
SPARQL: SELECT (COUNT(DISTINCT ?e) AS ?count) WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "mountain range" .  { ?e <length> ?pv . ?pv <pred:unit> "kilometre" . ?pv <pred:value> ?v . FILTER ( ?v != "63.1"^^xsd:double ) .  } UNION { ?e <elevation_above_sea_level> ?pv . ?pv <pred:unit> "foot" . ?pv <pred:value> ?v . FILTER ( ?v > "330"^^xsd:double ) .  } }
Program:
function: FindAll
function: FilterNum
dependencies: 0
inputs: length
63.1 kilometre
!=
function: FilterConcept
dependencies: 1
inputs: mountain range
function: FindAll
function: FilterNum
dependencies: 3
inputs: elevation above sea level
330 foot
>
function: FilterConcept
dependencies: 4
inputs: mountain range
function: Or
dependencies: 2
5
function: Count
dependencies: 6