Translating natural language questions to SQL queries (nested queries)

被引:0
|
作者
Swamidorai, Sindhuja [1 ]
Murthy, T. Satyanarayana [2 ]
Sriharsha, K., V [3 ]
机构
[1] UpGrad, Data Sci, St-1, Bengaluru 500075, Karnataka, India
[2] CBIT, Informat Technol, Hyderabad 560071, Telangana, India
[3] NIT Trichy, Comp Applicat, Tiruchirappalli 620015, Tamil Nadu, India
关键词
Text-to-SQL nested queries; Spider; TEXT-TO-SQL;
D O I
10.1007/s11042-023-16987-2
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
Real world questions are generally complex and need the user to extract information from multiple tables in a database using complex SQL queries like nested queries. Though the overall accuracy in translation of Natural Language queries to SQL queries lies close to 75%, the accuracy of complex queries is still quite less, around 60% in the current state-of-the-art models. In this vein, this study proposes to improve the current IRNet framework for translating natural language queries to nested SQL queries, one type of complex queries. Data oversampling is first used to boost the representation of nested queries in order to achieve this goal. Second, a novel loss function that computes the overall loss while accounting for the complexity of SQL, as measured by the quantity of SELECT columns and keywords in the SQL query. The proposed method exhibited a 5% improvement in prediction of hard and extra hard queries when tested on Spider's development dataset.
引用
收藏
页码:45391 / 45405
页数:15
相关论文
共 9 条
  • [1] Translating natural language questions to SQL queries (nested queries)
    Sindhuja Swamidorai
    T Satyanarayana Murthy
    K V Sriharsha
    Multimedia Tools and Applications, 2024, 83 : 45391 - 45405
  • [2] Translating Natural Language Queries to SQL Using the T5 Model
    Wong, Albert
    Pham, Lien
    Lee, Young
    Chan, Shek
    Sadaya, Razel
    Khmelevsky, Youry
    Clement, Mathias
    Cheng, Florence Wing Yau
    Mahony, Joe
    Ferri, Michael
    18TH ANNUAL IEEE INTERNATIONAL SYSTEMS CONFERENCE, SYSCON 2024, 2024,
  • [3] Similar Questions Correspond to Similar SQL Queries: A Case-Based Reasoning Approach for Text-to-SQL Translation
    Yu, Wei
    Guo, Xiaoting
    Chen, Fei
    Chang, Tao
    Wang, Mengzhu
    Wang, Xiaodong
    CASE-BASED REASONING RESEARCH AND DEVELOPMENT, ICCBR 2021, 2021, 12877 : 294 - 308
  • [4] Generate Text-to-SQL Queries Based on Sketch Filling
    Fu, Yinpei
    Ye, Songtao
    Fan, Hongjie
    IEEE ACCESS, 2024, 12 : 152392 - 152403
  • [5] SEOSS-Queries - a software engineering dataset for text-to-SQL and question answering tasks
    Tomova, Mihaela Todorova
    Hofmann, Martin
    Maeder, Patrick
    DATA IN BRIEF, 2022, 42
  • [6] SQLSketch-TVC: Type, value and compatibility based approach for SQL queries SQLSketch-typed
    Ahkouk, Karam
    Machkour, Mustapha
    APPLIED INTELLIGENCE, 2023, 53 (04) : 3889 - 3898
  • [7] An SQL query generator for cross-domain human language based questions based on NLP model
    Naik, B. Balaji
    Reddy, T. Jaya Venkata Rama
    Karthik, K. Rohith Venkata
    Kuila, Pratyay
    MULTIMEDIA TOOLS AND APPLICATIONS, 2024, 83 (04) : 11861 - 11884
  • [8] An SQL query generator for cross-domain human language based questions based on NLP model
    B. Balaji Naik
    T. Jaya Venkata Rama Reddy
    K. Rohith Venkata karthik
    Pratyay Kuila
    Multimedia Tools and Applications, 2024, 83 : 11861 - 11884
  • [9] On Modern Text-to-SQL Semantic Parsing Methodologies for Natural Language Interface to Databases: A Comparative Study
    Visperas, Moses
    Adoptante, Aunhel John
    Borjal, Christalline Joie
    Abia, Ma. Teresita
    Catapang, Jasper Kyle
    Peramo, Elmer
    2023 INTERNATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE IN INFORMATION AND COMMUNICATION, ICAIIC, 2023, : 390 - 396