Too many nested WITHs

You tried to nest a series of With statements to more than 16 levels. This is not allowed.