Complex sentence: When the Executioner enters to carry out the Sultan's order, he takes Dancing Sunbeam for the Sultana and causes Yussuf to be married to her, and both Dancing Sunbeam and Yussuf are unhappy at the result.
Split into simpler sentences: When the Executioner enters to carry out the Sultan's order, he mistakes Dancing Sunbeam for the Sultana and causes Yussuf to be married to her. Both Dancing Sunbeam and Yussuf are unhappy at the result.