Extract out Semantic Analyze Part of HiveQL (Based on Hive 0.12)