t sql cte multiple queries