SELECT DISTINCT ?uri WHERE {?uri <http://dbpedia.org/ontology/riverMouth> <http://dbpedia.org/resource/Indian_Ocean> . ?uri <http://dbpedia.org/ontology/sourceCountry> <http://dbpedia.org/resource/Zambia> . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/River>}
What river ends in Indian Ocean and also starts somewhere in Zambia?
SELECT DISTINCT ?q WHERE { ?q property:source_country resource:Zambia . ?q property:river_mouth resource:Indian_Ocean . ?q rdf:type ontology:River }
Zambezi
The river whose mouth is in Indian Ocean and source country is Zambia is [Zambezi].
A river that flows into the Indian Ocean and originates in Zambia [Zambezi].