Introduced SemanticalAnalysisException and fixed typos