Guided by a magic rhyme, Jack and Annie travel to ancient Baghdad on a mission to help the caliph disseminate wisdom to the world.