If \[\cos ^{-1} \sqrt{\mathrm{p}}+\cos ^{-1} \sqrt{1-\mathrm{p}}+\cos ^{-1} \sqrt{1-\mathrm{q}}=\frac{3 \pi}{4}\], then \[\mathrm{q}\] is