Question: Does Olympia, at zip code 98599, or Wheaton have the lower elevation?
Choices:
Greenville
Compton
Oakland
Waukegan
Columbus
Boulder
Wheaton
New Haven
Olympia
Lansing
Program:
function: Find
inputs: Olympia
function: FilterStr
dependencies: 0
inputs: postal code
98599
function: Find
inputs: Wheaton
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
less
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Olympia" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "98599" . } UNION { ?e <pred:name> "Wheaton" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Olympia