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