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