Question: Between Riverside or the Columbus at zip code 31820, which is higher in elevation?
Choices:
Greenville
Lansing
Compton
Boulder
Waukegan
Columbus
New Haven
Oakland
Riverside
Franklin
Program:
function: Find
inputs: Riverside
function: Find
inputs: Columbus
function: FilterStr
dependencies: 1
inputs: postal code
31820
function: SelectBetween
dependencies: 0
2
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Riverside" . } UNION { ?e <pred:name> "Columbus" . ?e <postal_code> ?pv_1 . ?pv_1 <pred:value> "31820" . } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Riverside