S is the first part of the sentence as other three parts start from verbs. S is followed by R as Q cannot logically follow S, and Q and R cannot follow P. Now R is followed by Q as it cannot follow P. Hence, the last part is P. Thus, it is clear that the correct option is (d).