Text-to-SQL
Text-to-SQL is a natural language processing technique that automatically converts user queries expressed in natural language into Structured Query Language (SQL) statements, enabling non-technical users to interact directly with relational databases. The technology combines semantic understanding, database schema parsing, and language generation capabilities, and is widely applied in intelligent question answering, data analysis assistance, and enterprise data query systems.
Core Facts
Timeline (last 90 days)
In Text-to-SQL, a natural language question needs to be anchored to schema elements (such as identifying which tables and columns the query involves), a process called schema linking.
In real-world Text-to-SQL systems, schema ambiguity is a common and tricky problem: the same natural language question may map to multiple reasonable schema elements.
The simulated clients constructed in the study were designed based on real enterprise Text-to-SQL use cases, with initial requests deliberately kept vague; the agent must first clarify acceptance criteria, data permissions, and hardware constraints, then plan and execute the post-training solution.
Enterprises should not use benchmark scores as the sole basis for selecting Text-to-SQL models, but should conduct small-scale validation under real data permissions and hardware conditions, treating benchmark results as a necessary but not sufficient condition.
Enterprises wishing to try using LLM agents for Text-to-SQL-type requirements should prioritize models with strong discovery capabilities and set human checkpoints for the delivery phase.
Typical benchmarks in the Text-to-SQL field (such as Spider and BIRD) usually provide clean schemas, well-defined single-turn questions, and standard answers, whereas real enterprise scenarios often contain dirty data, multi-turn clarification, permission filtering, cross-database joins, and ambiguity in metric definitions, leading to a systematic gap between benchmark scores and production performance.
The paper proposes the first schema-documentation-free Text-to-SQL framework, which instead learns database structure from historical query logs.
The success of existing Text-to-SQL methods on academic datasets is built on the premise that the database has complete schema documentation.
Intent Classification is a fundamental task in natural language processing, referring to determining the semantic category of user input, and often serves as the first gate before query generation in Text-to-SQL scenarios.
Schema selection (schema selection/schema linking) is a front-end step of the Text-to-SQL pipeline, is essentially a retrieval and ranking task, and is more sensitive to the model's instruction following, output format stability, and attention allocation over long lists.
11 more timeline events
All Facts (20)
Text-to-SQL助手的核心工具链由四个Tool组成:ListTables、GetSchema、VerifyQuery和ExecuteQuery
95%UnverifiedEarly Text-to-SQL systems relied on rule matching and template filling, with limited accuracy and difficulty handling complex queries
90%Unverified大模型在Text-to-SQL场景中面临幻觉问题,可能生成语法正确但表名/列名错误的SQL
90%UnverifiedGPT-4等大模型在零样本(zero-shot)条件下即可生成高质量SQL
80%UnverifiedThe core challenge of natural language data query tools lies in accurately understanding ambiguous terms in business contexts, where the same term may have different definitions across different departments.
70%Partially VerifiedText-to-SQL is a research direction in NLP with the core goal of automatically converting natural language questions into SQL query statements executable on relational databases
65%UnverifiedIn Text-to-SQL, a natural language question needs to be anchored to schema elements (such as identifying which tables and columns the query involves), a process called schema linking.
50%UnverifiedIn real-world Text-to-SQL systems, schema ambiguity is a common and tricky problem: the same natural language question may map to multiple reasonable schema elements.
50%UnverifiedTypical benchmarks in the Text-to-SQL field (such as Spider and BIRD) usually provide clean schemas, well-defined single-turn questions, and standard answers, whereas real enterprise scenarios often contain dirty data, multi-turn clarification, permission filtering, cross-database joins, and ambiguity in metric definitions, leading to a systematic gap between benchmark scores and production performance.
50%UnverifiedEnterprises wishing to try using LLM agents for Text-to-SQL-type requirements should prioritize models with strong discovery capabilities and set human checkpoints for the delivery phase.
50%UnverifiedEnterprises should not use benchmark scores as the sole basis for selecting Text-to-SQL models, but should conduct small-scale validation under real data permissions and hardware conditions, treating benchmark results as a necessary but not sufficient condition.
50%UnverifiedThe simulated clients constructed in the study were designed based on real enterprise Text-to-SQL use cases, with initial requests deliberately kept vague; the agent must first clarify acceptance criteria, data permissions, and hardware constraints, then plan and execute the post-training solution.
50%UnverifiedThe paper proposes the first schema-documentation-free Text-to-SQL framework, which instead learns database structure from historical query logs.
50%UnverifiedThe success of existing Text-to-SQL methods on academic datasets is built on the premise that the database has complete schema documentation.
50%UnverifiedIntent Classification is a fundamental task in natural language processing, referring to determining the semantic category of user input, and often serves as the first gate before query generation in Text-to-SQL scenarios.
50%UnverifiedSchema selection (schema selection/schema linking) is a front-end step of the Text-to-SQL pipeline, is essentially a retrieval and ranking task, and is more sensitive to the model's instruction following, output format stability, and attention allocation over long lists.
50%UnverifiedIn Text-to-SQL systems, combining static syntax checks, execution plan review, and LLM semantic checks into a multi-layer defense is more reliable than a single checker.
50%UnverifiedThe SIGMOD'27 paper 'Benchmarking Text-to-SQL under Role-Based Access Control' (arXiv 2607.22115) found that under RBAC, showing the model only the columns it is authorized to view does not stop a Text-to-SQL agent from still piecing together an answer when the answer requires hidden columns, rather than refusing to answer.
50%UnverifiedA SIGMOD'27 paper released a public benchmark for Text-to-SQL in RBAC scenarios.
50%UnverifiedSchema grounding is a key step in Text-to-SQL, referring to the system mapping business terms in natural language onto the database's actual tables, fields, primary and foreign key relationships, and constraints, usually accomplished with the help of metadata catalogs, field comments, and business glossaries, and it is a prerequisite for the correctness of the subsequent SQL.
50%