# text2sql

A technique that translates natural-language questions into SQL queries for relational databases.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Finding Amazon S3 cost savings with natural language using AWS Quick and S3 Tables

DevFeed: [Finding Amazon S3 cost savings with natural language using AWS Quick and S3 Tables](<https://devfeed.tech/articles/finding-amazon-s3-cost-savings-with-natural-language-using-aws-quick-and-s3-tables-143610.md>)

Original publisher: [Read original article](<https://aws.amazon.com/blogs/storage/finding-amazon-s3-cost-savings-with-natural-language-using-aws-quick-and-s3-tables/>)

Author: Santosh Setty

Published: 2026-11-18T23:59:46Z

Content type: tutorial

Language: en

Sources: [AWS Storage Blog](<https://devfeed.tech/sources/aws-storage-blog.md>)

Topics: [Amazon S3 Tables](<https://devfeed.tech/topics/amazon-s3-tables.md>), [Amazon S3](<https://devfeed.tech/topics/amazon-s3.md>), [cloud cost management](<https://devfeed.tech/topics/cloud-cost-management.md>), [Amazon CloudWatch](<https://devfeed.tech/topics/amazon-cloudwatch.md>), [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [text2sql](<https://devfeed.tech/topics/text2sql.md>)

Tags: [advanced-300](<https://devfeed.tech/tags/advanced-300.md>), [amazon](<https://devfeed.tech/tags/amazon.md>), [amazon-s3](<https://devfeed.tech/tags/amazon-s3.md>), [amazon-s3-tables](<https://devfeed.tech/tags/amazon-s3-tables.md>), [amazon-simple-storage-service-amazon-s3](<https://devfeed.tech/tags/amazon-simple-storage-service-amazon-s3.md>), [aws](<https://devfeed.tech/tags/aws.md>), [aws-cloud-storage](<https://devfeed.tech/tags/aws-cloud-storage.md>), [aws-quick](<https://devfeed.tech/tags/aws-quick.md>), [cost](<https://devfeed.tech/tags/cost.md>), [cost-savings](<https://devfeed.tech/tags/cost-savings.md>), [costs](<https://devfeed.tech/tags/costs.md>), [data](<https://devfeed.tech/tags/data.md>), [growth](<https://devfeed.tech/tags/growth.md>), [logs](<https://devfeed.tech/tags/logs.md>), [metrics](<https://devfeed.tech/tags/metrics.md>), [natural-language](<https://devfeed.tech/tags/natural-language.md>), [overhead](<https://devfeed.tech/tags/overhead.md>), [query](<https://devfeed.tech/tags/query.md>), [questions](<https://devfeed.tech/tags/questions.md>), [replication](<https://devfeed.tech/tags/replication.md>), [request](<https://devfeed.tech/tags/request.md>), [s3](<https://devfeed.tech/tags/s3.md>), [s3-tables](<https://devfeed.tech/tags/s3-tables.md>), [tables](<https://devfeed.tech/tags/tables.md>), [technical-how-to](<https://devfeed.tech/tags/technical-how-to.md>)

### AI overview

Combining S3 Storage Lens metrics with object-level server access logs in S3 Tables lets AWS Quick answer natural-language questions about storage costs across buckets. Storage Lens provides bytes, object counts, and request metrics by storage class and prefix; access logs show object reads but not storage size. The walkthrough exports daily metrics to the aws-s3 table bucket, sends logs through CloudWatch Logs to aws-cloudwatch, then connects both to Quick. Example analyses identify cold prefixes, incomplete multipart uploads, noncurrent versions, cross-Region replication and reads, and rising GET traffic. Setup requires Quick Enterprise, and initial data may take 1-2 days to become useful; logs include sensitive requester and object details. Quick's findings are recommendations: verify the SQL or query in Athena and confirm retention needs before applying permanent expiration rules.

### Source excerpt

Across thousands of S3 buckets, the data you need to cut storage costs sits in different places. Learn how to bring Amazon S3 Storage Lens metrics and server access logs together in S3 Tables and query them with AWS Quick. Find cold data, wasted storage, replication overhead, and request growth by asking questions in natural language.

## MoL-SQL: A Controlled Benchmark for Mixture-of-Language Text-to-SQL

DevFeed: [MoL-SQL: A Controlled Benchmark for Mixture-of-Language Text-to-SQL](<https://devfeed.tech/articles/mol-sql-a-controlled-benchmark-for-mixture-of-language-text-to-sql-140630.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.22333>)

Author: Tianqi Luo, Boyan Li, Yuyu Luo

Published: 2026-11-18T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Databases](<https://devfeed.tech/sources/arxiv-databases.md>)

Topics: [text2sql](<https://devfeed.tech/topics/text2sql.md>), [SQL](<https://devfeed.tech/topics/sql.md>), [AI for SQL query generation](<https://devfeed.tech/topics/ai-for-sql-query-generation.md>)

Tags: [alignment](<https://devfeed.tech/tags/alignment.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [context](<https://devfeed.tech/tags/context.md>), [cs-db](<https://devfeed.tech/tags/cs-db.md>), [database](<https://devfeed.tech/tags/database.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [execution](<https://devfeed.tech/tags/execution.md>), [language](<https://devfeed.tech/tags/language.md>), [llms](<https://devfeed.tech/tags/llms.md>), [mapping](<https://devfeed.tech/tags/mapping.md>), [question](<https://devfeed.tech/tags/question.md>), [schema](<https://devfeed.tech/tags/schema.md>), [sql](<https://devfeed.tech/tags/sql.md>), [translation](<https://devfeed.tech/tags/translation.md>), [values](<https://devfeed.tech/tags/values.md>)

### AI overview

MoL-SQL tests how question, schema, and stored-value languages independently affect Text-to-SQL while keeping each task aligned. Its pipeline maps cross-lingual entities, migrates databases with constraints, checks rewritten SQL for execution equivalence, and regenerates questions from verified queries. The benchmark includes MoL-Full (16,892 samples) for overall evaluation and MoL-Cube (3,840) for comparing every language combination. Experiments across eight LLMs and four method families found distinct schema and value effects; stored-value language reduced accuracy by up to 23 points, mainly through cross-lingual entity mapping. Question translation and extra reasoning did not close that value gap, while access to target-database values substantially reduced it.

### Source excerpt

arXiv:2611.22333v1 Announce Type: new Abstract: Text-to-SQL systems are usually built and evaluated under a monolingual assumption, yet in international applications users often query databases stored in a different language. Existing multilingual benchmarks mostly translate only the question without aligning schema and value entities, so they can neither locate the source of an accuracy drop nor rule out translation errors. Hence, we introduce MoL-SQL, a benchmark for mixture-of-language Text-to-SQL that switches the languages of the question, schema, and stored values independently while keeping each task fixed, and grades every cross-lingual entity mapping into four difficulty levels. We migrate five Text-to-SQL benchmarks of different domains and source languages through a unified alignment pipeline that builds a shared cross-lingual entity map, migrates each database with its constraints, rewrites the gold SQL under execution-equivalence checks, and regenerates the question from the verified SQL, keeping all language versions of a task aligned in entities, intent, and execution result. MoL-SQL provides two splits: MoL-Full (16,892 samples) for overall evaluation and MoL-Cube (3,840 samples) covering every language combination to isolate question, schema, and value effects. Experiments with eight LLMs and four families of Text-to-SQL methods show that schema and value languages have distinct effects, with stored values costing up to 23 points, and that these effects mainly stem from cross-lingual entity mapping. Neither question translation nor additional reasoning narrows the value gap, whereas access to target-database values substantially reduces it, indicating that mixture-of-language Text-to-SQL benefits most from language-aware context grounding.

## Adaptive-Elbow Graph Traversal for Schema Retrieval in Text-to-SQL

DevFeed: [Adaptive-Elbow Graph Traversal for Schema Retrieval in Text-to-SQL](<https://devfeed.tech/articles/adaptive-elbow-graph-traversal-for-schema-retrieval-in-text-to-sql-138306.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.20979>)

Author: Fabio Picariello, Salvatore Cipolla, Susanna Bonura, Vito Morreale

Published: 2026-11-17T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Databases](<https://devfeed.tech/sources/arxiv-databases.md>)

Topics: [text2sql](<https://devfeed.tech/topics/text2sql.md>), [AI for SQL query generation](<https://devfeed.tech/topics/ai-for-sql-query-generation.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [Neo4j](<https://devfeed.tech/topics/neo4j.md>), [cosine similarity search](<https://devfeed.tech/topics/cosine-similarity-search.md>)

Tags: [adaptive](<https://devfeed.tech/tags/adaptive.md>), [agentic](<https://devfeed.tech/tags/agentic.md>), [cs-db](<https://devfeed.tech/tags/cs-db.md>), [cs-ir](<https://devfeed.tech/tags/cs-ir.md>), [database](<https://devfeed.tech/tags/database.md>), [embedding](<https://devfeed.tech/tags/embedding.md>), [fixed](<https://devfeed.tech/tags/fixed.md>), [graph](<https://devfeed.tech/tags/graph.md>), [join](<https://devfeed.tech/tags/join.md>), [llm](<https://devfeed.tech/tags/llm.md>), [precision](<https://devfeed.tech/tags/precision.md>), [question](<https://devfeed.tech/tags/question.md>), [recall](<https://devfeed.tech/tags/recall.md>), [relational-databases](<https://devfeed.tech/tags/relational-databases.md>), [retrieval](<https://devfeed.tech/tags/retrieval.md>), [schema](<https://devfeed.tech/tags/schema.md>), [schemas](<https://devfeed.tech/tags/schemas.md>), [selection](<https://devfeed.tech/tags/selection.md>), [similarity](<https://devfeed.tech/tags/similarity.md>), [sql](<https://devfeed.tech/tags/sql.md>), [text](<https://devfeed.tech/tags/text.md>), [traversal](<https://devfeed.tech/tags/traversal.md>)

### AI overview

AEGT (ElbowHop) retrieves database tables for text-to-SQL using an adaptive elbow cutoff and bidirectional foreign-key traversal. The cutoff selects a per-question schema size instead of a fixed top-k, while traversal can recover join-critical bridge tables that embedding similarity misses. Across BIRD Mini-Dev per-database pools (3-13 tables), its 11 schemas merged (74 tables), and a merged Spider-train graph (546 tables), the adaptive cutoff was the dominant mechanism: at matched recall it roughly doubled precision over a fixed budget on larger pools, with the advantage growing as pools expanded. Foreign-key traversal helped recover bridge tables in the single-hop, tight-budget case. The authors present the approach as a low-cost, recall-robust first retrieval stage for downstream selection or generation.

### Source excerpt

arXiv:2611.20979v1 Announce Type: new Abstract: LLM-based natural-language interfaces to relational databases are gated by a schema-retrieval step: the generator can only be as good as the slice of schema it is shown. On a database with hundreds of tables, that slice must be selected and the selection is two-sided---omit a needed table and the query becomes unrecoverable, include too many and the irrelevant ones act as noise that degrades the model's output. When an agentic retriever that lets the model inspect the schema can be too costly or too slow, the fallback is an embedder that ranks tables by cosine similarity and keeps a top-k. This fallback has two weaknesses: a fixed budget is suboptimal question by question, and embedding similarity overlooks foreign-key-linked tables that are necessary for joins. We present Adaptive-Elbow Graph Traversal (AEGT, ElbowHop for short), a property-graph table retriever that addresses both: an adaptive elbow cutoff replaces the fixed budget with a per-question one under a single aggressiveness parameter, and bidirectional foreign-key traversal deterministically recovers the bridge tables embedding similarity misses. We evaluate the retriever on 3 corpora of increasing candidate-pool size (BIRD Mini-Dev queried per database, 3--13 tables; its eleven schemas merged, 74; and a merged Spider-train graph, 546) and isolate the two mechanisms under a per-question budget-matched protocol. Across these settings the adaptive elbow emerges as the dominant mechanism---at matched recall it roughly doubles precision over a fixed budget on the larger pools, the margin widening as the pool grows---while the foreign-key traversal pays off on the join-critical bridge tables dense retrieval cannot reach, in the single-hop tight-budget case. We characterize the method as a low-cost, recall-robust first stage for schema retrieval on which a downstream selection or generation step can build.

## Optimizing Query Decomposition for Reliable Validation

DevFeed: [Optimizing Query Decomposition for Reliable Validation](<https://devfeed.tech/articles/optimizing-query-decomposition-for-reliable-validation-138298.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.20511>)

Author: Shuo Zhang, Sudeepa Roy, Jun Yang

Published: 2026-11-17T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Databases](<https://devfeed.tech/sources/arxiv-databases.md>)

Topics: [AI for SQL query generation](<https://devfeed.tech/topics/ai-for-sql-query-generation.md>), [text2sql](<https://devfeed.tech/topics/text2sql.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>)

Tags: [aggregation](<https://devfeed.tech/tags/aggregation.md>), [cost](<https://devfeed.tech/tags/cost.md>), [cs-db](<https://devfeed.tech/tags/cs-db.md>), [databases](<https://devfeed.tech/tags/databases.md>), [large-language-models-llms](<https://devfeed.tech/tags/large-language-models-llms.md>), [nested](<https://devfeed.tech/tags/nested.md>), [optimizing](<https://devfeed.tech/tags/optimizing.md>), [plan](<https://devfeed.tech/tags/plan.md>), [query](<https://devfeed.tech/tags/query.md>), [reliability](<https://devfeed.tech/tags/reliability.md>), [sql](<https://devfeed.tech/tags/sql.md>), [validation](<https://devfeed.tech/tags/validation.md>)

### AI overview

DecoVal chooses how to split a generated SQL query into smaller, recomposable blocks so a particular validator can check each block against its sub-question. It models validator ability and task difficulty, then balances expected reliability against the number of judgments across decompositions derived from logical-plan rewrites. The pipeline combines block-level verdicts into a query-level decision and helps locate errors. In a user study, humans caught 91% of errors with DecoVal versus 36% without decomposition, locating the error in nearly every rejection. Experiments on BEAVER and Spider 2.0 report higher LLM error-detection recall than whole-query validation while keeping precision high; the best decomposition granularity varies by validator.

### Source excerpt

arXiv:2611.20511v1 Announce Type: new Abstract: Large language models (LLMs) have made querying databases more accessible, but cannot guarantee that the SQL they generate is correct. Without a trusted reference query, a validator (human or LLM) must decide whether a generated query answers the intended question. Enterprise questions often require queries with multiple joins, nested subqueries, and multi-level aggregation, and validating such a query in one judgment is error-prone. Decomposition simplifies this task by rewriting a query into smaller queries (blocks) that recompose to the original, each checked against its own sub-question. Decompositions differ, however: smaller blocks make each judgment easier but require more judgments, and the best balance depends on the validator's ability. We formulate validation-aware query decomposition as an optimization problem. Just as a query optimizer chooses among equivalent plans by estimated cost, we choose among decompositions by how reliably a given validator is expected to check them. We model how task difficulty and validator ability jointly affect reliability and define an objective that balances reliability against the number of judgments. Over a space of decompositions derived from logical-plan rewrites, our search finds an optimal one. We implement it in DecoVal, a pipeline that presents each block with its sub-question and input interface, combines local verdicts into a query-level decision, and localizes errors to blocks. A user study shows that decomposition helps human validators catch and locate errors: with DecoVal, participants caught 91% of the errors, up from 36% without decomposition, and located the error in nearly every rejection. Experiments on BEAVER and Spider 2.0 with LLM validators show that DecoVal also raises error-detection recall over whole-query validation while keeping precision high, and that the best granularity depends on the validator.

## Living Context Graphs: Continual Semantic Learning for Enterprise Data Reasoning

DevFeed: [Living Context Graphs: Continual Semantic Learning for Enterprise Data Reasoning](<https://devfeed.tech/articles/living-context-graphs-continual-semantic-learning-for-enterprise-data-reasoning-137638.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.20976>)

Author: Varun Agrawal, Ayush Srivastava, Eshan Gujar, Kaushal Kumar, Ayush Gupta

Published: 2026-11-17T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Databases](<https://devfeed.tech/sources/arxiv-databases.md>)

Topics: [semantic-layer](<https://devfeed.tech/topics/semantic-layer.md>), [text2sql](<https://devfeed.tech/topics/text2sql.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [graph-database](<https://devfeed.tech/topics/graph-database.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [analytics](<https://devfeed.tech/tags/analytics.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [bootstrapping](<https://devfeed.tech/tags/bootstrapping.md>), [business-context](<https://devfeed.tech/tags/business-context.md>), [context-graphs](<https://devfeed.tech/tags/context-graphs.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-db](<https://devfeed.tech/tags/cs-db.md>), [cs-et](<https://devfeed.tech/tags/cs-et.md>), [cs-ir](<https://devfeed.tech/tags/cs-ir.md>), [data](<https://devfeed.tech/tags/data.md>), [database](<https://devfeed.tech/tags/database.md>), [databases](<https://devfeed.tech/tags/databases.md>), [enterprise](<https://devfeed.tech/tags/enterprise.md>), [enterprise-ai](<https://devfeed.tech/tags/enterprise-ai.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [graph](<https://devfeed.tech/tags/graph.md>), [graphs](<https://devfeed.tech/tags/graphs.md>), [learning](<https://devfeed.tech/tags/learning.md>), [learnings](<https://devfeed.tech/tags/learnings.md>), [meaning](<https://devfeed.tech/tags/meaning.md>), [metric](<https://devfeed.tech/tags/metric.md>), [reasoning](<https://devfeed.tech/tags/reasoning.md>), [semantic](<https://devfeed.tech/tags/semantic.md>)

### AI overview

Living Context Graph (LCG) makes existing enterprise data usable for AI without copying or transforming the warehouse. It derives initial semantics and relationships from data, indexes business context in a concept graph as queries are served, and stores learnings from verified outcomes; it can withdraw or relearn context when later results contradict earlier routes. In text-to-SQL tests across three BIRD databases (499 questions), bootstrapping improved overall accuracy by 4.6 percentage points. Learning from 353 history questions improved accuracy on 146 untouched transfer questions by 22.6 points (95% CI +14.4 to +30.8), 12.3 points more than five-shot retrieval from the same history. Incremental learning reached the one-shot endpoint within observed evaluation noise on each database. Removing the graph changed held-out accuracy by at most one question per database, but raised per-query cost 2.3-3.3x and median latency 1.8-3.4x.

### Source excerpt

arXiv:2611.20976v1 Announce Type: cross Abstract: Enterprise AI can now perform analytics, reporting, and data-driven workflows, yet the data foundations it relies on remain hard to operationalize: business meaning, relationships, metric definitions, and reporting conventions are absent from database schemas and scattered across undocumented systems and tribal knowledge. We introduce the Living Context Graph (LCG), a continually learned context layer that makes existing enterprise data operational for AI without requiring a copy or transformation of the underlying warehouse. LCG bootstraps base semantics and relationships from the data itself, builds a concept graph that indexes business context as queries are served, writes durable semantic learnings from verified outcomes, and withdraws or re-earns context when later outcomes contradict prior routes. We evaluate LCG through text-to-SQL, a core data-reasoning task, on a transfer-aware split of three BIRD databases comprising 499 questions: 353 form the learning history and 146 are held out and never used to update the context layer. Bootstrapping alone improves overall accuracy by +4.6 percentage points. Learning only from the history raises accuracy on the untouched held-out transfer set by +22.6 points (95% CI [+14.4, +30.8]), exceeding five-shot retrieval from the same history by +12.3 points. Incremental learning reaches the one-shot endpoint within observed evaluation noise on every database. Ablating the graph changes held-out accuracy by at most one question per database but increases per-query cost 2.3-3.3x and median latency 1.8-3.4x: continually learned semantics drive accuracy, while the graph makes that context efficient to serve.

## LuthorSQL: A One-Pass Text-to-SQL Model as System 1 for a Slower LLM Agent

DevFeed: [LuthorSQL: A One-Pass Text-to-SQL Model as System 1 for a Slower LLM Agent](<https://devfeed.tech/articles/luthorsql-a-one-pass-text-to-sql-model-as-system-1-for-a-slower-llm-agent-135111.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.17780>)

Author: Ibrahim Memon, Armin Karamzade, M. Hanif Jhaveri, Roy Fox

Published: 2026-11-16T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Databases](<https://devfeed.tech/sources/arxiv-databases.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [text2sql](<https://devfeed.tech/topics/text2sql.md>), [AI for SQL query generation](<https://devfeed.tech/topics/ai-for-sql-query-generation.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [quantization](<https://devfeed.tech/topics/quantization.md>), [DuckDB](<https://devfeed.tech/topics/duckdb.md>), [SQL](<https://devfeed.tech/topics/sql.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [autoregressive](<https://devfeed.tech/tags/autoregressive.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [bigquery](<https://devfeed.tech/tags/bigquery.md>), [cascade](<https://devfeed.tech/tags/cascade.md>), [claude](<https://devfeed.tech/tags/claude.md>), [claude-opus-5-5](<https://devfeed.tech/tags/claude-opus-5-5.md>), [confidence](<https://devfeed.tech/tags/confidence.md>), [cost](<https://devfeed.tech/tags/cost.md>), [costs](<https://devfeed.tech/tags/costs.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-db](<https://devfeed.tech/tags/cs-db.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [data](<https://devfeed.tech/tags/data.md>), [databases](<https://devfeed.tech/tags/databases.md>), [duckdb](<https://devfeed.tech/tags/duckdb.md>), [execution](<https://devfeed.tech/tags/execution.md>), [external](<https://devfeed.tech/tags/external.md>), [llm](<https://devfeed.tech/tags/llm.md>), [model](<https://devfeed.tech/tags/model.md>), [sql](<https://devfeed.tech/tags/sql.md>), [system](<https://devfeed.tech/tags/system.md>), [text](<https://devfeed.tech/tags/text.md>)

### AI overview

LuthorSQL is a local 7B text-to-SQL model designed to handle confident queries in one forward pass and send uncertain ones to a slower LLM agent. It scores query-plan slots under a bounded grammar, runs up to 32 candidate plans, and selects with a trained validator. On BIRD's hidden test set it achieved 68.03% execution accuracy at 0.84 seconds per question on one GPU; 8-bit quantization preserved accuracy in 9 GB, and zero-shot results on five other databases were within 3.1 points of SQLite. In a pre-registered cascade with Claude Opus 5.5 on 227 post-cutoff database questions, it answered nearly half locally and reduced API cost 33.3% at the same accuracy. The abstract also reports substantial verbatim reproduction of public benchmark queries by Opus, while its tool-assisted accuracy held on renamed schemas and reached 95.6-97.4% on post-cutoff databases.

### Source excerpt

arXiv:2611.17780v1 Announce Type: cross Abstract: Frontier LLM agents that query databases with tools are among the most accurate text-to-SQL systems, but per-query calls to a hosted model are slow, costly, and expose sensitive organizational queries to external APIs. For example, a Claude Opus 5.5 agent serving 10,000 queries a day costs over $70,000 a year at list price. To what extent can local hardware already owned by an organization offload this burden without compromising the agent's accuracy? We present LuthorSQL, a non-autoregressive 7B text-to-SQL model that serves as a rapid System 1 gate for a slower LLM agent (System 2), escalating queries only when uncertain. LuthorSQL makes a single forward pass to predict slot scores over a bounded grammar for query plans, compiles and runs up to 32 candidate plans, and chooses an answer using a trained validator. On its own, LuthorSQL reaches 68.03% execution accuracy on BIRD's hidden test set at 0.84 s per question on a single GPU, maintains its accuracy in 9 GB with 8-bit quantized weights, and transfers zero-shot to Snowflake, BigQuery, MySQL, PostgreSQL, and DuckDB within 3.1 points of its native SQLite accuracy. Combined with Claude Opus 5.5 in a pre-registered confidence cascade over 227 questions on databases published after Opus's training cutoff, LuthorSQL answers nearly half of all questions locally and cuts API cost by 33.3% at the same accuracy. Finally, contamination probing shows that Opus reproduces 48-92% of public benchmark gold queries verbatim without seeing the schema; however, its tool-assisted accuracy holds on renamed schemas and reaches 95.6-97.4% on post-cutoff databases. Code and data: https://github.com/IAMIbrahimmemon/luthorsql

## MEM-SQL: Memory-Empowered Text-to-SQL

DevFeed: [MEM-SQL: Memory-Empowered Text-to-SQL](<https://devfeed.tech/articles/mem-sql-memory-empowered-text-to-sql-135446.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.18338>)

Author: Xiaoqi Wang, Wenqi Pei, Shizheng Hou, Yilai Liu, Han Chen, Boyan Li, Yuyu Luo, Hongyang Du

Published: 2026-11-16T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Databases](<https://devfeed.tech/sources/arxiv-databases.md>)

Topics: [text2sql](<https://devfeed.tech/topics/text2sql.md>), [AI for SQL query generation](<https://devfeed.tech/topics/ai-for-sql-query-generation.md>), [SQL](<https://devfeed.tech/topics/sql.md>), [JOIN](<https://devfeed.tech/topics/join.md>)

Tags: [benchmark](<https://devfeed.tech/tags/benchmark.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [cost](<https://devfeed.tech/tags/cost.md>), [cs-db](<https://devfeed.tech/tags/cs-db.md>), [database](<https://devfeed.tech/tags/database.md>), [databases](<https://devfeed.tech/tags/databases.md>), [datasets](<https://devfeed.tech/tags/datasets.md>), [domain](<https://devfeed.tech/tags/domain.md>), [edits](<https://devfeed.tech/tags/edits.md>), [execution](<https://devfeed.tech/tags/execution.md>), [generation](<https://devfeed.tech/tags/generation.md>), [history](<https://devfeed.tech/tags/history.md>), [join](<https://devfeed.tech/tags/join.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [latency](<https://devfeed.tech/tags/latency.md>), [layer](<https://devfeed.tech/tags/layer.md>), [linking](<https://devfeed.tech/tags/linking.md>), [mappings](<https://devfeed.tech/tags/mappings.md>), [memory](<https://devfeed.tech/tags/memory.md>), [queries](<https://devfeed.tech/tags/queries.md>), [sql](<https://devfeed.tech/tags/sql.md>)

### AI overview

MEM-SQL uses verified query history to improve Text-to-SQL accuracy while reducing generation cost. Its HARE benchmark contains 1,600 requests derived from 823 verified queries across four datasets, with annotations distinguishing whole-query adaptation from partial reuse. MEM-SQL stores query templates, reusable SQL blocks, and mappings from domain concepts to schema elements; it uses a layer only when all its assigned requirements match above a threshold. On-demand Schema Linking consults the schema when no layer qualifies or retrieved evidence seems insufficient. Across six language models on HARE, mean execution accuracy rose from 37.1% for direct generation without history to 50.0%, while input tokens fell 76.6% and latency 68.8% on average. Reusing several queries remains difficult: accuracy fell from 56.7% to 29.7%, especially when components must be reorganized or combined around a shared join. OSL reduced generation cost for three other memory designs, but its accuracy effect depended on the design.

### Source excerpt

arXiv:2611.18338v1 Announce Type: new Abstract: Text-to-SQL systems translate natural language questions into SQL queries over increasingly complex databases. However, widely used benchmarks evaluate questions independently, overlooking settings where earlier queries over the same database can supply joins or calculations for a new question. We introduce HARE (History-AwaRe Text-to-SQL BEnchmark) to measure the accuracy and cost of adapting historical SQL. HARE comprises 1,600 requests derived from a fixed pool of 823 verified queries across four datasets. Annotations record which components each request preserves and which edits it requires, distinguishing whole-query adaptation from partial reuse. Our method, MEM-SQL (Memory-EMpowered Text-to-SQL), stores whole-query templates, reusable SQL blocks, and mappings from domain concepts to schema elements. MEM-SQL uses a layer only if every requirement assigned to it has a match above that layer's threshold. With On-demand Schema Linking (OSL), MEM-SQL consults the schema only when no layer qualifies or the generator judges retrieved evidence insufficient. Across six language models on HARE, mean execution accuracy rises from 37.1% for Direct Generation without history to 50.0% for MEM-SQL, with 76.6% fewer input tokens and 68.8% lower latency on average. Further analysis shows that requests reusing several verified queries remain a bottleneck, with accuracy falling from 56.7% to 29.7%, most sharply when reused components must be placed in a new query structure or combined with a shared join. Applying OSL to three other memory designs consistently reduces generation cost, while its accuracy benefit depends on the memory design. Verified history can thus make generation both more accurate and cheaper, but its value depends on the evidence retained and when the system consults the schema.

## Bridge: Database-Grounded Interactive Disambiguation for Text-to-SQL

DevFeed: [Bridge: Database-Grounded Interactive Disambiguation for Text-to-SQL](<https://devfeed.tech/articles/bridge-database-grounded-interactive-disambiguation-for-text-to-sql-135443.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.17770>)

Author: Sau Lai Yip, Yue Pang, Shiwen Wu, Xiaofang Zhou

Published: 2026-11-16T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Databases](<https://devfeed.tech/sources/arxiv-databases.md>)

Topics: [text2sql](<https://devfeed.tech/topics/text2sql.md>), [SQL](<https://devfeed.tech/topics/sql.md>), [AI for SQL query generation](<https://devfeed.tech/topics/ai-for-sql-query-generation.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>)

Tags: [about](<https://devfeed.tech/tags/about.md>), [abstract](<https://devfeed.tech/tags/abstract.md>), [alternatives](<https://devfeed.tech/tags/alternatives.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [based](<https://devfeed.tech/tags/based.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [bridge](<https://devfeed.tech/tags/bridge.md>), [but](<https://devfeed.tech/tags/but.md>), [challenge](<https://devfeed.tech/tags/challenge.md>), [column](<https://devfeed.tech/tags/column.md>), [cost](<https://devfeed.tech/tags/cost.md>), [cs-db](<https://devfeed.tech/tags/cs-db.md>), [database](<https://devfeed.tech/tags/database.md>), [detection](<https://devfeed.tech/tags/detection.md>), [dev](<https://devfeed.tech/tags/dev.md>), [effectiveness](<https://devfeed.tech/tags/effectiveness.md>), [errors](<https://devfeed.tech/tags/errors.md>), [grounded](<https://devfeed.tech/tags/grounded.md>), [interactive](<https://devfeed.tech/tags/interactive.md>), [sql](<https://devfeed.tech/tags/sql.md>), [text](<https://devfeed.tech/tags/text.md>)

### AI overview

Bridge addresses text-to-SQL ambiguity by grounding iterative clarification in database-specific offline indexes. It builds a Column Ambiguity Graph from database-grounded signals and LLM verification, then uses columns and values from an incorrect SQL prediction to retrieve alternatives from that graph and a value-similarity index for further pruning and ambiguity detection. On BIRD-dev without benchmark-provided evidence, Bridge reportedly exceeded the strongest baseline by 11.60% in execution accuracy at comparable LLM cost, with column-usage recall and precision gains of 5.25% and 12.37%. These findings are reported in the supplied abstract.

### Source excerpt

arXiv:2611.17770v1 Announce Type: new Abstract: Ambiguity remains a persistent challenge in text-to-SQL, where an underspecified natural-language question may admit multiple plausible SQL interpretations. Recent work attempts to recover the user's intended interpretation through iterative clarification, but typically relies heavily on LLM parametric knowledge for ad hoc reasoning, leading to limited ambiguity-resolution effectiveness and high LLM cost. We further observe that many ambiguity errors stem from ambiguous column grounding, which remains poorly handled. Therefore, we propose Bridge, a database-grounded disambiguation framework built on an existing iterative protocol. Bridge supplies the LLM's ambiguity detection with offline-distilled knowledge about potential ambiguity relations among columns in the target database. Offline, Bridge constructs a Column Ambiguity Graph by first identifying potentially ambiguous column pairs using complementary database-grounded signals, followed by LLM-based verification. Online, columns and values mentioned in a previous incorrect SQL prediction are used as anchors to retrieve alternatives from the Column Ambiguity Graph and an offline-constructed value similarity index, respectively. The results are integrated for further pruning and consolidated for subsequent ambiguity detection. Extensive experiments on BIRD-dev without the benchmark-provided evidence show that, at comparable LLM cost, Bridge outperforms the strongest baseline by 11.60% in execution accuracy and improves the recall and precision of column usage in the final SQL by 5.25% and 12.37%, respectively.

## STRATOS: Bridging the Symbolic-to-Numeric Gap in Spatio-Temporal Text-to-SQL for Meteorological Data

DevFeed: [STRATOS: Bridging the Symbolic-to-Numeric Gap in Spatio-Temporal Text-to-SQL for Meteorological Data](<https://devfeed.tech/articles/stratos-bridging-the-symbolic-to-numeric-gap-in-spatio-temporal-text-to-sql-for-meteorological-data-131944.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2607.03501>)

Author: Yi Zhang, Farhad Nooralahzadeh, Jonathan F\\"urst, Fabio Scherrer, Claude Lehmann, Antonis Bezes, Vassiliki Kotroni, Kurt Stockinger

Published: 2026-11-13T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Databases](<https://devfeed.tech/sources/arxiv-databases.md>)

Topics: [text2sql](<https://devfeed.tech/topics/text2sql.md>), [AI for SQL query generation](<https://devfeed.tech/topics/ai-for-sql-query-generation.md>), [geospatial](<https://devfeed.tech/topics/geospatial.md>), [SQL](<https://devfeed.tech/topics/sql.md>), [Dataset development](<https://devfeed.tech/topics/dataset-development.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [climate](<https://devfeed.tech/tags/climate.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-db](<https://devfeed.tech/tags/cs-db.md>), [cs-ma](<https://devfeed.tech/tags/cs-ma.md>), [data](<https://devfeed.tech/tags/data.md>), [datasets](<https://devfeed.tech/tags/datasets.md>), [dimensions](<https://devfeed.tech/tags/dimensions.md>), [execution](<https://devfeed.tech/tags/execution.md>), [exploration](<https://devfeed.tech/tags/exploration.md>), [external](<https://devfeed.tech/tags/external.md>), [framework](<https://devfeed.tech/tags/framework.md>), [knowledge](<https://devfeed.tech/tags/knowledge.md>), [mapping](<https://devfeed.tech/tags/mapping.md>), [ontology](<https://devfeed.tech/tags/ontology.md>), [query](<https://devfeed.tech/tags/query.md>), [real-world](<https://devfeed.tech/tags/real-world.md>), [scalability](<https://devfeed.tech/tags/scalability.md>), [semantic](<https://devfeed.tech/tags/semantic.md>), [spatial](<https://devfeed.tech/tags/spatial.md>), [sql](<https://devfeed.tech/tags/sql.md>), [temporal](<https://devfeed.tech/tags/temporal.md>), [text](<https://devfeed.tech/tags/text.md>)

### AI overview

STRATOS aims to make meteorological datasets more accessible through natural-language Text-to-SQL by resolving spatial and semantic ambiguities before SQL generation. Its resolution agent maps fuzzy concepts to a localized ontology and uses external knowledge bases to resolve spatial entities; a complexity-aware query rewriter changes expensive spatial predicates, with the abstract reporting execution times reduced from hours to seconds. The authors also introduce a domain-expert workload of 7,520 complex query pairs to evaluate scalability and symbolic-to-numeric translation across spatio-temporal dimensions. These are claims in the supplied abstract; it does not provide evaluation details or further evidence for the reported speedup.

### Source excerpt

arXiv:2607.03501v2 Announce Type: replace-cross Abstract: Copernicus, the European Union's Earth observation program, produces petabytes of Earth observation and climate data, offering immense potential for research, policy, and applications. However, access to these datasets requires advanced programming skills and familiarity with domain-specific formats such as NetCDF or GRIB. Moreover, general-purpose Text-to-SQL systems fail when applied naively to the meteorological domain due to a profound ``Symbolic-to-Numeric'' gap. To overcome these limitations, we present an end-to-end Text-to-SQL framework specifically engineered for real-world, scalable meteorological data exploration. Our system intercepts natural language to resolve spatial and semantic ambiguities \textit{before} SQL generation. We design STRATOS, a Spatio-Temporal Resolution Agent for Text-to-SQL to dynamically bridge the symbolic-to-numeric gap by mapping fuzzy concepts to a localized ontology and resolving spatial entities via external knowledge bases. Further, our complexity-aware query rewriter rewrites expensive spatial predicates, reducing execution times from hours to seconds. Last, we introduce the STRATOS Evaluation Workload, comprising 7,520 complex query pairs explicitly designed by domain experts to test scalability and symbolic-to-numeric translation across challenging spatio-temporal dimensions previously unexplored by Text-to-SQL systems.

## FlinkEval: A Synthetic Corpus for Evaluating Natural Language Interfaces to Streaming SQL

DevFeed: [FlinkEval: A Synthetic Corpus for Evaluating Natural Language Interfaces to Streaming SQL](<https://devfeed.tech/articles/flinkeval-a-synthetic-corpus-for-evaluating-natural-language-interfaces-to-streaming-sql-132705.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.17093>)

Author: Alfio Massimiliano Gliozzo, Nandana Mihindukulasooriya, Gaetano Rossiello, Erick Lee, Lisa Amini

Published: 2026-11-13T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Databases](<https://devfeed.tech/sources/arxiv-databases.md>)

Topics: [text2sql](<https://devfeed.tech/topics/text2sql.md>), [LLM evaluation / benchmarking](<https://devfeed.tech/topics/llm-evaluation-benchmarking.md>), [Apache Flink](<https://devfeed.tech/topics/apache-flink.md>), [SQL](<https://devfeed.tech/topics/sql.md>), [Confluent Cloud](<https://devfeed.tech/topics/confluent-cloud.md>)

Tags: [analysis](<https://devfeed.tech/tags/analysis.md>), [annotations](<https://devfeed.tech/tags/annotations.md>), [apache-flink](<https://devfeed.tech/tags/apache-flink.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [bounded](<https://devfeed.tech/tags/bounded.md>), [complexity](<https://devfeed.tech/tags/complexity.md>), [composition](<https://devfeed.tech/tags/composition.md>), [confluent](<https://devfeed.tech/tags/confluent.md>), [confluent-cloud](<https://devfeed.tech/tags/confluent-cloud.md>), [cs-db](<https://devfeed.tech/tags/cs-db.md>), [data](<https://devfeed.tech/tags/data.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [domains](<https://devfeed.tech/tags/domains.md>), [evaluations](<https://devfeed.tech/tags/evaluations.md>), [execution](<https://devfeed.tech/tags/execution.md>), [interfaces](<https://devfeed.tech/tags/interfaces.md>), [natural-language](<https://devfeed.tech/tags/natural-language.md>), [sql](<https://devfeed.tech/tags/sql.md>), [streaming](<https://devfeed.tech/tags/streaming.md>), [synthetic](<https://devfeed.tech/tags/synthetic.md>)

### AI overview

FlinkEval provides 3,903 execution-grounded question-SQL pairs for evaluating natural-language interfaces to streaming SQL across 45 industry domains and 45 semantic labels. Its schemas and temporally consistent data are generated and validated iteratively; patterns from human-written pairs and vendor documentation guide quota-balanced generation, with reference queries executed and repaired on Confluent Cloud Apache Flink. The corpus covers windowing, temporal joins, pattern matching, nested types, and data manipulation, and pairs schema-explicit requests with business-language versions. A seven-level Question Specification Ladder tests reformulations and underspecified requests supplemented with oracle-derived clues. Baselines combine execution results with adjudicated LLM judgments and identify difficulties in composing patterns and specifying requests.

### Source excerpt

arXiv:2611.17093v1 Announce Type: new Abstract: Existing natural-language-to-SQL benchmarks primarily evaluate queries over bounded relational data, leaving streaming semantics underexplored. We introduce FlinkEval, an execution-grounded synthetic benchmark comprising 3,903 question--SQL pairs across 45 industry domains and 45 semantic labels. We create diverse schemas and domain-plausible, temporally consistent data through iterative generation and validation. SQL patterns collected from the human-written NL2SQL pairs and vendor documentation drive quota-balanced generation, and execution with a repair loop on Confluent Cloud Apache Flink produces reference queries covering windowing, temporal joins, pattern matching, nested types, and data manipulation. The corpus includes paired schema-explicit and business-language requests, with annotations for analysis by query pattern, complexity, and execution mode. A seven-level Question Specification Ladder examines semantics-preserving reformulation and underspecified requests augmented with oracle-derived clues. Baseline evaluations combine execution outcomes with adjudicated LLM judgments, revealing challenges in pattern composition and request specification.

## Natural Language Interfaces for Databases: What Changes for SQL-Literate Users?

DevFeed: [Natural Language Interfaces for Databases: What Changes for SQL-Literate Users?](<https://devfeed.tech/articles/natural-language-interfaces-for-databases-what-changes-for-sql-literate-users-125654.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2511.14718>)

Author: Panos Ipeirotis, Haotian Zheng

Published: 2026-11-10T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Databases](<https://devfeed.tech/sources/arxiv-databases.md>)

Topics: [text2sql](<https://devfeed.tech/topics/text2sql.md>), [AI for SQL query generation](<https://devfeed.tech/topics/ai-for-sql-query-generation.md>)

Tags: [benchmark](<https://devfeed.tech/tags/benchmark.md>), [cs-db](<https://devfeed.tech/tags/cs-db.md>), [cs-hc](<https://devfeed.tech/tags/cs-hc.md>), [databases](<https://devfeed.tech/tags/databases.md>), [interfaces](<https://devfeed.tech/tags/interfaces.md>), [natural-language](<https://devfeed.tech/tags/natural-language.md>), [querying](<https://devfeed.tech/tags/querying.md>), [sql](<https://devfeed.tech/tags/sql.md>), [users](<https://devfeed.tech/tags/users.md>)

### AI overview

In a study of 20 SQL-literate participants completing 12 BIRD tasks each, the GPT-4o-backed NLIDB SQL-LLM reduced query completion time by 31% compared with manual SQL in Snowflake, but accuracy was 46% versus 64%. The sample could not establish that accuracy difference ($p = 0.08$); excluding one SQL-LLM timeout session narrowed it to 14 points. Think-aloud data from 11 participants suggest the work shifted: SQL-LLM users relied on the model for initial schema navigation, mainly on easier tasks, then checked its generated SQL, while Snowflake users explored the schema and wrote queries manually. Coded behavior rates did not differ detectably, and positive task remarks did not reliably indicate correct answers. The findings suggest faster querying with verification still required; they are limited to this small sample and tasks that included hints naming target columns and operators.

### Source excerpt

arXiv:2511.14718v4 Announce Type: replace Abstract: Natural Language Interfaces for Databases (NLIDBs) let users query data in everyday language instead of SQL, and modern systems translate most questions accurately. Does an NLIDB remove the work of querying, or move it? We compared SQL-LLM, a GPT-4o-backed NLIDB, with Snowflake, a manual-SQL platform. Twenty SQL-literate professionals and graduate students, ten per interface, each completed 12 BIRD benchmark tasks with hints naming target columns and operators. SQL-LLM cut completion time per query by 31%. It did not improve accuracy: SQL-LLM users answered 46% of queries correctly versus 64% for Snowflake, a gap this sample cannot confirm ($p = 0.08$) that narrows to 14 points without one session where the system timed out. Think-aloud audio from 11 participants (4 SQL-LLM, 7 Snowflake) showed how the work shifted: SQL-LLM users left initial schema navigation to the model, mainly on easier tasks, and focused on checking the generated SQL, while Snowflake users explored the schema and wrote queries by hand. Coded behavior rates did not differ detectably between arms, and positive remarks during a task did not reliably predict a correct answer. The evidence fits a reallocation of querying work, not its removal: users still had to check the generated SQL.

## Enabling Privacy-Preserving Natural Language Access to Industrial Smart Meter Data

DevFeed: [Enabling Privacy-Preserving Natural Language Access to Industrial Smart Meter Data](<https://devfeed.tech/articles/enabling-privacy-preserving-natural-language-access-to-industrial-smart-meter-data-124232.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.09372>)

Author: Carlos Mart\\'in-Abell\\'an, Mark Kr\\"oll

Published: 2026-11-09T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Databases](<https://devfeed.tech/sources/arxiv-databases.md>)

Topics: [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [AI for SQL query generation](<https://devfeed.tech/topics/ai-for-sql-query-generation.md>), [text2sql](<https://devfeed.tech/topics/text2sql.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [AI Architecture](<https://devfeed.tech/topics/ai-architecture.md>), [Conversational AI](<https://devfeed.tech/topics/conversational-ai.md>), [digital sovereignty](<https://devfeed.tech/topics/digital-sovereignty.md>), [SQL](<https://devfeed.tech/topics/sql.md>), [Differential Privacy](<https://devfeed.tech/topics/differential-privacy.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agent-orchestration](<https://devfeed.tech/tags/agent-orchestration.md>), [anomaly-detection](<https://devfeed.tech/tags/anomaly-detection.md>), [cloud-based](<https://devfeed.tech/tags/cloud-based.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-db](<https://devfeed.tech/tags/cs-db.md>), [cs-ma](<https://devfeed.tech/tags/cs-ma.md>), [databases](<https://devfeed.tech/tags/databases.md>), [energy](<https://devfeed.tech/tags/energy.md>), [grid](<https://devfeed.tech/tags/grid.md>), [industrial](<https://devfeed.tech/tags/industrial.md>), [natural-language](<https://devfeed.tech/tags/natural-language.md>), [privacy](<https://devfeed.tech/tags/privacy.md>), [smart](<https://devfeed.tech/tags/smart.md>), [sql](<https://devfeed.tech/tags/sql.md>), [telemetry](<https://devfeed.tech/tags/telemetry.md>)

### AI overview

OpenMeter is a schema-agnostic multi-agent system that turns natural-language questions about industrial smart meter data into executable code and human-readable insights, aiming to help utility staff without SQL expertise while keeping sensitive data local when cloud LLM use is restricted. In the reported ablations, full orchestration produced its largest accuracy gain on resource-constrained local hardware: +6.1 percentage points in EX-R over the strongest single-agent configuration. At frontier scale, individual components still helped, but the abstract says they should be enabled selectively; it presents full orchestration's cost as justified specifically when privacy requires local execution.

### Source excerpt

arXiv:2611.09372v1 Announce Type: cross Abstract: Energy management officers and grid operators increasingly rely on smart meter data for anomaly detection, performance monitoring, and strategic decision-making. However, extracting actionable insights from large-scale, heterogeneous telemetry databases requires advanced SQL and data engineering expertise, creating a critical bottleneck for non-technical personnel. Furthermore, the strict data privacy regulations and security constraints inherent to critical energy infrastructure often prohibit the routing of sensitive consumer data through cloud-based Large Language Models (LLMs). To address these challenges, we present OpenMeter, a schema-agnostic Multi-Agent System (MAS) designed to translate natural language queries into executable code and human-readable insights. This architecture lowers the technical barrier for day-to-day utility operations by empowering non-expert personnel to interact with complex databases through intuitive natural language dialogue, transforming raw telemetry into a highly valuable tool for routine grid workflows and strategic decisions. Multi-scenario ablation studies over this environment demonstrate that full multi-agent orchestration shows its largest observed accuracy gains on resource-constrained local hardware (+6.1 pp EX-R over the strongest single-agent configuration); at frontier scale, individual components retain value but should be enabled selectively, indicating that the cost of full orchestration is justified specifically where privacy demands local execution.

## MariaDB enhances agent development for its next-gen database platform

DevFeed: [MariaDB enhances agent development for its next-gen database platform](<https://devfeed.tech/articles/mariadb-enhances-agent-development-for-its-next-gen-database-platform-119077.md>)

Original publisher: [Read original article](<https://blog.adafruit.com/2026/11/05/mariadb-enhances-agent-development-for-its-next-gen-database-platform/>)

Author: Anne Barela

Published: 2026-11-05T14:00:41Z

Content type: news

Language: en

Sources: [Adafruit Industries](<https://devfeed.tech/sources/adafruit-industries-makers-hackers-artists-designers-and-engineers.md>)

Topics: [MariaDB](<https://devfeed.tech/topics/mariadb.md>), [text2sql](<https://devfeed.tech/topics/text2sql.md>), [AI for SQL query generation](<https://devfeed.tech/topics/ai-for-sql-query-generation.md>), [Cache](<https://devfeed.tech/topics/cache.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agent-memory](<https://devfeed.tech/tags/agent-memory.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [ai-plugins](<https://devfeed.tech/tags/ai-plugins.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [cache](<https://devfeed.tech/tags/cache.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [coding](<https://devfeed.tech/tags/coding.md>), [coding-agents](<https://devfeed.tech/tags/coding-agents.md>), [data](<https://devfeed.tech/tags/data.md>), [database](<https://devfeed.tech/tags/database.md>), [development](<https://devfeed.tech/tags/development.md>), [enterprise](<https://devfeed.tech/tags/enterprise.md>), [features](<https://devfeed.tech/tags/features.md>), [history](<https://devfeed.tech/tags/history.md>), [language](<https://devfeed.tech/tags/language.md>), [large-language-models](<https://devfeed.tech/tags/large-language-models.md>), [live](<https://devfeed.tech/tags/live.md>), [managed](<https://devfeed.tech/tags/managed.md>), [mariadb](<https://devfeed.tech/tags/mariadb.md>), [memory](<https://devfeed.tech/tags/memory.md>), [platform](<https://devfeed.tech/tags/platform.md>), [sql](<https://devfeed.tech/tags/sql.md>)

### AI overview

MariaDB Enterprise Platform 2027 adds four AI agent features: AI Retrieval connects enterprise documents and live operational data through one managed service and converts natural-language questions into read-only SQL; AI Plugins teach coding agents such as Claude Code and Codex MariaDB syntax and newer features including vector search; Agent Memory stores task context across sessions; and Semantic Cache reuses answers to differently worded equivalent questions. Analysts caution that natural-language-to-SQL can become less reliable with sprawling schemas or undefined business terms, agent memory can contain personal data or become stale, and AI-generated database code needs review, testing, and security scanning. The platform is generally available; AI Retrieval is scheduled for public preview on MariaDB Cloud later this month.

### Source excerpt

MariaDB has added four AI agent features to Enterprise Platform 2027, as reported by InfoWorld. They are AI Retrieval, AI Plugins, Agent Memory, and Semantic Cache. AI Retrieval lets agents pull from enterprise documents and live operational data through one managed service, and turns plain-language questions into read-only SQL queries. AI Plugins teach coding agents [...]

## Your LLM writes good SQL. That's not the same as safe SQL

DevFeed: [Your LLM writes good SQL. That's not the same as safe SQL](<https://devfeed.tech/articles/your-llm-writes-good-sql-that-s-not-the-same-as-safe-sql-118718.md>)

Original publisher: [Read original article](<https://www.infoworld.com/article/4244721/your-llm-writes-good-sql-thats-not-the-same-as-safe-sql.html>)

Author: Venkat Navneeth Burla

Published: 2026-11-05T09:00:00Z

Content type: opinion

Language: en

Sources: [InfoWorld](<https://devfeed.tech/sources/infoworld.md>)

Topics: [LLM security](<https://devfeed.tech/topics/llm-security.md>), [text2sql](<https://devfeed.tech/topics/text2sql.md>), [AI for SQL query generation](<https://devfeed.tech/topics/ai-for-sql-query-generation.md>), [least privilege](<https://devfeed.tech/topics/least-privilege.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [LLM observability](<https://devfeed.tech/topics/llm-observability.md>), [Benchmark](<https://devfeed.tech/topics/benchmark.md>), [JOIN](<https://devfeed.tech/topics/join.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [analytics](<https://devfeed.tech/tags/analytics.md>), [analytics-artificial-intelligence-data-management-generative-ai-sql](<https://devfeed.tech/tags/analytics-artificial-intelligence-data-management-generative-ai-sql.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [cortex](<https://devfeed.tech/tags/cortex.md>), [customer](<https://devfeed.tech/tags/customer.md>), [data](<https://devfeed.tech/tags/data.md>), [data-management](<https://devfeed.tech/tags/data-management.md>), [engagement](<https://devfeed.tech/tags/engagement.md>), [english](<https://devfeed.tech/tags/english.md>), [field](<https://devfeed.tech/tags/field.md>), [fields](<https://devfeed.tech/tags/fields.md>), [filter](<https://devfeed.tech/tags/filter.md>), [finance](<https://devfeed.tech/tags/finance.md>), [generative-ai](<https://devfeed.tech/tags/generative-ai.md>), [healthcare](<https://devfeed.tech/tags/healthcare.md>), [hospitals](<https://devfeed.tech/tags/hospitals.md>), [hr](<https://devfeed.tech/tags/hr.md>), [ids](<https://devfeed.tech/tags/ids.md>), [ignore](<https://devfeed.tech/tags/ignore.md>), [it](<https://devfeed.tech/tags/it.md>), [language-en](<https://devfeed.tech/tags/language-en.md>), [llm](<https://devfeed.tech/tags/llm.md>), [sql](<https://devfeed.tech/tags/sql.md>), [storytype-feature](<https://devfeed.tech/tags/storytype-feature.md>)

### AI overview

The article argues that accurate text-to-SQL can still expose data to the wrong user, and recommends enforcing access rules in code before queries run. It proposes resolving each user's role, business unit, territory, and assigned accounts first, limiting the model's available tables and columns, and tagging sensitive fields in the metadata catalog. A policy layer should parse and rewrite generated SQL; validation should reject SELECT *, scope-crossing queries, oversized results, and risky joins, with execution through a narrow database account and an audit record of context, policy, SQL, and results. In a synthetic, de-identified 900-query benchmark, 40% ran unchanged; others needed row filters, masking, or join rewrites, while some were sent for review or blocked. The article reports up to about 80 unauthorized rows from plain text-to-SQL, leaks under static role-based access control, and none under its policy-aware approach, with about 6.5 ms added per query. These findings are limited to the stated benchmark.

### Source excerpt

A few years into working with data, I've learned that the hardest part of an AI system is rarely the model. Usually it's the question of who gets to ask what. That question came up for me while building an LLM analytics tool on Snowflake Cortex for healthcare engagement and field-performance data. The tool let people ask questions in plain English, and it cut recurring analytics turnaround from days to minutes. It also made me realize that a fast, accurate answer can still be the wrong answer. A correct query can still be the wrong one Most of us test text-to-SQL the same way. We ask a question, check that the query runs, and compare the output to what we expected. That works right up until the answer is correct for the wrong person. Picture a sales rep who types "quarterly sales for my hospitals" and gets every hospital in the region back. The SQL is clean. The result is still a problem, and the same thing can happen in a multi-tenant app, an HR system, or a finance tool. Start with who is asking The first change I'd make is to what the model is allowed to see. Before anything is generated, look up who is asking: their role, business unit, territory, and assigned accounts. Then give the model only the tables and columns that person can use. Sensitive fields such as customer IDs, contract terms, or salaries should be tagged in your metadata catalog so they are never offered in the first place. It sounds obvious, but it is easy to skip when a demo is working. A prompt is not a permission system It is tempting to add "only show my territory" to the system prompt and move on. I understand the appeal. But a prompt is a suggestion, and the model can ignore it, forget it, or misread it on a hard question. A better setup parses the generated SQL and rewrites it before anything runs, so the rules live in code that the model cannot talk its way around. In the benchmark behind this work, the most common fix across 900 test queries was adding a row filter to the WHERE clause (

## MariaDB enhances agent development for its next-gen database platform

DevFeed: [MariaDB enhances agent development for its next-gen database platform](<https://devfeed.tech/articles/mariadb-enhances-agent-development-for-its-next-gen-database-platform-117130.md>)

Original publisher: [Read original article](<https://www.infoworld.com/article/4244546/mariadb-enhances-agent-development-for-its-next-gen-database-platform.html>)

Author: Anirban Ghoshal

Published: 2026-11-04T15:00:00Z

Content type: news

Language: en

Sources: [InfoWorld](<https://devfeed.tech/sources/infoworld.md>)

Topics: [MariaDB](<https://devfeed.tech/topics/mariadb.md>), [text2sql](<https://devfeed.tech/topics/text2sql.md>), [AI for SQL query generation](<https://devfeed.tech/topics/ai-for-sql-query-generation.md>), [Retrieval Augmented Generation (RAG)](<https://devfeed.tech/topics/retrieval-augmented-generation-rag.md>)

Tags: [agent-memory](<https://devfeed.tech/tags/agent-memory.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-inference](<https://devfeed.tech/tags/ai-inference.md>), [ai-plugins](<https://devfeed.tech/tags/ai-plugins.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [artificial-intelligence-data-management-databases](<https://devfeed.tech/tags/artificial-intelligence-data-management-databases.md>), [cache](<https://devfeed.tech/tags/cache.md>), [claude](<https://devfeed.tech/tags/claude.md>), [claude-code](<https://devfeed.tech/tags/claude-code.md>), [code](<https://devfeed.tech/tags/code.md>), [codex](<https://devfeed.tech/tags/codex.md>), [coding-agents](<https://devfeed.tech/tags/coding-agents.md>), [cost](<https://devfeed.tech/tags/cost.md>), [data](<https://devfeed.tech/tags/data.md>), [data-management](<https://devfeed.tech/tags/data-management.md>), [database](<https://devfeed.tech/tags/database.md>), [databases](<https://devfeed.tech/tags/databases.md>), [developers](<https://devfeed.tech/tags/developers.md>), [development](<https://devfeed.tech/tags/development.md>), [enterprise](<https://devfeed.tech/tags/enterprise.md>), [enterprise-data](<https://devfeed.tech/tags/enterprise-data.md>), [language-en](<https://devfeed.tech/tags/language-en.md>), [mariadb](<https://devfeed.tech/tags/mariadb.md>), [platform](<https://devfeed.tech/tags/platform.md>), [storytype-news](<https://devfeed.tech/tags/storytype-news.md>)

### AI overview

MariaDB Enterprise Platform 2027 adds four agent-focused capabilities: AI Retrieval combines enterprise documents and live operational data in one managed service and translates natural-language questions into read-only SQL; AI Plugins bring MariaDB-specific guidance to coding agents; Agent Memory preserves context across sessions; and Semantic Cache reuses answers to similar questions to reduce latency and inference costs. The text says the platform is generally available, while AI Retrieval is due for public preview on MariaDB Cloud later this month. Experts caution that natural-language SQL may falter on complex schemas without curated definitions and testing, and generated code still needs review, testing, and security scanning. Persistent memory needs ownership, retention, access controls, and correction or expiration safeguards. Caching is better suited to stable, low-risk information: similar questions can require different answers because of changing data, personalization, or permissions. The text recommends monitoring cache hit rates alongside accuracy.

### Source excerpt

MariaDB on Wednesday said it was adding four new agent-focused capabilities to Enterprise Platform 2027, the latest version of its enterprise database platform, to help developers retrieve enterprise data faster, maintain agent memory across sessions, and reduce the cost and latency of repeated model queries. These new capabilities include AI Retrieval, AI Plugins, Agent Memory, and Semantic Cache. While AI Retrieval is designed to help agents access information from enterprise documents and live operational data through a single managed service, AI Plugins are designed to bring MariaDB-specific expertise into coding agents such as Anthropic's Claude Code and OpenAI's Codex, helping developers generate database-related code more accurately, the company said in a statement. AI Retrieval also converts natural-language questions into read-only SQL queries, which MariaDB said would eliminate the need for developers to manually write queries for every request. Agent Memory, meanwhile, provides agents with a persistent, in-memory store that allows them to retain information across sessions and resume tasks without having to rebuild their context each time, according to the company. Semantic Cache, the fourth capability, is intended to reduce response times and AI inference costs by identifying semantically similar questions, even when phrased differently, and reusing previously generated answers instead of processing each query from scratch, MariaDB said. AI retrieval simplifies data access, but raises reliability concerns For developers, AI Retrieval can increase productivity, said Ashish Chaturvedi, executive research leader at HFS Research. "Most RAG setups keep documents in a vector store and live records in the transactional database, with glue code deciding which to query and how to merge results. Putting both behind one managed service eliminates a component and a sync step, so agents read operational facts at the moment they are true," Chaturvedi added. That conso

## Text-to-SQL Models Make Choices Without Saying So

DevFeed: [Text-to-SQL Models Make Choices Without Saying So](<https://devfeed.tech/articles/text-to-sql-models-make-choices-without-saying-so-115960.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.04318>)

Author: Yichen Xu, Shipei Lin, Chenhao Ma

Published: 2026-11-04T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Databases](<https://devfeed.tech/sources/arxiv-databases.md>)

Topics: [text2sql](<https://devfeed.tech/topics/text2sql.md>), [AI for SQL query generation](<https://devfeed.tech/topics/ai-for-sql-query-generation.md>), [AI Models](<https://devfeed.tech/topics/ai-models.md>)

Tags: [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-db](<https://devfeed.tech/tags/cs-db.md>), [databases](<https://devfeed.tech/tags/databases.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [sql](<https://devfeed.tech/tags/sql.md>), [tests](<https://devfeed.tech/tags/tests.md>)

### AI overview

SpecBridge reveals a reporting gap in text-to-SQL: on 204 hand-validated tests, four language models usually computed each interpretation when explicitly requested, but returned both interpretations for only 15-58% of open requests where they could, often without flagging the choice. Its test varies one calculation choice across three otherwise identical requests and evaluates answers by execution. On affected BIRD questions, over two in five answers marked wrong were correct under an alternative interpretation. A workflow that detects open choices and answers each interpretation in a separate call raised the share of open requests receiving every interpretation by 29-63 percentage points on SpecBridge and AMBROSIA, without reducing precision on clear requests; it also required fewer user turns than clarification questions.

### Source excerpt

arXiv:2611.04318v1 Announce Type: new Abstract: A text-to-SQL answer can run, return a plausible number and still compute something other than what the analyst meant. This can happen when the request leaves a calculation choice open, such as whether to count rows or distinct entities, and the model settles it without saying so. Standard benchmarks cannot detect this, because they score each question against a single reference interpretation. We introduce SpecBridge, which tests such a choice by varying it alone: it poses three otherwise identical requests, one leaving the choice open and one per interpretation, and scores each answer by running it. The databases are real, and the choices are ones that made models fail on existing benchmarks. On 204 hand-validated tests, four language models usually compute each interpretation when asked for it, yet for the open request return both in only 15-58% of the tests where they can, often without mentioning the choice. The gap lies in reporting, not in computing. Benchmarks even penalize the alternative: on BIRD questions where such a choice changes the answer, over two in five of the answers marked wrong are right under the other interpretation. Because the gap lies in reporting, a system can narrow it without a stronger model: it first decides whether a request leaves a choice open, then answers each interpretation in its own call. On our tests and on AMBROSIA, an existing benchmark of ambiguous questions, this approach raises the share of open requests that get every interpretation by 29-63 points over the single answer that production assistants give, without lowering precision on clear requests. It also needs fewer user turns than asking a clarifying question.

## Before You Model a Single Table: Data Modelling Questions to Ask for AI Agents in Snowflake

DevFeed: [Before You Model a Single Table: Data Modelling Questions to Ask for AI Agents in Snowflake](<https://devfeed.tech/articles/before-you-model-a-single-table-data-modelling-questions-to-ask-for-ai-agents-in-snowflake-116418.md>)

Original publisher: [Read original article](<https://medium.com/snowflake/before-you-model-a-single-table-data-modelling-questions-to-ask-for-ai-agents-in-snowflake-0ac71edf8172?source=rss----34b6daafc07---4>)

Author: Cesar Segura

Published: 2026-11-03T19:31:02Z

Content type: article

Language: en

Sources: [Snowflake Builders](<https://devfeed.tech/sources/snowflake-builders.md>)

Topics: [schema design](<https://devfeed.tech/topics/schema-design.md>), [semantic-layer](<https://devfeed.tech/topics/semantic-layer.md>), [JOIN](<https://devfeed.tech/topics/join.md>), [text2sql](<https://devfeed.tech/topics/text2sql.md>), [Data Quality](<https://devfeed.tech/topics/data-quality.md>), [knowledge-engineering](<https://devfeed.tech/topics/knowledge-engineering.md>), [business logic](<https://devfeed.tech/topics/business-logic.md>), [AI Architecture](<https://devfeed.tech/topics/ai-architecture.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agents](<https://devfeed.tech/tags/agents.md>), [aggregation](<https://devfeed.tech/tags/aggregation.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [analyst](<https://devfeed.tech/tags/analyst.md>), [architect](<https://devfeed.tech/tags/architect.md>), [article](<https://devfeed.tech/tags/article.md>), [business](<https://devfeed.tech/tags/business.md>), [business-analyst](<https://devfeed.tech/tags/business-analyst.md>), [column](<https://devfeed.tech/tags/column.md>), [cortex](<https://devfeed.tech/tags/cortex.md>), [cortex-agent](<https://devfeed.tech/tags/cortex-agent.md>), [data](<https://devfeed.tech/tags/data.md>), [data-modelling](<https://devfeed.tech/tags/data-modelling.md>), [generative-ai-tools](<https://devfeed.tech/tags/generative-ai-tools.md>), [governance](<https://devfeed.tech/tags/governance.md>), [model](<https://devfeed.tech/tags/model.md>), [modelling](<https://devfeed.tech/tags/modelling.md>), [ontology](<https://devfeed.tech/tags/ontology.md>), [questions](<https://devfeed.tech/tags/questions.md>), [snowflake](<https://devfeed.tech/tags/snowflake.md>), [table](<https://devfeed.tech/tags/table.md>)

### AI overview

AI agents infer query logic from schemas, so ambiguous grain, joins, dates and metric meanings can produce incorrect SQL. The article recommends documenting and testing each fact table's grain, exposing clear business columns, defining relationships and metric logic explicitly, and using scoped Snowflake Semantic Views over curated data. It distinguishes the executable query and metric layer (Semantic Views) from governed business definitions (Business Ontology) and AI-inferred context (Cortex Sense); ontology formulas document meaning, while Cortex Analyst executes the Semantic View expression, so they must stay aligned. It also advises profiling performance under realistic workloads and repeatedly evaluating representative business questions, including join, double-counting, ambiguity and permission cases. Business Ontology and Cortex Sense are noted as preview features as of October 2026.

### Source excerpt

A Snowflake Architect's guide to designing data that AI agents can actually understand Questions prior to modelling in Snowflake for your agents Every few weeks someone asks me the same thing: "We want a Cortex Agent on top of our data. How should we model it?" The honest answer is that most of the questions behind that sentence are not about the agent. They are modelling questions we should have answered years ago, and an agent now exposes them in public. A business analyst carries a lot of tacit knowledge: which date really means "sale", which orders are cancelled, what "revenue" means for Finance versus Sales. An agent has none of that. It reads your schema, infers, and writes SQL. Every ambiguity becomes an inference, and every inference is a chance for a wrong join, filter or aggregation. In this article we will walk through the six questions I ask teams before they start modelling: grain, shape, semantic views, business meaning, performance and evaluation. We will close with a checklist you can take to your next design session. Index 1. Why agents change the rules 2. Question 1: What is the grain, and does every column mean one thing? 3. Question 2: Star, snowflake or wide table, and how many joins are too many? 4. Question 3: How big should a Semantic View be? 5. Question 4: Who owns the meaning of a metric? 6. Question 5: Does physical performance still matter? 7. Question 6: How will we know it works? The Big Picture Conclusions References About Me 1. Why agents change the rules The first thing I explain is that an agent solution is not one model; it is a stack of layers, each with a different job. Confusing them is the root of most disappointing proofs of concept. Curated physical model: tables, views, facts, dimensions, types, keys and quality tests. It represents the data faithfully and consistently. Semantic View: the executable semantic layer. It describes how to query a domain and how to calculate its metrics: logical tables, relationships, dimensions

## VCoT-SQL: Enhancing Text-to-SQL Generation through Dual Chain-of-Thought Validation Training

DevFeed: [VCoT-SQL: Enhancing Text-to-SQL Generation through Dual Chain-of-Thought Validation Training](<https://devfeed.tech/articles/vcot-sql-enhancing-text-to-sql-generation-through-dual-chain-of-thought-validation-training-115097.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.00815>)

Author: Rui Zhang, Yujia Su, Ruixuan Li, Yuhua Li, Yixin Su

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [text2sql](<https://devfeed.tech/topics/text2sql.md>), [Chain-of-thought](<https://devfeed.tech/topics/chain-of-thought.md>), [llm-reasoning](<https://devfeed.tech/topics/llm-reasoning.md>), [SQL](<https://devfeed.tech/topics/sql.md>)

Tags: [alignment](<https://devfeed.tech/tags/alignment.md>), [annotations](<https://devfeed.tech/tags/annotations.md>), [chain-of-thought](<https://devfeed.tech/tags/chain-of-thought.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [database](<https://devfeed.tech/tags/database.md>), [dataset](<https://devfeed.tech/tags/dataset.md>), [execution](<https://devfeed.tech/tags/execution.md>), [framework](<https://devfeed.tech/tags/framework.md>), [generation](<https://devfeed.tech/tags/generation.md>), [generator](<https://devfeed.tech/tags/generator.md>), [intermediate](<https://devfeed.tech/tags/intermediate.md>), [llms](<https://devfeed.tech/tags/llms.md>), [model](<https://devfeed.tech/tags/model.md>), [models](<https://devfeed.tech/tags/models.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>), [queries](<https://devfeed.tech/tags/queries.md>), [reasoning](<https://devfeed.tech/tags/reasoning.md>), [sql](<https://devfeed.tech/tags/sql.md>), [training](<https://devfeed.tech/tags/training.md>), [validation](<https://devfeed.tech/tags/validation.md>)

### AI overview

VCoT-SQL improves text-to-SQL training by validating intermediate reasoning steps instead of checking only final answers. It trains an SQL generator with clause-level reasoning verified through execution and schema-alignment checks, alongside an SQL validator that diagnoses syntax, semantic, and type errors. A hierarchical schema-filtering pipeline combines retrieval strategies to select relevant database elements. The abstract reports 66.82% execution accuracy on BIRD dev and 86.8% on Spider test, with a 7% BIRD improvement over the base 7B model. Its CoT data is synthesized with 7B models and is reported to outperform data-generation methods using 72B-scale or proprietary teachers. These claims are based on the supplied abstract.

### Source excerpt

arXiv:2611.00815v1 Announce Type: new Abstract: Open-source LLMs provide a flexible alternative to closed-source models for Text-to-SQL but still struggle with complex queries. Finetuning with chain-of-thought (CoT) data improves reasoning, yet standard datasets lack CoT annotations, requiring synthetic generation. Existing synthesis methods only verify the final answer, allowing flawed reasoning steps to corrupt the training data. We propose VCoT-SQL, a framework that improves Text-to-SQL generation through intermediate-step validated CoT supervision and a dedicated SQL validator, which enables small open-source models to outperform frontier closed-source models. VCoT-SQL trains two complementary models on curated reasoning traces: an SQL generator using clause-level CoT templates where reasoning steps are verified via execution and schema alignment checks, and an SQL validator using diagnostic CoT templates to detect syntactic, semantic, and type level errors. We further design a hierarchical schema filtering pipeline that integrates and refines complementary retrieval strategies to distill relevant database elements. VCoT-SQL achieves 66.82% execution accuracy on challenging dataset BIRD dev and 86.8% on Spider test, improving the base 7B model by 7% on BIRD. Notably, our CoT synthesis relies on 7B models yet outperforms methods that use 72B-scale or even proprietary closed source teachers for data generation, demonstrating that rigorous step-level validation can be more effective than scaling up teacher model size. Our dataset and code are available at https://github.com/INTREBID/VCoT-SQL.

## Autoformalization for Ambiguous Inputs: Precision, Coverage, and Cost across SQL and Logical Forms

DevFeed: [Autoformalization for Ambiguous Inputs: Precision, Coverage, and Cost across SQL and Logical Forms](<https://devfeed.tech/articles/autoformalization-for-ambiguous-inputs-precision-coverage-and-cost-across-sql-and-logical-forms-113487.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.00340>)

Author: Henry Shen, Xinling Liao, Adarsh Vatsa, William Eiers

Published: 2026-11-03T05:00:00Z

Content type: news

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [text2sql](<https://devfeed.tech/topics/text2sql.md>), [AI for SQL query generation](<https://devfeed.tech/topics/ai-for-sql-query-generation.md>), [SQL](<https://devfeed.tech/topics/sql.md>)

Tags: [agentic-systems](<https://devfeed.tech/tags/agentic-systems.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [comparisons](<https://devfeed.tech/tags/comparisons.md>), [cost](<https://devfeed.tech/tags/cost.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [design](<https://devfeed.tech/tags/design.md>), [handling](<https://devfeed.tech/tags/handling.md>), [inference](<https://devfeed.tech/tags/inference.md>), [logical](<https://devfeed.tech/tags/logical.md>), [natural-language](<https://devfeed.tech/tags/natural-language.md>), [precision](<https://devfeed.tech/tags/precision.md>), [robustness](<https://devfeed.tech/tags/robustness.md>), [sql](<https://devfeed.tech/tags/sql.md>), [workflows](<https://devfeed.tech/tags/workflows.md>)

### AI overview

Across the tested SQL workflows, the raw model achieved the highest F1 on AMBROSIA (53.35%) and AmbiQT (60.85%), while no added method consistently improved accuracy, ambiguity handling, and cost together. On AmP, DRIFT gained 15.98 F1 points over the raw model at 2.03 times its token cost; LoC used 18.65 times the tokens and had lower F1. Within AutoCedar, structured interpretation reduced F1 by 6.44-6.95 points and raised AMBROSIA token use 2.2-fold. Kimi K3's paired-review gains were modest: 1.93 points on AMBROSIA and 2.04 on AmbiQT. AutoCedar was more stable on clear versus ambiguous AMBROSIA inputs, with an 11.46-point F1 drop versus 16.68 for the raw model, but lower aggregate F1 (50.16% versus 53.35%). These results indicate that autoformalization alone does not ensure robustness; the abstract frames accuracy, ambiguity handling, and inference cost as joint design requirements.

### Source excerpt

arXiv:2611.00340v1 Announce Type: new Abstract: Agentic systems translate natural-language requests into executable artifacts while managing ambiguity and inference cost. We evaluate seven autoformalization workflows on SQL and first-order logic benchmarks for ambiguous inputs. Across five SQL workflows, the raw model leads with F1 of 53.35% on AMBROSIA and 60.85% on AmbiQT. On AmP, DRIFT gains 15.98 F1 points over the raw model at 2.03 times its token cost, whereas LoC uses 18.65 times the raw model's tokens with lower F1. Within AutoCedar, structured interpretation lowers F1 by 6.44-6.95 points and raises AMBROSIA token use 2.2-fold. Paired reviewer comparisons show modest Kimi K3 gains of 1.93 points on AMBROSIA and 2.04 on AmbiQT. Clear-ambiguous AMBROSIA analysis shows greater relative stability for AutoCedar, with a smaller F1 drop than the raw model (11.46 vs. 16.68 points), alongside lower aggregate F1 (50.16% vs. 53.35%). Autoformalization alone does not guarantee robustness to ambiguity: the tested additions offer no uniformly effective remedy, making accuracy, ambiguity handling, and inference cost joint design requirements.

## TSSDA: An Autonomous Agent for Constructing a Time-Series Text-to-SQL Benchmark

DevFeed: [TSSDA: An Autonomous Agent for Constructing a Time-Series Text-to-SQL Benchmark](<https://devfeed.tech/articles/tssda-an-autonomous-agent-for-constructing-a-time-series-text-to-sql-benchmark-113650.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.02132>)

Author: Zhihan Zheng, Shaoxu Song, Haitao Yuan, Minxiao Chen

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Databases](<https://devfeed.tech/sources/arxiv-databases.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [text2sql](<https://devfeed.tech/topics/text2sql.md>), [AI for SQL query generation](<https://devfeed.tech/topics/ai-for-sql-query-generation.md>), [SQL](<https://devfeed.tech/topics/sql.md>), [AI Agent](<https://devfeed.tech/topics/ai-agent.md>), [Time Series](<https://devfeed.tech/topics/time-series.md>), [Temporal data](<https://devfeed.tech/topics/temporal-data.md>)

Tags: [adaptive](<https://devfeed.tech/tags/adaptive.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agent-framework](<https://devfeed.tech/tags/agent-framework.md>), [agents](<https://devfeed.tech/tags/agents.md>), [automated](<https://devfeed.tech/tags/automated.md>), [autonomous](<https://devfeed.tech/tags/autonomous.md>), [autonomy](<https://devfeed.tech/tags/autonomy.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [challenges](<https://devfeed.tech/tags/challenges.md>), [complexity](<https://devfeed.tech/tags/complexity.md>), [continuous](<https://devfeed.tech/tags/continuous.md>), [coverage](<https://devfeed.tech/tags/coverage.md>), [cs-db](<https://devfeed.tech/tags/cs-db.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [data](<https://devfeed.tech/tags/data.md>), [database](<https://devfeed.tech/tags/database.md>), [series](<https://devfeed.tech/tags/series.md>), [sql](<https://devfeed.tech/tags/sql.md>), [text](<https://devfeed.tech/tags/text.md>), [time](<https://devfeed.tech/tags/time.md>), [time-series](<https://devfeed.tech/tags/time-series.md>)

### AI overview

TSSDA is a framework for autonomously generating TERN, a time-series Text-to-SQL benchmark, addressing limited coverage, data diversity, and reuse across heterogeneous schemas and datasets. It models TSSQL syntax and semantics as a generation space, then uses planning and query-generation modules with online adaptation to explore that space. A temporal-aware memory reuses experience across differing data instances to improve generation efficiency. The authors report that evaluations on TERN expose limitations in existing Text-to-TSSQL methods and that TSSDA improves benchmark coverage, diversity, and complexity.

### Source excerpt

arXiv:2611.02132v1 Announce Type: cross Abstract: As agents increasingly undertake data querying, Text-to-SQL serves as a foundational capability for database access. However, for text-to-SQL in time-series databases, high-quality benchmarks and large-scale training corpora remain scarce, limiting the systematic evaluation and domain adaptation of existing models and agents. Existing automated SQL generation approaches lack sufficient autonomy, leaving key challenges unresolved. First, numerous combinations of temporal syntax and functions complicate comprehensive coverage of valid queries. Second, as the corpus grows, generating valuable and diverse new data becomes increasingly challenging. Third, schema and data heterogeneity hinder reuse of temporal query structures, limiting generation efficiency. To address these challenges, we propose TSSDA, a Time-Series SQL (TSSQL) Generation Data Agent framework, and construct TERN, a comprehensive Time-sERies text-to-SQL beNchmark. First, to achieve broad coverage of valid queries, we systematically model TSSQL syntax and semantics to construct a data generation space. Next, to explore the space and improve diversity, we develop a Data Agent that autonomously orchestrates data generation. The agent comprises a planning and decision-making module and a query generation module, with online adaptation for continuous self-improvement. Finally, we introduce a temporal-aware memory that enables adaptive reuse of experience across heterogeneous data instances, improving generation efficiency. Comprehensive evaluations on TERN reveal the limitations of existing methods in performing Text-to-TSSQL tasks. Furthermore, extensive experiments demonstrate that TSSDA substantially improves coverage, diversity, and complexity.

## SQLoom: Set-Contrastive Learning of Syntactic, Semantic, and Logical Dependencies for Text-to-SQL

DevFeed: [SQLoom: Set-Contrastive Learning of Syntactic, Semantic, and Logical Dependencies for Text-to-SQL](<https://devfeed.tech/articles/sqloom-set-contrastive-learning-of-syntactic-semantic-and-logical-dependencies-for-text-to-sql-113658.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.03298>)

Author: Hao Fu, Degang Sun, Wan Wei, Jinxia Wei, Chun Long, Peng Gao

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>), [arXiv: Databases](<https://devfeed.tech/sources/arxiv-databases.md>)

Topics: [text2sql](<https://devfeed.tech/topics/text2sql.md>), [AI for SQL query generation](<https://devfeed.tech/topics/ai-for-sql-query-generation.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [SQL](<https://devfeed.tech/topics/sql.md>), [Machine learning](<https://devfeed.tech/topics/machine-learning.md>)

Tags: [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-db](<https://devfeed.tech/tags/cs-db.md>), [database](<https://devfeed.tech/tags/database.md>), [database-schema](<https://devfeed.tech/tags/database-schema.md>), [dataset](<https://devfeed.tech/tags/dataset.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [execution](<https://devfeed.tech/tags/execution.md>), [experiments](<https://devfeed.tech/tags/experiments.md>), [fine-tuning](<https://devfeed.tech/tags/fine-tuning.md>), [gpt-4](<https://devfeed.tech/tags/gpt-4.md>), [large-language-models-llms](<https://devfeed.tech/tags/large-language-models-llms.md>), [llm-agents](<https://devfeed.tech/tags/llm-agents.md>), [logical](<https://devfeed.tech/tags/logical.md>), [natural-language](<https://devfeed.tech/tags/natural-language.md>), [qwen3](<https://devfeed.tech/tags/qwen3.md>), [reinforcement-learning](<https://devfeed.tech/tags/reinforcement-learning.md>), [semantic](<https://devfeed.tech/tags/semantic.md>), [sql](<https://devfeed.tech/tags/sql.md>), [supervised-fine-tuning](<https://devfeed.tech/tags/supervised-fine-tuning.md>), [supervision](<https://devfeed.tech/tags/supervision.md>), [training-dataset](<https://devfeed.tech/tags/training-dataset.md>)

### AI overview

SQLoom fine-tunes open-weight language models for text-to-SQL by contrasting sets of correct queries with minimally different incorrect ones. Its supervision targets SQL syntax and schema validity, alignment with the question, and consistency among dependent clauses. LLM agents propose examples, which a SQL parser and execution on counterexample databases verify. The authors also introduce Spider-Refined, with 378 corrected Spider annotations and enriched schemas. On reported benchmarks, Qwen3-1.7B reaches 88.7% execution accuracy on Spider development, 89.2% on Spider test, and 73.4% on BIRD development; the paper reports stronger results than fine-tuning, reinforcement-learning, and agent baselines up to 70B parameters. On perturbed questions, accuracy drops at most 0.6 points, compared with up to 12.1 for agent methods. Single-pass generation averages 0.42 seconds per query, reported as 23 times faster than a GPT-4-based agent method.

### Source excerpt

arXiv:2611.03298v1 Announce Type: new Abstract: Text-to-SQL translates natural language questions into SQL queries, enabling database access without writing SQL. Fine-tuning open-weight large language models (LLMs) is cost-effective, but existing methods treat SQL as ordinary text and optimize token-level likelihood without explicitly modeling its syntactic, semantic, and logical requirements. Thus, a single incorrect alias or comparison operator can invalidate a query while contributing little to training loss. We propose SQLoom, a constraint-aware fine-tuning framework with supervision at three levels: syntactic validity under SQL grammar and database schema, semantic alignment between query decisions and the question, and logical consistency across dependent clause decisions. SQLoom extends supervised fine-tuning with a unified set-contrastive objective favoring sets of correct outputs over minimally different incorrect ones at each level. LLM agents propose this supervision, which a SQL parser and execution on counterexample databases verify. We also release Spider-Refined, a training dataset correcting 378 flawed Spider annotations and enriching database schemas. Experiments on Spider, BIRD, and three perturbed Spider variants show that SQLoom improves execution accuracy for Qwen3-1.7B from 62.9% zero-shot to 88.7% on Spider development, reaching 89.2% on Spider test and 73.4% on BIRD development. It outperforms fine-tuning, reinforcement learning, and agent-based baselines with up to 70 billion parameters. On question perturbations, SQLoom loses at most 0.6 accuracy points versus up to 12.1 for agent-based methods. It generates SQL in a single pass at 0.42s per query, 23$\times$ faster than a GPT-4-based agent method. These results demonstrate the effectiveness of set-contrastive supervision over token-level training.

## Reimagining Text-to-SQL: A Survey of Large Language Model Architectures and Strategies

DevFeed: [Reimagining Text-to-SQL: A Survey of Large Language Model Architectures and Strategies](<https://devfeed.tech/articles/reimagining-text-to-sql-a-survey-of-large-language-model-architectures-and-strategies-114992.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.00171>)

Author: Shikhar Dave, Bhaskarjit Sarmah, Stefano Pasquali

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [AI for SQL query generation](<https://devfeed.tech/topics/ai-for-sql-query-generation.md>), [text2sql](<https://devfeed.tech/topics/text2sql.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [AI Architecture](<https://devfeed.tech/topics/ai-architecture.md>), [SQL](<https://devfeed.tech/topics/sql.md>), [Multi Agent Systems](<https://devfeed.tech/topics/multi-agent-systems.md>), [Fine-tuning](<https://devfeed.tech/topics/fine-tuning.md>), [LLM evaluation / benchmarking](<https://devfeed.tech/topics/llm-evaluation-benchmarking.md>), [LLM Techniques](<https://devfeed.tech/topics/llm-techniques.md>), [Retrieval Augmented Generation (RAG)](<https://devfeed.tech/topics/retrieval-augmented-generation-rag.md>), [llm-reasoning](<https://devfeed.tech/topics/llm-reasoning.md>), [semantic-layer](<https://devfeed.tech/topics/semantic-layer.md>)

Tags: [agentic-systems](<https://devfeed.tech/tags/agentic-systems.md>), [architectures](<https://devfeed.tech/tags/architectures.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [databases](<https://devfeed.tech/tags/databases.md>), [datasets](<https://devfeed.tech/tags/datasets.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [efficiency](<https://devfeed.tech/tags/efficiency.md>), [evaluation](<https://devfeed.tech/tags/evaluation.md>), [large-language-model](<https://devfeed.tech/tags/large-language-model.md>), [reasoning](<https://devfeed.tech/tags/reasoning.md>), [sql](<https://devfeed.tech/tags/sql.md>), [strategies](<https://devfeed.tech/tags/strategies.md>), [survey](<https://devfeed.tech/tags/survey.md>)

### AI overview

The survey reviews more than 100 Text-to-SQL papers and technical resources published from 2022 to 2026, organizing LLM approaches into in-context learning, supervised and parameter-efficient fine-tuning, agentic and tool-augmented orchestration, retrieval-augmented generation, and reinforcement learning. It compares approaches by model granularity, supervision, and reasoning style. The abstract describes modular systems that split work into schema retrieval, query generation, repair, and ranking, alongside agentic systems that coordinate specialized agents. It reports advances on Spider, Spider 2.0, and BIRD, and highlights unresolved challenges in domain generalization, efficiency, deployment, semantic layers, and responsible use with sensitive databases.

### Source excerpt

arXiv:2611.00171v1 Announce Type: new Abstract: Text-to-SQL systems translate natural language questions into executable SQL queries, democratizing access to relational data. Early approaches relied on handcrafted rules and template matching, while subsequent neural methods introduced encoder-decoder architectures, schema linking, and constrained decoding to handle increasingly complex queries. The emergence of large language models (LLMs), exemplified by systems such as ReFoRCE, Agentar-Scale-SQL, Snowflake's Arctic-Text2SQL-R1, and the modular XiYan-SQL framework, has dramatically advanced the field, pushing execution accuracy to new state-of-the-art levels on challenging benchmarks such as Spider, Spider 2.0, and BIRD. In parallel, modular frameworks decompose the task into sub-problems (schema retrieval, sketch-based generation, repair, and ranking), while agentic systems coordinate multiple specialized agents that communicate and dynamically allocate sub-tasks. This survey systematically reviews these LLM-driven approaches within a unified taxonomy of five paradigms (in-context learning, supervised and parameter-efficient fine-tuning, agentic and tool-augmented orchestration, retrieval-augmented generation, and reinforcement learning) and characterizes them by model granularity (monolithic vs. modular), level of supervision (zero-shot, fine-tuned, or reinforcement-based), and reasoning style (direct decoding vs. decomposed multi-step reasoning). We further analyze evaluation metrics, datasets, and open challenges, including domain generalization, efficiency, and real-world deployment, and we examine the role of the semantic layer in production systems. As LLMs increasingly access sensitive databases, we also discuss responsible AI practices. We survey over 100 papers and technical resources, focusing on work published between 2022 and 2026.

## SQL-o1: Automatic Text-to-SQL Program Synthesis via Self-Reward Heuristic Search

DevFeed: [SQL-o1: Automatic Text-to-SQL Program Synthesis via Self-Reward Heuristic Search](<https://devfeed.tech/articles/sql-o1-automatic-text-to-sql-program-synthesis-via-self-reward-heuristic-search-113622.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2502.11741>)

Author: Shuai Lyu, Haoran Luo, Ripeng Li, Zhonghong Ou, Yifan Zhu, Tiesunlong Shen

Published: 2026-11-03T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Databases](<https://devfeed.tech/sources/arxiv-databases.md>)

Topics: [text2sql](<https://devfeed.tech/topics/text2sql.md>), [AI for SQL query generation](<https://devfeed.tech/topics/ai-for-sql-query-generation.md>), [monte carlo tree search](<https://devfeed.tech/topics/monte-carlo-tree-search.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>)

Tags: [accelerate](<https://devfeed.tech/tags/accelerate.md>), [agent](<https://devfeed.tech/tags/agent.md>), [architecture](<https://devfeed.tech/tags/architecture.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [code](<https://devfeed.tech/tags/code.md>), [complex](<https://devfeed.tech/tags/complex.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-db](<https://devfeed.tech/tags/cs-db.md>), [execution](<https://devfeed.tech/tags/execution.md>), [exploration](<https://devfeed.tech/tags/exploration.md>), [few-shot](<https://devfeed.tech/tags/few-shot.md>), [framework](<https://devfeed.tech/tags/framework.md>), [gpt-4](<https://devfeed.tech/tags/gpt-4.md>), [large-language-models-llms](<https://devfeed.tech/tags/large-language-models-llms.md>), [monte-carlo-tree-search](<https://devfeed.tech/tags/monte-carlo-tree-search.md>), [natural-language](<https://devfeed.tech/tags/natural-language.md>), [open-source-llms](<https://devfeed.tech/tags/open-source-llms.md>), [reward](<https://devfeed.tech/tags/reward.md>), [search](<https://devfeed.tech/tags/search.md>), [sql](<https://devfeed.tech/tags/sql.md>), [synthesis](<https://devfeed.tech/tags/synthesis.md>), [text2sql](<https://devfeed.tech/tags/text2sql.md>)

### AI overview

SQL-o1 uses an agent-based, self-reward heuristic search to generate SQL from natural-language questions. It applies Monte Carlo Tree Search for multi-step exploration and dynamic pruning to speed inference while aiming to preserve accuracy. The abstract reports a 10.8-point execution-accuracy improvement on the complex BIRD benchmark and says the system also performs on Spider, generalizes in few-shot settings, and transfers across open-source LLMs. These are reported benchmark claims; the supplied text does not specify evaluation details.

### Source excerpt

arXiv:2502.11741v4 Announce Type: replace Abstract: Efficient human-database interaction is a core problem in software engineering. Text-to-SQL (Text2SQL) tackles this by mapping natural language questions to executable SQL queries, enabling automatic SQL synthesis and reliable interaction. Although large language models (LLMs) have advanced significantly, current approaches struggle with poor transferability to open-source LLMs, limited robustness against logic and function errors in complex queries, and inefficiencies in structured search. We introduce SQL-o1, a self-reward-driven heuristic search framework built on an agent-based architecture to enhance model reasoning capabilities. SQL-o1 leverages Monte Carlo Tree Search (MCTS) for structured, multi-step exploration and incorporates a dynamic pruning strategy to accelerate inference without sacrificing accuracy. On the Spider and BIRD benchmarks, SQL-o1 achieves a 10.8-point execution accuracy improvement on the complex BIRD dataset, surpassing even GPT-4-based models. It exhibits strong few-shot generalization and robust cross-model transferability across open-source LLMs. Our code is available at https://github.com/ShuaiLyu0110/SQL-o1.

## Conversational Interaction for LLM-Based Clinical Text-to-SQL: A User Study with Healthcare Professionals

DevFeed: [Conversational Interaction for LLM-Based Clinical Text-to-SQL: A User Study with Healthcare Professionals](<https://devfeed.tech/articles/conversational-interaction-for-llm-based-clinical-text-to-sql-a-user-study-with-healthcare-professionals-115061.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.00605>)

Author: Jun-Min Lee, Suyoung Yoo, Gyubok Lee, Edward Choi, Meong Hi Son

Published: 2026-11-03T05:00:00Z

Content type: news

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [text2sql](<https://devfeed.tech/topics/text2sql.md>), [AI for SQL query generation](<https://devfeed.tech/topics/ai-for-sql-query-generation.md>), [human computer interaction](<https://devfeed.tech/topics/human-computer-interaction.md>), [User Experience](<https://devfeed.tech/topics/user-experience.md>)

Tags: [abstract](<https://devfeed.tech/tags/abstract.md>), [acceptance](<https://devfeed.tech/tags/acceptance.md>), [adoption](<https://devfeed.tech/tags/adoption.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [based](<https://devfeed.tech/tags/based.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [but](<https://devfeed.tech/tags/but.md>), [can](<https://devfeed.tech/tags/can.md>), [cases](<https://devfeed.tech/tags/cases.md>), [choice](<https://devfeed.tech/tags/choice.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-hc](<https://devfeed.tech/tags/cs-hc.md>), [healthcare](<https://devfeed.tech/tags/healthcare.md>), [interaction](<https://devfeed.tech/tags/interaction.md>), [llm](<https://devfeed.tech/tags/llm.md>), [sql](<https://devfeed.tech/tags/sql.md>), [study](<https://devfeed.tech/tags/study.md>), [text](<https://devfeed.tech/tags/text.md>), [user](<https://devfeed.tech/tags/user.md>), [with](<https://devfeed.tech/tags/with.md>)

### AI overview

In a within-subjects study, 14 physicians using MIMIC-IV rated a conversational multi-turn clinical text-to-SQL interface more favorably than a single-turn interface: mean System Usability Scale scores were 85.9 versus 68.2 (p<0.001). In forced-choice comparisons, 93% reported greater satisfaction, 86% preferred it for real-world adoption, and 71% trusted its results more; none preferred or trusted the single-turn interface more. Analysis of 425 turns found clarification requests for 24.8% of freely composed queries, compared with 1.8% of predefined, fully specified questions. Of clarification episodes, 64.3% arose from EHR or clinical-domain knowledge. These findings suggest that benchmark questions may underrepresent the ambiguity of realistic clinical queries. Evidence is limited to the reported study and its MIMIC-IV setting.

### Source excerpt

arXiv:2611.00605v1 Announce Type: new Abstract: Conversational text-to-SQL interfaces could give healthcare professionals natural-language access to electronic health record (EHR) data, but evidence for their real-world usability remains limited: prior evaluations have relied largely on curated benchmarks with fully specified questions or on simulated users. We report a user study in which 14 physicians who regularly work with EHR data used both a single-turn and a conversational multi-turn text-to-SQL interface over the MIMIC-IV database in a within-subjects design; dialogue analyses additionally drew on interaction logs from 21 healthcare professionals across the main study and two pilot studies. The conversational interface was consistently favored: mean System Usability Scale scores rose from 68.2, near the industry average, to 85.9 (p<0.001), with significant advantages across technology-acceptance constructs including performance expectancy, effort expectancy, self-efficacy, and behavioral intention. In post-study forced-choice comparisons, 93% of participants reported greater overall satisfaction with the conversational interface, 86% preferred it for real-world adoption, and 71% trusted its results more; no participant preferred or trusted the single-turn interface more. Turn-level analysis of 425 logged user turns showed that freely composed queries triggered clarification requests in 24.8% of cases versus 1.8% for predefined, fully specified questions, and 64.3% of clarification episodes stemmed from EHR- or clinical-domain knowledge. Conversational interaction is a practical prerequisite, rather than a convenience, for natural-language EHR access. The frequent need for clarification in realistic clinical queries further underscores the importance of conversational interfaces, while benchmark-style evaluation can substantially underrepresent the ambiguity of real clinical use.

[Next page](<https://devfeed.tech/topics/text2sql.md?cursor=WyIyMDI2LTExLTAzVDA1OjAwOjAwKzAwOjAwIiwgIjg5M2M5M2NkLWIyYmYtNDlkZi04OGFkLTZhNjllM2IzOTNkZiJd>)