SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/property/inflow> <http://dbpedia.org/resource/Sea_of_Marmara> . ?x <http://dbpedia.org/property/cities> ?uri . ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Sea>}
What cities are around the sea which flows into Marmara?
SELECT DISTINCT ?p WHERE { ?k rdf:type ontology:Sea . ?k property:inflow resource:Sea_of_Marmara . ?k property:cities ?p }
Alexandria, Algiers, Athens, Barcelona, Carthage, Rome, Beirut, Dubrovnik, Tel Aviv, Tripoli, Tunis, Ä°zmir, Tangier
The cities around the sea which flows into Marmara are [Alexandria, Algiers, Athens, Barcelona, Carthage, Rome, Beirut, Dubrovnik, Tel Aviv, Tripoli, Tunis, Ä°zmir, Tangier].
Cities flowing into the Marmara Sea: Alexandria, Algiers, Athens, Barcelona, Carthage, Rome, Route, Dubrovnik, Tel Aviv, Tripoli, Tunis, Izmir, Tangier.