SQLBOT – AI CHATBOT FOR SQL QUERY ASSISTANCE USING CONTEXT-FREE GRAMMAR
Keywords:
SQLBOT, Chatbot, SQL Query Assistance, Context-Free Grammar, NLP, Database SystemsAbstract
Structured Query Language (SQL) is essential for interacting with relational databases, but many beginners struggle with its syntax and logical structure. This paper presents SQLBOT, an AI-based chatbot designed to assist users in generating and understanding SQL queries using Context-Free Grammar (CFG). The system enables users to interact with databases through natural language queries, which are interpreted and converted into valid SQL commands. By integrating Natural Language Processing (NLP) and grammar-based parsing, SQLBOT analyzes user input, validates SQL syntax, and provides accurate query suggestions. The chatbot improves user experience by simplifying database interactions and reducing syntax errors. The proposed system demonstrates how conversational AI combined with formal grammar rules can enhance SQL learning and database accessibility for students, analysts, and developers.
References
,A. V. Aho, M. S. Lam, R. Sethi, and J. D. Ullman, Compilers: Principles, Techniques and Tools, Pearson, 2007.
R. Elmasri and S. B. Navathe, Fundamentals of Database Systems, Pearson, 2016


