Smart Automatic Query Analyzer