Question: Which area has higher elevation above sea level, Quito or Nuremberg (the one that is the twinned administrative body of Kharkiv)?
Choices:
Cork
Nuremberg
Abidjan
Kilkenny
Kingston
Quito
Santo Domingo
Dundee
Chihuahua
Bergen
Program:
function: Find
inputs: Quito
function: Find
inputs: Kharkiv
function: Relate
dependencies: 1
inputs: twinned administrative body
backward
function: Find
inputs: Nuremberg
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Quito" .  } UNION { ?e <pred:name> "Nuremberg" . ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Kharkiv" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Quito