SELECT DISTINCT COUNT(?uri) WHERE { ?x <http://dbpedia.org/ontology/militaryRank> <http://dbpedia.org/resource/Field_marshal> . ?x <http://dbpedia.org/ontology/religion> ?uri . }
Count the number of different religions that field marshals have followed?
SELECT DISTINCT COUNT ( ?y ) WHERE { ?c property:military_rank resource:Field_marshal . ?c property:religion ?y . }
14
There are [14] religions of the people from Field marshal military rank.
The number of different religions that field marshals have followed are [14].