Identify the major products P, Q and R in the following sequence of reactions: [2018]

(4)
