Question: Does Irvine (postal code 92604) or Walnut Creek possess the higher elevation?
Choices:
Walnut Creek
Greenville
Compton
Waukegan
New Haven
Lansing
Franklin
Irvine
Boulder
Oakland
Program:
function: Find
inputs: Irvine
function: FilterStr
dependencies: 0
inputs: postal code
92604
function: Find
inputs: Walnut Creek
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Irvine" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "92604" . } UNION { ?e <pred:name> "Walnut Creek" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Walnut Creek