Conversation so far:
who wrote joseph and the amazing technicolor dreamcoat?
The lyrics for the musical Joseph and the Amazing Technicolor Dreamcoat were written by Tim Rice
who did the music for the musical Joseph and the Amazing Technicolor Dreamcoat?
Andrew Lloyd Webber

Question: what was the musical based on?
Self-contained rewrite: what was the musical Joseph and the Amazing Technicolor Dreamcoat?