Let\'s say I have this query:
SELECT TABLE_0.*, TABLE_A.* FROM ( SELECT TABLE_0.*, CAST... -- and more variable creations/transformations FROM (