Question: Which party won the elections when Y.S. Rajasekhara Reddy was in power?
SPARQL query:
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX prop: <http://dbpedia.org/property/>
PREFIX onto: <http://dbpedia.org/ontology/>
SELECT DISTINCT ?uri WHERE { ?x prop:leader <http://dbpedia.org/resource/Y._S._Rajasekhara_Reddy> . ?x onto:affiliation ?uri . ?x rdf:type onto:Election}