Complex sentence: When he opens it, an enormous genie (Rex Ingram) appears and tries to kill him, but Abu tricks the genie back into the bottle; the genie promises to grant him three wishes if he will let him out.
Split into simpler sentences: When he opens it, the genie (Rex Ingram) tries to kill him. Sabu tricks the genie back into the bottle, and the genie promises to give him three wishes if he will let him out.