Need help finding this jataka tale

I’m trying to find the jataka story where a king was reborn as Sakka and when he returned to the human realm, a few hundred or thousand years have passed. I’m also trying to find the story where Sakka gives advice to a queen who ordained as a nun and she was reborn in Tavatimsa.

Does anyone know about these two stories?