SELECT DISTINCT ?uri WHERE { <http://dbpedia.org/resource/Ganges> <http://dbpedia.org/property/city> ?x . ?x <http://dbpedia.org/ontology/leaderName> ?uri . ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/City>}
List the leaders of all the cities through which the Ganga river flows ?
SELECT DISTINCT ?n WHERE { resource:Ganges property:city ?k . ?k rdf:type ontology:City . ?k property:leader_name ?n }
Jagatvir Singh Drona, Indian National Congress, Narendra Modi, Indian Administrative Service, Bharatiya Janata Party, Ram Vilas Paswan, Mukesh Rajput, Abhilasha Gupta, Shyama Charan Gupta
The leaders of the cities where Ganges river flows are [Jagatvir Singh Drona, Indian National Congress, Narendra Modi, Indian Administrative Service, Bharatiya Janata Party, Ram Vilas Paswan, Mukesh Rajput, Abhilasha Gupta, Shyama Charan Gupta].
The leaders of the cities where the water flows are [Matvir Singh Drona, Indian National Congress, Narendra Modi, Indian Security Service, Bharatiya Janata Party, Ram Vilas Paswan, Mukesh Rajput, Abhilash Gupta, Shyama Charan Gupta].