SELECT DISTINCT ?uri WHERE { ?uri <http://dbpedia.org/property/cities> <http://dbpedia.org/resource/GdaÅ„sk> . ?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>}
What is the sea whose cities are Gdansk and Oulu?
SELECT DISTINCT ?y WHERE { ?y property:cities resource:Oulu . ?y property:cities resource:GdaÅ„sk . ?y rdf:type ontology:Sea }
Baltic Sea
The sea with cities Gdansk and Oulu is [Baltic Sea].
[Baltic Sea] is the sea whose cities are Gdansk and Oulu.