Question: Does Wichita (whose postal code is 67230) or Winston-Salem have the higher elevation above sea level?
Choices:
Columbus
Lansing
Boulder
Wichita
Waukegan
New Haven
Winston-Salem
Greenville
Franklin
Oakland
Program:
function: Find
inputs: Wichita
function: FilterStr
dependencies: 0
inputs: postal code
67230
function: Find
inputs: Winston-Salem
function: SelectBetween
dependencies: 1
2
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Wichita" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "67230" . } UNION { ?e <pred:name> "Winston-Salem" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Wichita