Question: Which has higher elevation above sea level, Taunton (the one whose elevation (above sea level) is 9 metre) or Decatur (the one whose elevation (above sea level) is 206 metre)?
Choices:
Lansing
Compton
Taunton
Columbus
Boulder
Decatur
Greenville
Franklin
Oakland
New Haven
Answer: Decatur
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Taunton" . ?e <elevation_above_sea_level> ?pv_1 . ?pv_1 <pred:unit> "metre" . ?pv_1 <pred:value> "9"^^xsd:double . } UNION { ?e <pred:name> "Decatur" . ?e <elevation_above_sea_level> ?pv_2 . ?pv_2 <pred:unit> "metre" . ?pv_2 <pred:value> "206"^^xsd:double . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Taunton
function: FilterNum
dependencies: 0
inputs: elevation above sea level
9 metre
=
function: Find
inputs: Decatur
function: FilterNum
dependencies: 2
inputs: elevation above sea level
206 metre
=
function: SelectBetween
dependencies: 1
3
inputs: elevation above sea level
greater