Question: Which city in or along the Indian Ocean had the most inhabitants?
Choices:
Chihuahua
Victoria
Santo Domingo
Kingston
Cork
Bergen
Colombo
Abidjan
Kilkenny
Mogadishu
Program:
function: Find
inputs: Indian 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: population
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> "Indian Ocean" .  ?e <population> ?pv . ?pv <pred:value> ?v .  } ORDER BY DESC(?v) LIMIT 1
Answer: Mogadishu