SELECT DISTINCT ?uri WHERE {?uri <http://dbpedia.org/ontology/inflow> <http://dbpedia.org/resource/Kemijoki> . ?uri <http://dbpedia.org/property/outflow> <http://dbpedia.org/resource/Danish_straits> . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Sea>}
Name the sea whose inflow is Kemijoki and outflow is Danish straits?
SELECT DISTINCT ?b WHERE { ?b rdf:type ontology:Sea . ?b property:inflow resource:Kemijoki . ?b property:outflow resource:Danish_straits }
Baltic Sea
[Baltic Sea] is the sea whose inflow is Kemijoki and outflow is Danish straits.
[The Baltic Sea] is a tributary to the Kemijoki and the outlet to the Danisk Strait.