They all exist within the scope of the with
statement.
You can easily prove this by selecting from them.
;with
temp1 as (...),
temp2 as (select * from temp1),
temp3 as (...)
select * from temp1
union
select * from temp2
union
select * from temp3