SELECT DISTINCT ?uri WHERE {?uri <http://dbpedia.org/ontology/location> <http://dbpedia.org/resource/Europe> . ?uri <http://dbpedia.org/property/cities> <http://dbpedia.org/resource/Oulu> . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Sea>}
Which European sea has Oulu as one of the shore city ?
SELECT DISTINCT ?a WHERE { ?a rdf:type ontology:Sea . ?a property:location resource:Europe . ?a property:cities resource:Oulu }
Baltic Sea
The sea whose location is in Europe and has shore city Oulu is [Baltic Sea].
The sea with its location in Europe and the coastal city of Oulu [the Baltic Sea].