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