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