Question: Does the higher elevation relative to sea level belong to Riyadh or to Beirut, twinned administrative body of Marseille?
Choices:
Riga
New Delhi
Moscow
Beirut
Manila
Doha
Sarajevo
Tallinn
Mexico City
Riyadh
Program:
function: Find
inputs: Riyadh
function: Find
inputs: Marseille
function: Relate
dependencies: 1
inputs: twinned administrative body
backward
function: Find
inputs: Beirut
function: And
dependencies: 2
3
function: SelectBetween
dependencies: 0
4
inputs: elevation above sea level
greater
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Riyadh" .  } UNION { ?e <pred:name> "Beirut" . ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Marseille" .   } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Riyadh