计算机科学
SQL语言
程序设计语言
数据定义语言
SQL/PSM
自然语言处理
按示例查询
人工智能
数据库
情报检索
Web搜索查询
搜索引擎
作者
Vanessa Câmara,Rayol Mendonca-Neto,André R.F. Silva,Luiz Alberto Queiroz Cordovil Júnior
标识
DOI:10.1109/icce59016.2024.10444148
摘要
Generating relevant explanations given an structured code representation, such as SQL, is a challenging task. Tackling the SQL-to-text, more specifically the SQL-explanation problem, benefits both non-technical and technical users. Automatic explanations written in human language can facilitate the understanding of the query's logical structure and it also helps developers to better document and learn SQL code. The approaches for this niche are diverse. Some of them involve sequence-to-sequence models and others utilize graph-to-sequence models to generate explanations. However, considering the latest advances in Large Language Models (LLMs) and the relatively little attention in SQL-to-text problem, we investigate a new generative approach based on LLMs to infer the logical structure about the query, including columns, tables and relations. We categorize our research on SQL-explanation as a subtask of SQL-to-text to differ from the translation of SQL code into natural language questions. Experiments were conducted with the open-source Falcon LLM and compared with T5 LLM and Graph2Seq models. The results show that Falcon outperforms previous models achieving 70% of accuracy with human evaluation on Spider dataset and it achieves competitive 75% accuracy with human evaluation on WikiSQL dataset.
科研通智能强力驱动
Strongly Powered by AbleSci AI