Mashiach ben David:
This is the Davidic Messiah, the ultimate redeemer in Jewish tradition, expected to usher in an era of peace and redemption.
Mashiach ben Joseph:
This is a figure associated with the tribe of Ephraim (son of Joseph) and is believed to precede Mashiach ben David.
Resurrection:
The idea of Mashiach ben David resurrecting Mashiach ben Joseph comes from interpretations of various texts, including the Talmud, which suggests that Mashiach ben David's first act upon his arrival will be to resurrect Mashiach ben Joseph.
End Times:
This concept is part of the Jewish understanding of the end times, where Mashiach ben David's arrival is preceded by a period of conflict and tribulation, potentially involving the death of Mashiach ben Joseph.
Not universally accepted:
While this belief is part of some Jewish traditions, some Jewish scholars do not accept the concept of Messiah ben Joseph, or the idea of a two-stage Messiah, stating that there is only one Messiah, Mashiach ben David.
https://youtu.be/r1-YMsOUE2I