Conversation so far:
Was Babrak Karmal a communist?
Yes, Babrak Karmal was appointed Deputy Chairman of the Revolutionary Council, synonymous with vice head of state, in the communist government.

Question: What was he in prison for?
Self-contained rewrite: What was Babrak Karmal in prison for?