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