SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/ontology/sourceCountry> <http://dbpedia.org/resource/Zambia> . ?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 do the rivers starting from Zambia end?
SELECT DISTINCT ?d WHERE { ?g property:river_mouth ?d . ?g rdf:type ontology:River . ?g property:source_country resource:Zambia }
Lualaba River, Zambezi, Indian Ocean
The rivers originating from Zambia end are [Lualaba River, Zambezi, Indian Ocean].
The rivers from Zambia end [Lualaba, Zambezi, Indian Ocean].