Complex sentence: He opened the gate and only four people including Mahadji were lucky to come out alive whereas all the others were killed.
Split into simpler sentences: He opened the gate and only four people including Mahadji were lucky to come out alive. Whereas all the others were killed.