More accurate error reporting, semantic analysis for tables