Question: How many parties have come in power in elections where Y. S. Rajasekhara Reddy won?
SPARQL query:
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  . }