Question: Count the number of religions followed by Janta Dal 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/Janata_Dal> . ?x onto:religion ?uri  . }