Question: Does the Waco of zip codes 76700–76799 or Ames possess a higher elevation?
Choices:
Columbus
Greenville
Franklin
Compton
Oakland
Ames
Lansing
Waukegan
Waco
Boulder
Program:
function: Find
inputs: Waco
function: FilterStr
dependencies: 0
inputs: postal code
76700–76799
function: Find
inputs: Ames
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Waco" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "76700–76799" . } UNION { ?e <pred:name> "Ames" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ames