Compound P is neutral, Q gives effervescence with \( \mathrm{NaHCO_3} \) while R reacts with Hinsbergs reagent to give solid soluble in \( \mathrm{NaOH} \). Compound P is: