First pass at from_cte