SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/property/city> <http://dbpedia.org/resource/Mazabuka> . ?x <http://dbpedia.org/ontology/riverMouth> ?uri . ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/River>}
Where does the river end which starts in Mazabuka?
SELECT DISTINCT ?k WHERE { ?n property:city resource:Mazabuka . ?n property:river_mouth ?k . ?n rdf:type ontology:River }
Zambezi
The mouth of the river which goes through Mazabuka is [Zambezi].
The mouth of the river running through Mazabuka is [Zambezi].