Question: Give me the capitals of all countries that the Himalayas run through.
SPARQL query:
PREFIX prop: <http://dbpedia.org/property/>
PREFIX onto: <http://dbpedia.org/ontology/>
PREFIX res: <http://dbpedia.org/resource/>
SELECT DISTINCT ?uri
WHERE {
         res:Himalayas prop:country ?country . 
         ?country onto:capital ?uri .
}