Add support for with statement/CTE statements.
Add some methods for convenience