he played bass on a large number of well-known albums by ex-beatles john lennon , george harrison and ringo starr − including all things must pass , imagine and the concert for bangladesh − and by artists such as harry nilsson , doris troy , lou reed , gary wright , carly simon and randy newman .