Is there a way to generate a CTE? I didn't see anything in docs mentioning this. I'm using PostgreSQL.