Question: Which is higher above sea level, Erfurt or Belo Horizonte?
Choices:
Chihuahua
Abidjan
Erfurt
Santo Domingo
Cork
Kingston
Belo Horizonte
Bergen
Trieste
Dundee
Program:
function: Find
inputs: Erfurt
function: Find
inputs: Belo Horizonte
function: SelectBetween
dependencies: 0
1
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Erfurt" .  } 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