SELECT DISTINCT ?uri WHERE { ?x <http://dbpedia.org/property/primeminister> <http://dbpedia.org/resource/Lee_Hyun-jae> . ?x <http://dbpedia.org/ontology/religion> ?uri . ?x <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/President>}
The president who was in office when Lee Hyun Jae was the PM followed which religion?
SELECT DISTINCT ?z WHERE { ?t rdf:type ontology:President . ?t property:religion ?z . ?t property:primeminister resource:Lee_Hyun-jae }
Buddhism
[Buddhism] is the religion of the president whose prime minister was Lee Hyun-jae.
[Buddhism] is the religion the president follows whose prime minister was Lee Hyun-jae.
The religion of the president whose primeminister is named Lee Hyun-jae  is [Buddhism].
The religion of the president, whose prime minister is him is [Buddhism].