SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/ontology/inflow> <http://dbpedia.org/resource/Atlantic_Ocean> . ?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 are the cities around the sea which flows into the Atlantic?
SELECT DISTINCT ?b WHERE { ?o property:cities ?b . ?o rdf:type ontology:Sea . ?o property:inflow resource:Atlantic_Ocean }
Alexandria, Algiers, Athens, Barcelona, Carthage, Rome, Beirut, Dubrovnik, Tel Aviv, Tripoli, Tunis, Ä°zmir, Tangier
The cities of the seas whose inflow is Atlantic Ocean are [Alexandria, Algiers, Athens, Barcelona, Carthage, Rome, Beirut, Dubrovnik, Tel Aviv, Tripoli, Tunis, Ä°zmir, Tangier].
Cities of the seas flowing into the Atlantic: Alexandria, Algiers, Athens, Barcelona, Carthage, Rome, Route, Dubrovnik, Tel Aviv, Tripoli, Tunis, Izmir, Tangier.