Question: Does Newport Beach or Vallejo have higher elevation above sea level?
Choices:
Columbus
Oakland
Vallejo
Greenville
Lansing
Compton
Boulder
Franklin
New Haven
Waukegan
Program:
function: Find
inputs: Newport Beach
function: Find
inputs: Vallejo
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Newport Beach" .  } UNION { ?e <pred:name> "Vallejo" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Vallejo