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