SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/property/country> <http://dbpedia.org/resource/Zambia> . ?x <http://dbpedia.org/ontology/river> ?uri . ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Dam>}
What are some rivers in Zambia which have a dam on them?
SELECT DISTINCT ?e WHERE { ?c rdf:type ontology:Dam . ?c property:country resource:Zambia . ?c property:river ?e }
Zambezi
[Zambezi] is the river with a dam located in Zambia.
[Zambezi] is a river with a dam in Zambia.