<Tr> <Td> Prime Minister <P> (Re-elected) </P> </Td> <Td> Rae Bareli, Uttar Pradesh </Td> <Td> 1967 (4th) </Td> </Tr> <P> (Re-elected) </P> <Tr> <Td> Prime Minister <P> (Re-elected) </P> </Td> <Td> 1971 (5th) </Td> <Td> I. Gandhi II </Td> <Td> V.V. Giri </Td> </Tr> <P> (Re-elected) </P>

Who held the cm post for longest time