Question: Which area has lower elevation above sea level. Pietermaritzburg or Stockport (the one whose elevation (above sea level) is 59 metre)?
Choices:
Macclesfield
Wimbledon
Wigan
Colchester
South Shields
Stockport
Royal Tunbridge Wells
Edmonton
Blackburn
Doncaster
Program:
function: Find
inputs: Pietermaritzburg
function: Find
inputs: Stockport
function: FilterNum
dependencies: 1
inputs: elevation above sea level
59 metre
=
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Pietermaritzburg" . } UNION { ?e <pred:name> "Stockport" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "59"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Stockport