Question: How many parties are there of the office holders whose one of the party is Janata Dal ?
SPARQL query:
PREFIX res: <http://dbpedia.org/resource/>
PREFIX onto: <http://dbpedia.org/ontology/>
SELECT DISTINCT COUNT(?uri) WHERE { ?x onto:otherParty <http://dbpedia.org/resource/Janata_Dal> . ?x onto:otherParty ?uri }