Question: Does the higher elevation belong to the Blue Ridge Mountains or to the Pennine Alps?
Choices:
Bahrain
Himalayas
Cascade Range
Alps
Sierra Nevada
Appalachian Mountains
Pennine Alps
Adirondack Mountains
Pyrenees
Blue Ridge Mountains
Program:
function: Find
inputs: Blue Ridge Mountains
function: Find
inputs: Pennine Alps
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Blue Ridge Mountains" .  } UNION { ?e <pred:name> "Pennine Alps" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Pennine Alps