Question: Which place is at a higher elevation above sea level, Turin or Kathmandu?
Choices:
Bergen
Kathmandu
Kilkenny
Chihuahua
Trieste
Dundee
Santo Domingo
Cork
Turin
Kingston
Program:
function: Find
inputs: Turin
function: Find
inputs: Kathmandu
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Turin" .  } UNION { ?e <pred:name> "Kathmandu" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Kathmandu