Sql Combining 2 Ctes With Multiple Selects Into One Query Stack

Sql Combining 2 Ctes With Multiple Selects Into One Query Stack