I don't know how any of this will happen, I haven't read the books, and I'm usually hazy on the details of the past week's episode :joint:
Jon will die, but not before winning the war, though Cersei will die by Sansa's hand, in the end. Dany will not die. Grey Worm will kill Captain Abominable (see?...details?), the Shrek-golem that killed his girl. And the outcome will be... wait for it... not unlike AOC's suggestion at season's start, a (sort of, anyway) co-regency (democracy was the word she used, but that's a bridge too far, imo). Throne and council, or what, I don't know. That's where the vision is harder to see. Thus it is written. By Dick.
Also, Jaime's on borrowed time, the next to go. So sayeth Dick.