Complex sentence: In the second part, "Jake the Dog", Jake manages to undo this reality with his wish, setting everything back to the way it was.
Split into simpler sentences: In the second part, "Jake the Dog", Jake manages to undo this reality with his wish. As a result, it setting everything back to the way it was.