SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/property/office> <http://dbpedia.org/resource/Bank_of_Thailand> . ?x <http://dbpedia.org/ontology/religion> ?uri . ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Governor>}
What is the religion of the governors whose office is the Bank of Thailand?
SELECT DISTINCT ?c WHERE { ?d property:religion ?c . ?d rdf:type ontology:Governor . ?d property:office resource:Bank_of_Thailand }
Buddhism
The religion of the governors whose works for Bank of Thailand is [Buddhism].
The religion of the governors working at the Bank of Thailand is [Buddhism].