A system to transform natural language queries into SQL queries

In the present scenario, every user is not familiar with the use of Structured Query Language (SQL). So, user is not able to understand or write complex queries in SQL. An enhanced application with intelligent interface is needed to improve communication between the naïve user and the databases application. The database is an efficient structure for handling data. To understand the structure of the database, a user has to learn SQL. The non-expert users who are not familiar with the use of SQL, need a system by which the user can interact with the database in their natural language. The system must have the ability to understand the natural language and interact with the database accordingly. In this research, an improved system with three-tier architecture is developed. Pattern matching and semantic matching techniques are used to develop the system which transforms natural language into SQL queries. The SQL query is generated with the production rules and the predefined data dictionary. The predefined data dictionary contains semantics for attributes and relation among attributes. The input given by the user is transformed by the system into SQL query by passing through steps like tokenization, escape word removal, classification of elements and query formation. Finally, the output is in the form of a SQL query. The results are compared with the existing system. The results given by the proposed system are better than the existing system. The proposed system has better recall value, accuracy, and precision in comparison to existing systems.

[1]  Chanchal Agarwal,et al.  NATURAL LANGUAGE QUERY PROCESSING USING SEMANTIC GRAMMAR , 2010 .

[2]  Garima Singh,et al.  An algorithm to transform natural language into SQL queries for relational databases , 2016 .

[3]  A. Jaya,et al.  Natural Language to SQL Generation for Semantic Knowledge Extraction in Social Web Sources , 2015 .

[4]  Jasmeen Kaur,et al.  Implementation of Query Processor Using Automata and Natural Language Processing , 2013 .

[5]  Mahesh Motwani,et al.  Natural Language Interface to Database using Semantic Matching , 2011 .

[6]  M. Sreenivasulu,et al.  Information Retrieval using Natural Language Interfaces , 2014 .

[7]  Swapnil Kanhe,et al.  SQL Generation and PL/SQL Execution from Natural Language Processing , 2015 .

[8]  Rajender Kumar,et al.  Translating controlled natural language query into SQL query using pattern matching technique , 2014, International Conference for Convergence for Technology-2014.

[9]  Pranali P. Chaudhari Natural Language Statement to SQL Query Translator , 2013 .

[10]  M.H. Shenassa,et al.  Using natural language processing in order to create SQL queries , 2008, 2008 International Conference on Computer and Communication Engineering.

[11]  Vaishali B. Bhagat,et al.  ACCESSING DATABASE USING NLP , 2013 .

[12]  William A. Woods,et al.  Progress in natural language understanding: an application to lunar geology , 1973, AFIPS National Computer Conference.

[13]  Anuradha Mohite,et al.  Natural language interface to database using modified co-occurrence matrix technique , 2015, 2015 International Conference on Pervasive Computing (ICPC).

[14]  Alessandro Moschitti,et al.  Translating Questions to SQL Queries with Generative Parsers Discriminatively Reranked , 2012, COLING.

[15]  Gary G. Hendrix,et al.  Developing a natural language interface to complex data , 1977, TODS.

[16]  G. A. Patil,et al.  Natural Language Database Interface for Selection of Data Using Grammar and Parsing , 2009 .