SQLify Me: An Automated Text-To-SQL Query Generator

Mohamed, Ahmed Yasser; Zain-Elabdeen, Mohamed Hisham; Sayed, Salwa Ahmed; Abdelwahab, Samaa Sabry; Mohamed, Ziad Ezzat; Ali, Zyad Mahmoud; Kawashti, Yomna A.; Hanan Hindy;

Abstract


Data plays a crucial role in computer science, serving as its backbone in various applications. Understanding and interacting with data stored in databases often requires technical knowledge of query languages, posing a challenge for non-Technical users. This paper aims to bridge this gap by developing a Text-To-SQL generation system, facilitating natural language queries to database operations. In SQLIFYME, we adopted a dual-path approach to implement the Text-To-SQL generation model. The Seq2Seq model, utilizing transformers, processes natural language queries to generate corresponding Structured Query Language (SQL) queries. Simultaneously, generative AI techniques are employed, applying prompt engineering to the Llama2 LLM to manage complex and nuanced queries and further refine and enhance query generation capabilities. After extensive experiments with Seq2Seq models, LLMs, and different prompt engineering techniques, we reached the optimal configuration for our proposed model. The experimental results demonstrate the effectiveness of both approaches in accurately translating natural language queries into SQL commands. The Seq2Seq model achieves high accuracy in handling structured queries, while the generative AI approach excels in handling complex and nuanced queries, highlighting the versatility of our system. Notably, the system achieved an impressive execution score of 0.8 using the T-5 base model.


Other data

Title SQLify Me: An Automated Text-To-SQL Query Generator
Authors Mohamed, Ahmed Yasser; Zain-Elabdeen, Mohamed Hisham; Sayed, Salwa Ahmed; Abdelwahab, Samaa Sabry; Mohamed, Ziad Ezzat; Ali, Zyad Mahmoud; Kawashti, Yomna A.; Hanan Hindy 
Keywords Generative AI;Large Language Models (LLMs);Natural Language Processing (NLP);Prompt Engineering;Text-To-SQL;Transformers
Issue Date 1-Jan-2024
Conference 34th International Conference on Computer Theory and Applications Iccta 2024
ISBN [9798331529673]
DOI 10.1109/ICCTA64612.2024.10974783
Scopus ID 2-s2.0-105004873229

Recommend this item

Similar Items from Core Recommender Database

Google ScholarTM

Check



Items in Ain Shams Scholar are protected by copyright, with all rights reserved, unless otherwise indicated.