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