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