Question: Which capital has the highest elevation above sea level and uses the Turkish language?
Choices:
Doha
Mexico City
Lausanne
Tallinn
Manila
Sarajevo
Riga
Istanbul
New Delhi
Ankara
Program:
function: Find
inputs: Turkish
function: Relate
dependencies: 0
inputs: official language
backward
function: FilterConcept
dependencies: 1
inputs: capital
function: SelectAmong
dependencies: 2
inputs: elevation above sea level
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "capital" . ?e <official_language> ?e_1 . ?e_1 <pred:name> "Turkish" .  ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Ankara