Original: My Fair Lady is a musical based upon George Bernard Shaw's Pygmalion and with book and lyrics by Alan Jay Lerner and music by Frederick Loewe.
Simplified: It is based on George Bernard Shaw's Pygmalion.