Question: Of capitals that are twinned administrative bodies of Lisbon, which is twinned to Santo Domingo, which has the highest elevation?
Choices: Moscow
Doha
Mexico City
Lausanne
Riga
New Delhi
Budapest
Tunis
Manila
Sarajevo
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "capital" . ?e_1 <twinned_administrative_body> ?e . ?e_1 <pred:name> "Lisbon" . ?e_2 <twinned_administrative_body> ?e_1 . ?e_2 <pred:name> "Santo Domingo" .  ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Program:
function: Find
inputs: Santo Domingo
function: Relate
dependencies: 0
inputs: twinned administrative body
forward
function: Find
inputs: Lisbon
function: And
dependencies: 1
2
function: Relate
dependencies: 3
inputs: twinned administrative body
forward
function: FilterConcept
dependencies: 4
inputs: capital
function: SelectAmong
dependencies: 5
inputs: elevation above sea level
largest
Answer: Mexico City