Question: Count the number of religions followed by BJP members.
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:party <http://dbpedia.org/resource/Bharatiya_Janata_Party> . ?x onto:religion ?uri . }