A Council Crowns a New Ruler
The episode flashes forward what seems like weeks. Jon and Tyrion are both prisoners now as Grey Worm took Jon into custody after Daenerys's death. A newly formed council holds court in the dragonpit as they decide how to deal with the vacuum of chaos that will only grow if Westeros is left leaderless. And also deal with the fact that Jon has killed Daenerys, making him a Queen- AND Kinslayer.
When Sansa tells Grey Worm to release Jon and he refuses, Tyrion (still a prisoner and tired of people's sh*t, to be honest) suggests that the council elect a ruler who will decide what happens to Jon. Sam suggests that they allow the people a voice in who will rule over them, but the lords scoff and liken it to letting their horses vote. Tyrion suggests that the council elect Bran Stark as the new king — the very same Bran Stark who said he couldn't be the Lord of Winterfell because no one would respect a leader in a wheelchair and most likely won't be able to produce any heirs, a problem that Tyrion raised about Daeanerys. But I digress!
As the council agrees to Bran's election, Sansa commands that the North remain an independent nation, never to kneel to another again. Bran agrees and Tyrion suggests that after Bran, a new leader be chosen in the dragonpit by a council made up of the heads of great Houses. Bran goes on to name Tyrion his hand and the last Lannister decrees that Jon be sent to the Wall to join the Night's Watch as punishment. Grey Worms accepts this, refusing to bend the knee to Bran, and sails forth to Naath, where he and Missandei planned to sail to before her death.