sql server multiple cte example