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