what would be the question for 'he was the 5th PM of india'
Your query doesn't put forth a clear sense. Thus, here are the few possible questions the answer to whom would be:
Who was the 5th Prime Minister of India?
Of which country was he the 5th Prime Minister?
What was his portfolio in the fifth term in India?
In which term did he serve as the Prime Minister of India?