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