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