Question: Which city has the largest elevation above sea level that is located in or next to Pacific Ocean?
Choices:
Bergen
Chihuahua
Kingston
Cork
Panama City
Santo Domingo
Abidjan
Suva
Kilkenny
Trieste
Program:
function: Find
inputs: Pacific Ocean
function: Relate
dependencies: 0
inputs: located in or next to body of water
backward
function: FilterConcept
dependencies: 1
inputs: city
function: SelectAmong
dependencies: 2
inputs: elevation above sea level
largest
SPARQL: SELECT ?e WHERE { ?e <pred:instance_of> ?c . ?c <pred:name> "city" . ?e <located_in_or_next_to_body_of_water> ?e_1 . ?e_1 <pred:name> "Pacific Ocean" .  ?e <elevation_above_sea_level> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Panama City