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