Understanding SQL Server CTE with examples and Multiple CTEs