Added support for CTEs (Common Table Expressions).