SELECT DISTINCT COUNT(?uri) WHERE { ?x <http://dbpedia.org/ontology/militaryRank> <http://dbpedia.org/resource/Second_lieutenant> . ?x <http://dbpedia.org/ontology/religion> ?uri . }
Count the different religions followed by Second Lieutenants in military.
SELECT DISTINCT COUNT ( ?y ) WHERE { ?o property:military_rank resource:Second_lieutenant . ?o property:religion ?y . }
30
There are [30] different religions Second lieutenant follows in millitary.
There are [30] different religions.