Question: Which one, Beirut (the one that is the twinned administrative body of Buenos Aires) or Istanbul (the one that is the twinned administrative body of Budapest), has less elevation (above sea level)?
Choices:
Manila
New Delhi
Mexico City
Doha
Sarajevo
Beirut
Moscow
Tallinn
Lausanne
Riga
Answer: Beirut
SPARQL: SELECT ?e WHERE { { ?e <pred:name> "Beirut" . ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Buenos Aires" .   } UNION { ?e <pred:name> "Istanbul" . ?e <twinned_administrative_body> ?e_2 . ?e_2 <pred:name> "Budapest" .  } ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Program:
function: Find
inputs: Buenos Aires
function: Relate
dependencies: 0
inputs: twinned administrative body
backward
function: Find
inputs: Beirut
function: And
dependencies: 1
2
function: Find
inputs: Budapest
function: Relate
dependencies: 4
inputs: twinned administrative body
backward
function: Find
inputs: Istanbul
function: And
dependencies: 5
6
function: SelectBetween
dependencies: 3
7
inputs: elevation above sea level
less