Question: Which has higher elevation above sea level, Crete or North Island?
Choices:
Trinidad
Crete
Newfoundland
Cyprus
Puerto Rico
Tasmania
North Island
Maui
Ireland
Hawaii
Program:
function: Find
inputs: Crete
function: Find
inputs: North Island
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Crete" .  } UNION { ?e <pred:name> "North Island" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: North Island