Usa una virgola per separare i CTE ;WITH SomeClause1 AS ( SELECT .... ) , SomeClause2 AS ( SELECT .... )