Intelligent natural language to SQL translator with self-correction capabilities using OpenAI and MySQL