Reactant P gives product Q or R.
The possible reagents are:
Catalytic hydrogenation H2/Pd/C of triple bonds forms cis form of the double bonds. Same implies to H2/Pd/CaCO3 (Quinoline). On the other hand, the reduction of alkali metals in liquid ammonia forms trans compounds.
As R is trans product it will be formed by reagent I
Hence, the correct option is C