SQL CHATBOT USING CONTEXT FREE GRAMMER
Keywords:
SQL query, clauses, deep learning, algorithms, CFG approach, neural networks, semantic analysisAbstract
we derive the semantics of a given English query and convert it into its equivalent SQL query. Instead of using neural networks for semantic analysis of English queries, we opt for a Context Free Grammar approach. Most neural network based systems can handle only one semantic at a time, whereas, because of the flexibility offered by our CFG approach, our system manages to handle simultaneous usage of conjunctive, disjunctive, and negative semantics. It also handles complex statements comprising of main as well as dependent clauses. In addition, the system also takes into account aggregate functions and constructs the required GROUP-BY and HAVING clauses. We describe how the system analyzes English queries by understanding the role that each part-of-speech has to play in constructing SQL queries. Numerous examples demonstrate the effectiveness of our approach where state-of-the-art techniques relying on deep learning algorithms fail to deliver
Downloads
Downloads
Published
Issue
Section
License

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.











