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