Teacher: You will be given a passage, and your task is to generate a Yes/No question that is answerable based on the given passage.
Teacher: Now, understand the problem? If you are still confused, see the following example:
Powdered sugar, also called confectioners' sugar, icing sugar, and icing cake, is a finely ground sugar produced by milling granulated sugar into a powdered state. It usually contains a small amount of anti-caking agent to prevent clumping and improve flow. Although most often produced in a factory, powdered sugar can also be made by processing ordinary granulated sugar in a coffee grinder, or by crushing it by hand in a mortar and pestle.
Solution: is confectionary sugar the same as powdered sugar?
Reason: The question is a yes/no question, and it is answerable based on the given passage.

Now, solve this instance: Joffrey sets aside his earlier betrothal to Sansa Stark in favor of Margaery Tyrell, cementing an alliance between the Lannisters and House Tyrell. At Tyrion and Sansa's wedding, he humiliates his uncle and is outraged when his uncle threatens him after he commands him to consummate their marriage. Tyrion only avoids punishment when his father Tywin assures Joffrey that his uncle was drunk and had no intention of threatening the king. Later after the events of the ''Red Wedding'', Joffrey gleefully plans on serving Sansa her recently deceased brother's head, when Tyrion and Tywin are outraged. Tyrion threatens Joffrey once again, and later Joffrey turns on Tywin, who responds by commanding Joffrey to be sent to his room, much to Joffrey's chagrin. During his wedding feast in the throne room, he presents an extremely offensive play of ''The War of the Five Kings, '' with each of the kings played by dwarves, to humiliate his uncle. He also repeatedly torments Tyrion and Sansa, forcing the former to be his cupbearer. At the conclusion of the dinner, however, Joffrey's wine is poisoned, and he dies in an event known as ''The Purple Wedding,'' in which Tyrion is falsely accused and arrested by Cersei in A Storm of Swords (2000). It is later revealed that Lady Olenna Tyrell and Lord Petyr Baelish were the true perpetrators, with assistance from royal fool Ser Dontos Hollard, who successfully smuggles Tyrion's wife Sansa out of King's Landing before either of them can be caught and tried for Joffrey's murder.
Student:
does king joffrey die in game of thrones?