Input (grade 6): During these one thousand and one nights, the King had fallen in love with Scheherazade, and had three sons with her.
Output (grade 9): In the end the king had fallen in love with Scheherazade and they already had three children, so he did not have her executed.