SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/property/placeOfDeath> <http://dbpedia.org/resource/Delhi> . ?x <http://dbpedia.org/property/party> ?uri . ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/OfficeHolder>}
To which party do the politicians who died in Delhi belong?
SELECT DISTINCT ?t WHERE { ?s rdf:type ontology:Office_Holder . ?s property:place_of_death resource:Delhi . ?s property:party ?t }
Indian National Congress, Bharatiya Janata Party, Rashtriya Janata Dal
The political parties of the office holders whose death place is Delhi are [Indian National Congress, Bharatiya Janata Party, Rashtriya Janata Dal].
The political office holder parties whose place of death is Delhi are the [Indian National Congress, Bharatiya Janata Party, Rashtriya Janata Dal].