Question: Count the different religions followed by Second Lieutenants in military.
SPARQL query:
PREFIX onto: <http://dbpedia.org/ontology/>
SELECT DISTINCT COUNT(?uri) WHERE { ?x onto:militaryRank <http://dbpedia.org/resource/Second_lieutenant> . ?x onto:religion ?uri  . }