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