Question: Count the number of religions followed by BJP members.
SPARQL query:
PREFIX prop: <http://dbpedia.org/property/>
PREFIX onto: <http://dbpedia.org/ontology/>
SELECT DISTINCT COUNT(?uri) WHERE { ?x prop:party <http://dbpedia.org/resource/Bharatiya_Janata_Party> . ?x onto:religion ?uri . }