Complex sentence: Trapped in the Cave, Aladdin rubs the lamp, releasing the Genie trapped inside, who explains Aladdin has become his master and will grant him three wishes.
Split into simpler sentences: Trapped in the Cave, Aladdin rubs the lamp, releasing Genie, who was trapped inside. Genie explains that Aladdin has become his master and he will grant him three wishes.