SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/ontology/rightTributary> <http://dbpedia.org/resource/Rakitnica> . ?x <http://dbpedia.org/ontology/mouthCountry> ?uri . }
Where does the river end, into which the Rakitnica flows?
SELECT DISTINCT ?u WHERE { ?x property:right_tributary resource:Rakitnica . ?x property:mouth_country ?u . }
Croatia
The mouth country of the river whose right tributary is Rakitnica is [Croatia].
The mouth of the river, the right tributary of which is Rakitnica [Croatia].
[Croatia] is the mouth country.
[Croatia] is the mouth.