Question: Does Lahore or Suzhou have the higher elevation?
Choices:
Dundee
Chihuahua
Suzhou
Kingston
Abidjan
Trieste
Cork
Lahore
Kilkenny
Santo Domingo
Program:
function: Find
inputs: Lahore
function: Find
inputs: Suzhou
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Lahore" .  } UNION { ?e <pred:name> "Suzhou" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Lahore