SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/property/inflow> <http://dbpedia.org/resource/Shannon_Cave> . ?uri <http://dbpedia.org/ontology/source> ?x . ?uri <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/River>}
What is that river whose source gets water from the Shannon cave?
SELECT DISTINCT ?y WHERE { ?b property:inflow resource:Shannon_Cave . ?y rdf:type ontology:River . ?y property:source ?b }
River Shannon
[River Shannon] is the river whose source's inflow is the Shannon Cave.
[The Shannon River] is a river originating from Shannon Cave.