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
相关论文
共 50 条
  • [41] Audio Retrieval with Natural Language Queries
    Oncescu, Andreea-Maria
    Koepke, A. Sophia
    Henriques, Joao F.
    Akata, Zeynep
    INTERSPEECH 2021, 2021, : 2411 - 2415
  • [42] Ontology-Based Understanding of Natural Language Queries Using Nested Conceptual Graphs
    Cao, Tru H.
    Mai, Anh H.
    CONCEPTUAL STRUCTURES: FROM INFORMATION TO INTELLIGENCE, 2010, 6208 : 70 - 83
  • [43] Generating Keyword Queries for Natural Language Queries to Alleviate Lexical Chasm Problem
    Liu, Xiaoyu
    Pan, Shunda
    Zhang, Qi
    Jiang, Yu-Gang
    Huang, Xuanjing
    CIKM'18: PROCEEDINGS OF THE 27TH ACM INTERNATIONAL CONFERENCE ON INFORMATION AND KNOWLEDGE MANAGEMENT, 2018, : 1163 - 1172
  • [44] Formalization for Natural Language Fuzzy Queries and Crisp Multi-Criteria Queries
    Ghumman, Waheed Aslam
    Munoz-Hernandez, Susana
    PROCEEDINGS OF THE 9TH WSEAS INTERNATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE, KNOWLEDGE ENGINEERING AND DATA BASES, 2010, : 352 - +
  • [45] Translating Temporal SQL to Nested SQL
    Dyreson, Curtis
    Rani, Venkata A.
    PROCEEDINGS 23RD INTERNATIONAL SYMPOSIUM ON TEMPORAL REPRESENTATION AND REASONING - TIME 2016, 2016, : 157 - 166
  • [46] Machine Learning Based Intrusion Detection on Complex Nested Transactional SQL Queries
    Aliyu, Garba
    Thandekkattu, George
    Abdulmumin, Idris
    Baba, Usman A.
    Yusuf, Aminat Bolatito
    Nasir, Mustapha
    2022 IEEE NIGERIA 4TH INTERNATIONAL CONFERENCE ON DISRUPTIVE TECHNOLOGIES FOR SUSTAINABLE DEVELOPMENT (IEEE NIGERCON), 2022, : 146 - 150
  • [47] Generating Narrations of Nested SQL Queries Using Context-free Grammars
    Obaido, George
    Ade-Ibijola, Abejide
    Vadapalli, Hima
    2019 CONFERENCE ON INFORMATION COMMUNICATIONS TECHNOLOGY AND SOCIETY (ICTAS), 2019,
  • [48] Sensitivity Analysis of SQL Queries
    Laud, Peeter
    Pettai, Martin
    Randmets, Jaak
    PLAS'18: PROCEEDINGS OF THE 13TH WORKSHOP ON PROGRAMMING LANGUAGES AND ANALYSIS FOR SECURITY, 2018, : 2 - 12
  • [49] XML queries via SQL
    Chen, CX
    Malhotra, A
    WEB-AGE INFORMATION MANAGEMENT, PROCEEDINGS, 2000, 1846 : 53 - 60
  • [50] VENN DIAGRAMS AND SQL QUERIES
    HALPIN, TA
    AUSTRALIAN COMPUTER JOURNAL, 1989, 21 (01): : 27 - 32