A Survey On Natural Language To SQL Query Generator
A Survey On Natural Language To SQL Query Generator
https://doi.org/10.22214/ijraset.2023.51466
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue V May 2023- Available at www.ijraset.com
Abstract: This paper provides a comprehensive review of a papers which are related to bank application designed for devices,
focusing on its features, usability, security, and overall user experience. The application is evaluated based on its ability to
perform typical banking tasks, such as checking account balances, transferring funds and managing transactions. The review
also examines the application's design, navigation, and user interface, as well as its security features, including authentication,
encryption, and protection against unauthorized access. Overall, the review concludes that the bank application is a highly
effective and user-friendly tool for managing finances on the go, with robust security measures in place to protect sensitive
information.
I. INTRODUCTION
Artificial Intelligence, or AI, is a rapidly growing field that has the potential to revolutionize the way we live and work. At its core,
AI involves the development of intelligent machines that can perform tasks that typically require human intelligence, such as visual
perception, speech recognition, decision-making, and language translation. Another most exciting areas of AI research is deep
learning, which involves the use of neural networks to model complex patterns in data. Deep learning has enabled breakthroughs in
areas such as computer vision, natural language processing, and game playing, and has led to the development of applications such
as image recognition, speech synthesis, and language translation.
There are several subfields of AI, each with its own specific focus and applications. Here are some of the main subfields of AI:
1) Machine learning: This involves the development of algorithms that can learn from data and improve their performance over
time. Machine learning is used in a wide range of applications, from image recognition and natural language processing to fraud
detection and predictive analytics.
2) Natural language processing: This involves the use of computer algorithms to analyse, understand, and generate human
language. Natural language processing is used in applications such as voice assistants, chatbots, and machine translation.
3) Computer vision: This involves the development of algorithms that can analyse and interpret visual data, such as images and
videos.
4) Robotics: This involves the development of intelligent machines that can interact with the physical world. Robotics has
applications in fields such as manufacturing, healthcare, and logistics.
5) Expert systems: This involves the development of computer programs that can mimic the decision-making abilities of human
experts in a specific domain. Expert systems are used in applications such as medical diagnosis and financial planning.
6) Cognitive computing: This involves the development of algorithms that can simulate human thought processes, such as
perception, reasoning, and decision-making. Cognitive computing is used in applications such as fraud detection, customer
service, and personalized marketing.
7) Reinforcement learning: This involves the development of algorithms that can learn through trial and error, by receiving
feedback in the form of rewards or penalties.
Despite its many benefits, AI also poses significant challenges, particularly around issues such as privacy, security, and bias. As AI
systems become more complex and powerful, there is a risk that they could be used to perpetuate existing social inequalities, or to
violate individual rights and freedoms.
Organization of the report is as follows; in section 2, we will be discussing about the related work, in section 3 we will be discussing
about the conclusion and future work.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 318
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue V May 2023- Available at www.ijraset.com
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 319
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue V May 2023- Available at www.ijraset.com
A limited Data Dictionary is used where all possible word related to a particular system will be included .The system can be adopted
by multiple business-oriented organisation where the extensive task of data analysis can be done by a statistical scientist rather than
an engineer.
Voice based natural language query processing [7] The authors have come up with the system which explains the retrieval of data by
giving user speech as input. Using speech recognition technique speech will be converted into text. It Splits the input query and
store it in a list, i.e., tokenize the input sentence. Find all the attributes of all the tables which are required. Examine the query and
find the table and the attributes present in the query. After examining, Separate the table which doesn’t belong. . Now find the tables
which will contain the pair of attributes which do not belong to the table in the query. Select any one table. Thus, we will obtain the
tables required for natural join. Then form the outer query according to the different conditions. Merge both and generate the final
query. Display the result on GUI. The advantage of using this model is it is Easily accessible; System will prompt user about the
error while entering the query and provide auto-correction feature and handles complex queries. The aim of this model is to allow
interaction among database and its human users using natural language.
nQuery[8] The authors have discussed about have proposed a system which takes natural language as an input and converts it into
SQL query. The research aims to include complex queries along with simple queries with respect to any database. This system
include aggregate function,various conditions in WHERE clause and advanced clauses like ORDER BY,GROUP BY and
HAVING. The model mainly aims to retrieve the data and also provides the facility to convert DML natural language statements to
SQL
Natural Language query using NLP by generating SQL query [9] The authors have proposed a model in NLP for converting the
Natural language query to SQL query. The various steps followed during this process are tokenization, lemmatization, parts of
speech tagging, parsing and mapping. The natural language interface is capable for translating the natural language query into an
equivalent database query language.
The system contains an intelligent layer that accepts user’s sentences in natural language as input, converts these sentences into
standard SQL queries and executes them to retrieve data from relational databases. This system consists of several modules that are
used to extract key words alone and leave out the redundant data. Input data initially goes through an NLP phase followed by a
mapping phase.
This model has user friendly GUI through which the user can provide the English language query to the system and a query
generator that provides the resultant Query of the user's request. The input provided by the user must be processed to identify the
constraints and predicates required to formulate the desired SQL query. The NLP makes use of techniques such as tokenization, part
of speech tagging, chunking and entity recognition. The NLP provides chunked tags which are processed to analyse the attributes
and predicates. The query generator makes use of a query translation. The algorithm helps in identification of predicates based on
the set of rules. A prediction model is, used when the translation algorithm fails to generate sufficient information to formulate the
query, also included in the query generator to predict the query. The formulation of query is done with the help of pre-defined
structure, attributes and predicates identified using NLP. Finally the database component is a response generator which takes the
output of DBMS as its input and converts it into the English language.
IV. ACKNOWLEDGEMENT
We would like to thank our institution JNNCE, Computer science and Engineering department for giving us this opportunity to put
forth our ideas. Also, we would like to extend our heartfelt gratitude towards the faculty who supported us throughout our journey
and our parents who were the backbones and helped us complete this project in success.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 320
International Journal for Research in Applied Science & Engineering Technology (IJRASET)
ISSN: 2321-9653; IC Value: 45.98; SJ Impact Factor: 7.538
Volume 11 Issue V May 2023- Available at www.ijraset.com
REFERENCES
[1] Savita V Kandharkar and Rushali Deshmukh, “Voice based SQL Query Generation with NLP Process Implementation using Machine Learning” , Pune
University, Computer Engineering, JSPM’s, Rajarshi Shahu College of Engineering. May 5, 2022.
[2] Ashwini Kulkarni, Pranali Pawar, Mayuri Khairnar, Shital Patil, Tukaram Gawali on “Voice And Text Based Natural Language Query Processing’’, Computer
Engineering, SVKM’s IOT, Dhule,India. November 10,2020.
[3] George Obaido,Abejide Ade-Ibijola and Hima Vadapalli on "TalkSQL: A Tool for the Synthesis of SQL Queries from Verbal Specifications", University of
Johannesburg, and University of the Witwatersrand. 2020.
[4] B. Nethravathi, “ Structuring Natural Language to Query Language” , Department of Information Science and Engineering JSS Academy of Technical
Education, Bangalore Karnataka,Vol. 10, No. 6, 2020, 6521-6525.
[5] Satish Kambale “Conversion of Natural language query to SQL query” Conference paper, March 2018
[6] Prof. Vaishali L. Kohle, “QUERYING DATABASE USING NATURAL LANGUAGE INTERFACE”, International Research Journal of Engineering and
Technology (IRJET) Volume: 0S Issue: 03 TMar-2018.
[7] Prof. Deepa Mahajan, Puja Munde and Sayali Tambe, “Voice Based Natural Language Query Processing”, International Research Journal of Engineering and
Technology (IRJET). Volume: 07 Issue: 03 | Mar 2020.
[8] Nandan Sukthankar, Sanket Maharnawar, Pranay Deshmukh Yashodhara Haribhakta, Vibhavari Kamble Department of Computer Engineering and Information
Technology College of Engineering Pune Wellesley Road, Shivajinagar, Pune, Maharashtra, India
[9] Prajakta Devgade, Jiwan Dehankar and Priyanka Bhende, “The Natural Language Query Using NLP by Generation of SQL Query”, International Research
Journal of Engineering and Technology (IRJET). Volume: 08 Issue: 05 | May 2021.
©IJRASET: All Rights are Reserved | SJ Impact Factor 7.538 | ISRA Journal Impact Factor 7.894 | 321