Skip to main content

Natural Language Based SQL Query Verification Against Relational Schema

  • Conference paper
  • First Online:
Intelligent Technologies and Applications (INTAP 2018)

Part of the book series: Communications in Computer and Information Science ((CCIS,volume 932))

Included in the following conference series:

Abstract

Writing SQL queries for database is a complex and skill requiring task especially for the new users. The situation becomes more critical when a low skilled person want to access and analyze his data from a relational database. These scenarios require expertise and skills in terms of understanding and writing the accurate and functional queries. However, these complex tasks can be simplified by providing an easy interface to the users. In order to resolve all such issues, automated software tool is needed, which facilitates both users and software engineers. In this paper we present a novel approach with name Que-Gen (Query Generator) that generates SQL queries based on the specification provided in National English Language. Users need to write the requirements in simple English in a few statements. After a semantic analysis and mapping of the associated information. Que-Gen generates the intended SQL queries that can be executed directly on the database. An experimental study has been conducted to analyze the performance and the accuracy of the purposed tool.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

References

  1. Li, Y., Yang, H., Jagadish, H.V.: Constructing a generic natural language interface for an XML database. In: Ioannidis, Y., et al. (eds.) EDBT 2006. LNCS, vol. 3896, pp. 737–754. Springer, Heidelberg (2006). https://doi.org/10.1007/11687238_44

    Google Scholar 

  2. Li, Y., Yang, H., Jagadish, H.V.: NaLIX: an interactive natural language interface for querying XML. In: SIGMOD (2005)

    Google Scholar 

  3. Popescu, A.-M., Etzioni, O., Kautz, H.: Towards a theory of natural language interfaces to databases. In: IUI, pp. 149–157 (2003)

    Google Scholar 

  4. Popescu, A.-M., Armanasu, A., Etzioni, O., Ko, D., Yates, A.: Modern natural language interfaces to databases: composing statistical parsing with semantic tractability. In: COLING (2004)

    Google Scholar 

  5. Wong, Y.W.: Learning for semantic parsing using statistical machine translation techniques. Technical report UT-AI-05- 323, University of Texas at Austin, Artificial Intelligence Lab, October 2005

    Google Scholar 

  6. Satav, A.G., Ausekar, A.B., Bihani, R.M., Shaikh, A.: A proposed natural language query processing system. Int. J. Sci. Appl. Inf. Technol. 3(2) (2014)

    Google Scholar 

  7. Kaur, G.: Usage of regular expressions in NLP. IJRET 3(1), 7 (2014)

    Google Scholar 

  8. Gaikwad, M.P.: Natural language interface to database. IJEIT 2(8) (2013)

    Google Scholar 

  9. Kaur, J., Chauhan, B., Korepal, J.K.: Implementation of query processor using automata and natural language processing. Int. J. Sci. Res. Publ. 3(5) (2013)

    Google Scholar 

  10. Bhadgale, A.M., Gavas, S.R., Patil, M.M., Pinki, R.: Natural language to SQL conversion system. IJCSEITR 3(2), 161–166 (2013). ISSN 2249-6831

    Google Scholar 

  11. Agrawal, A.J., Kakde, O.G.: Semantic analysis of natural language queries using domain ontology for information access from database. IJISA 12, 81–90 (2013)

    Google Scholar 

  12. Kaur, S., Bali, R.S.: SQL generation and execution from natural language processing. Int. J. Comput. Bus. Res. (2012). ISSN (Online): 2229–6166

    Google Scholar 

  13. Deshpandel, A.K., Prakash, R.: Natural language processing using probabilistic context free grammar. Int. J. Adv. Eng. Technol. 3(2), 568–573 (2012). Devale, Department of Information Technology, Bharati Vidyapeeth Deemed University, Pune, India

    Google Scholar 

  14. Tamrakar, A., Dubey, D.: Query optimization using natural language processing. IJCST 3(1) (2012). Department of CSE, Chhatrapati Sivaji Institute of Technology, CG, India

    Google Scholar 

  15. Gage, M.: A Survey of “Natural Language Processing Techniques for the Simplification of User Interaction with Relational Database Management Systems”. California Polytechnic State University, San Luis Obispo (2012)

    Google Scholar 

  16. Nihalani, N., Silakari, S., Motwani, M.: “Natural language Interface for database”: a brief review. IJCSI 8(2) (2011)

    Google Scholar 

  17. Giordani, A., Moschitti, A.: Semantic mapping between natural language questions and SQL queries via syntactic pairing. Department of Computer Science and Engineering University of Trento via Sommarive 14, 38100 POVO (TN) – Italy (2010)

    Google Scholar 

  18. Chaudhry, G.R.S., KulKarni, N.: Natural language processing using semantic grammar. IJCSE 2(2), 219–223 (2010)

    Google Scholar 

  19. Karande, N.D., Patil, G.A.: Natural language database interface for selection of data using grammar and parsing. World Acad. Sci. Eng. Technol. 3, 11–26 (2009)

    Google Scholar 

  20. Patil, R., Chen, Z.: STRUCT: “Incorporating contextual information for english query search on relational databases” (2012)

    Google Scholar 

  21. Naeem, M.A., et al.: QueGen: “Natural language interface for data warehouse” (2012)

    Google Scholar 

  22. Shannon, K.J.: Implementation of natural language to structured query language translator (2011)

    Google Scholar 

  23. Androutsopoulos, I., et al.: Interfacing the natural language to front end to relational database (1995)

    Google Scholar 

  24. Knowles, S.: SQL-TUTOR intelligent tutoring system (1999)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding authors

Correspondence to Shoaib Saleem Khan , Abid Saeed , Yasir Majeed or Muhammad Kamran .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer Nature Singapore Pte Ltd.

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Khan, S.S., Saeed, A., Majeed, Y., Kamran, M. (2019). Natural Language Based SQL Query Verification Against Relational Schema. In: Bajwa, I., Kamareddine, F., Costa, A. (eds) Intelligent Technologies and Applications. INTAP 2018. Communications in Computer and Information Science, vol 932. Springer, Singapore. https://doi.org/10.1007/978-981-13-6052-7_34

Download citation

  • DOI: https://doi.org/10.1007/978-981-13-6052-7_34

  • Published:

  • Publisher Name: Springer, Singapore

  • Print ISBN: 978-981-13-6051-0

  • Online ISBN: 978-981-13-6052-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics