Complex sentence: Before the dragon attempts to doom him, he tries to avoid his fate by complimenting the dragon, whom he discovers is a female, and the dragon is greatly flattered by Donkey's compliments and takes him to her lair to be intimate with him.
Split into simpler sentences: Before the dragon attempts to doom him, he tries to avoid his fate by complimenting the dragon, whom he discovers is a female, and the dragon is greatly flattered by Donkey's compliments. She takes him to her lair to be intimate with him.