Implement table functions.
Fix https://github.com/julianhyde/optiq/issues/273, "Support column alias in WITH queries (common table expressions)".