Question: Which has greater elevation above sea level, Melbourne whose postal code is 32901 or Spokane?
Choices:
Greenville
Compton
Waukegan
Franklin
Oakland
Columbus
Boulder
Spokane
Melbourne
Lansing
Program:
function: Find
inputs: Melbourne
function: FilterStr
dependencies: 0
inputs: postal code
32901
function: Find
inputs: Spokane
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Melbourne" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "32901" . } UNION { ?e <pred:name> "Spokane" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Spokane