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