Step 1: Identify reaction A.
In reaction A, benzene diazonium chloride first undergoes hydrolysis with water to form phenol.
Then phenol reacts with \( CHCl_3/NaOH \), followed by acidification. This is Reimer-Tiemann reaction.
The major product formed is salicylaldehyde, which corresponds to product \( Q \).
So:
\[
A = Q
\]
Step 2: Identify reaction B.
In reaction B, benzene diazonium chloride first forms phenol by hydrolysis.
Then phenol reacts with benzoyl chloride \( C_6H_5COCl \) in the presence of \( NaOH \).
This gives phenyl benzoate, which corresponds to product \( R \).
So:
\[
B = R
\]
Step 3: Identify reaction C.
In reaction C, sodium phenoxide reacts with \( CO_2 \) under pressure and heat.
This is Kolbe-Schmitt reaction and gives salicylic acid after acidification.
Further reaction with acetic anhydride gives acetyl salicylic acid, commonly known as aspirin.
This corresponds to product \( S \).
So:
\[
C = S
\]
Step 4: Identify reaction D.
In reaction D, cumene reacts with oxygen followed by acid hydrolysis to form phenol.
Phenol on oxidation with \( Na_2Cr_2O_7/H^+ \) gives benzoquinone.
This corresponds to product \( P \).
So:
\[
D = P
\]
Step 5: Final matching.
Thus, the correct matching is:
\[
A = Q,\quad B = R,\quad C = S,\quad D = P
\]
Therefore:
\[
\boxed{A = Q,\; B = R,\; C = S,\; D = P}
\]