Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

Enhancement of Natural Language to SQL Query Conversion using Machine Learning Techniques

Author 1: Akshar Prasad Author 2: Sourabh S Badhya Author 3: Yashwanth YS Author 4: Shetty Rohan Author 5: Shobha G Author 6: Deepamala N
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 11, No. 12 · Published 2020 · Cited by 8

DOI: https://doi.org/10.14569/IJACSA.2020.0111260

Abstract

In the age of information explosion, there is a huge data that is stored in the form of database and accessed using various querying languages. The major challenges faced by a user accessing this data is to learn the querying language and understand the various syntax associated with it. Query given in the form of Natural Language helps any naïve user to access database without learning the query languages. The current process of conversion of Natural Language to SQL Query using a rule-based algorithm is riddled with challenges -- identification of partial or implied data values and identification of descriptive values being the predominant ones. This paper discusses the use of a synchronous combination of a hybrid Machine Learning model, Elastic Search and WordNet to overcome the above-mentioned challenges. An embedding layer followed by a Long Short-Term Memory model is used to identify partial or implied data values, while Elastic Search has been used to identify descriptive data values (values which have lengthy data values and may contain descriptions). This architecture enables conversion systems to achieve robustness and high accuracies, by extracting meta data from the natural language query. The system gives an accuracy of 91.7% when tested on the IMDb database and 94.0% accuracy when tested on Company Sales database.

Keywords

How to Cite this Article

Prasad, A., Badhya, S. S., YS, Y., Rohan, S., G, S., & N, D. (2020). Enhancement of Natural Language to SQL Query Conversion using Machine Learning Techniques. International Journal of Advanced Computer Science and Applications, 11(12). https://doi.org/10.14569/IJACSA.2020.0111260

Prasad, Akshar, et al.. "Enhancement of Natural Language to SQL Query Conversion using Machine Learning Techniques." International Journal of Advanced Computer Science and Applications, vol. 11, no. 12, 2020, https://doi.org/10.14569/IJACSA.2020.0111260.

@article{Prasad2020,
  title     = {Enhancement of Natural Language to SQL Query Conversion using Machine Learning Techniques},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {11},
  number    = {12},
  year      = {2020},
  publisher = {The Science and Information Organization},
  author    = {Akshar Prasad and Sourabh S Badhya and Yashwanth YS and Shetty Rohan and Shobha G and Deepamala N},
  doi       = {10.14569/IJACSA.2020.0111260},
  url       = {https://doi.org/10.14569/IJACSA.2020.0111260}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.