 The story is told in classic bookend fashion, inspired by the  ancient tale of Scheherazade and the 1001 Arabian Nights. The  central story itself is inspired by the old Thief of Baghdad movies  of the 40s and 50s, as well as Ray Harryhausens Sinbad films and  Lawrence of Arabia.