SELECT DISTINCT COUNT(?uri) WHERE { ?x <http://dbpedia.org/property/birthPlace> <http://dbpedia.org/resource/Bangkok> . ?x <http://dbpedia.org/ontology/religion> ?uri . }
What is the total number of relgions followed by people born in Bangkok?
SELECT DISTINCT COUNT ( ?r ) WHERE { ?o property:birth_place resource:Bangkok . ?o property:religion ?r . }
30
There are [30] religions of the people born in Bangkok.
There are [30] total religions of people who were born in Bangkok.