Complex sentence: Sinbad reaches Sokurah, who restores the princess to her normal size; but when Sinbad refuses to hand over the lamp right afterwards, the magician animates a skeleton warrior to slay them.
Split into simpler sentences: Sinbad reaches Sokurah, who restores the princess to her normal size. When Sinbad refuses to hand over the lamp, the magician animates a skeleton warrior to slay them.