I’m looking for a movie in which the main character, along with a friend (an old man and a wise man helping him), perform tasks of acquiring items to be able to win the hand of the princess. One of them is a flying carpet. The last piece of evidence to acquire is a fruit. At this task the old man leaves the young man and they meet only after the main character finds the fruit. He warns him against it because “from the seed will come an army.” One of the competitors can not accept the verdict and defeat for the hand of the princess and tries to organize a coup. Then the main character throws the seeds and the ruler’s loyal peasants arrive.
Thank you for any help.