Some parts of the sentence given below have been jumbled up. You are required to re-arrange these parts which are labelled P, Q, R and S to produce the correct sentence. Choose the proper sequence from the options.
The judge (P)
when he was presented in court (Q)
sentenced the prisoner to life imprisonment (R)
by the police (S)
on a charge of murder
The correct sequence should be