Question: Among capitals that are twinned administrative bodies of Yerevan, which one lies the lowest in relation to the sea level ?
Choices:
New Delhi
Minsk
Lausanne
Moscow
Doha
Beirut
Sarajevo
Riga
Mexico City
Kiev
Program:
function: Find
inputs: Yerevan
function: Relate
dependencies: 0
inputs: twinned administrative body
backward
function: FilterConcept
dependencies: 1
inputs: capital
function: SelectAmong
dependencies: 2
inputs: elevation above sea level
smallest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "capital" . ?e <twinned_administrative_body> ?e_1 . ?e_1 <pred:name> "Yerevan" .  ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY ?v LIMIT 1
Answer: Beirut