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