sql server multiple cte in one query