INQUIRING LINE

Even when an AI correctly understands your question, writing the actual database query is where it often still trips up.

What specific parsing errors dominate when input interpretations are correct?

This explores text-to-SQL systems, which turn plain-English questions into database queries: once the system has already worked out what an ambiguous question means, what kinds of mistakes still happen when it writes the actual SQL?


This explores what goes wrong in text-to-SQL after the hard part, figuring out what the user meant, is already solved. The corpus has a clear answer on how much goes wrong at this stage. On which specific errors cause it, the corpus is thinner. When researchers gave a system the correct interpretations directly, it still produced complete, correct SQL coverage only 49% of the time How much does text-to-SQL parsing itself limit coverage?. So translating a clear English reading into a query is a failure point about as large as misreading the question. It is a separate problem, and it needs its own fix. The collection does not break those parsing errors down into named categories, such as wrong joins, missing filters or incorrect aggregations. If you need that breakdown, you won't find it here.

The same research line gives a useful frame for why the two stages split apart. One approach first writes out every possible reading of an ambiguous question in plain English, then converts each reading to SQL separately Can resolving ambiguity in natural language first improve SQL parsing?. That pipeline reached 92% coverage on single-reading questions. The researchers took advantage of the fact that models tend to jump to a default reading, and they used a second model to recover the readings it missed. Put next to the 49% result, the lesson is that writing an English interpretation and writing the query are different skills. Getting the meaning right does not guarantee getting the query right.

Looking sideways at the corpus suggests some likely causes, though no paper tests them on SQL directly. Several notes show that large models mishandle nested structure, such as embedded clauses and stacked modifiers, and that their errors grow predictably as nesting gets deeper Why do large language models fail at complex linguistic tasks? Does LLM grammatical performance decline with structural complexity?. SQL is heavily nested, with subqueries, grouped conditions and multi-table joins, so it is reasonable to expect parsing failures to concentrate in the more deeply nested queries. A second candidate comes from work showing that models often ignore information in front of them when patterns learned in training pull the other way Why do language models ignore information in their context?. A parser might write the SQL it has seen many times before instead of the query this particular interpretation calls for. Treat both as hypotheses worth testing, not established findings.

One result is easy to miss: how the clarified meaning is handed to the model matters. Models answer more accurately when given a clarifying question-and-answer exchange than when given a minimally edited, unambiguous rewrite of the same input Do clarifying dialogues help LLMs answer better than rewritten inputs?. Some apparent parsing errors may therefore come from a mismatch in format, where the interpretation is correct but phrased in a way the model handles poorly. Changing how interpretations are written could improve parser accuracy without touching the parser at all.


Sources 6 notes

How much does text-to-SQL parsing itself limit coverage?

Using gold-standard interpretations, full SQL coverage reaches only 49%, showing that parsing errors are roughly as large an error source as disambiguation failures. Parser quality is a separable, comparably-sized lever for improving end-to-end accuracy.

Can resolving ambiguity in natural language first improve SQL parsing?

A two-stage approach that first produces unambiguous natural-language readings, then maps each to SQL, reached 92% single-interpretation coverage on AmbiQT by exploiting LLMs' known bias toward default readings and using an infilling model to recover missed readings. Execution-verified interpretations provided training signal without manual annotation.

Why do large language models fail at complex linguistic tasks?

Top-tier LLMs like Llama3-70b consistently misidentify embedded clauses, verb phrases, and complex nominals. Performance degrades predictably as syntactic depth increases, revealing that statistical learning captures surface patterns but not deep grammatical rules.

Does LLM grammatical performance decline with structural complexity?

LLMs show systematic performance decline as syntactic depth and embedding increase. Simple sentences are handled well while complex structures with recursion and embedding fail consistently, suggesting LLMs learned surface heuristics rather than structural grammar rules.

Why do language models ignore information in their context?

Research demonstrates that LMs generate outputs inconsistent with their context because parametric knowledge from training dominates over in-context information. Textual prompting alone cannot override strong priors; causal intervention in representations is required.

Show all 6 sources
Do clarifying dialogues help LLMs answer better than rewritten inputs?

LLMs answer more accurately when given clarifying questions and answers than when given minimally-edited disambiguated versions of the same ambiguous input. The gap exists because clarifying exchanges match the model's pretraining distribution better than artificially constrained rewrites.

Papers this line draws on 8

The research behind the notes this line reads — ranked by how closely each paper relates.