SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/ontology/profession> <http://dbpedia.org/resource/Attorneys_in_Sri_Lanka> . ?x <http://dbpedia.org/ontology/religion> ?uri . }
What are all the religions that have been followed by the Sir Lankan attorneys?
SELECT DISTINCT ?p WHERE { ?v property:religion ?p . . ?v property:profession resource:Attorneys_in_Sri_Lanka }
Buddhism, Islam, Theravada
The religions of the people who work as attorneys in Sri Lanka are [Buddhism, Islam, Theravada].
The religions of people working as lawyers in Sri Lanka are [Buddhism, Islam, Theravada].