1) A miller's daughter named Salma is forced by the king to spin straw into gold or be killed.
2) A strange short man appears and spins the straw into gold in exchange for her necklace.
3) The greedy king demands more gold and Salma promises her first born child to the short man in exchange for his help.
4) After Salma becomes queen and gives birth, the short man comes to claim the baby but agrees to let the child go if Salma guesses his name in 3 days.
5) On the third day, Salma guesses his name is Joaydan from information from a watchman, allowing her to keep her baby.