Question: How many parties have come in power in elections where Y. S. Rajasekhara Reddy won?
SPARQL query:
PREFIX res: <http://dbpedia.org/resource/>
PREFIX prop: <http://dbpedia.org/property/>
PREFIX onto: <http://dbpedia.org/ontology/>
SELECT DISTINCT COUNT(?uri) WHERE { ?x prop:leader <http://dbpedia.org/resource/Y._S._Rajasekhara_Reddy> . ?x onto:affiliation ?uri . }