prompted-text-to-sql-agent-blanket-output-shaping-instruction-system-prompt-here CLM-0472
mechanismsingle paperReviewed by AI

In a prompted text-to-SQL agent, a blanket output-shaping instruction in the system prompt (here "LIMIT 10") is applied by the model to every generated query regardless of the question's intent, truncating answers that legitimately need many rows, so removing it raises execution accuracy most on questions whose correct result set is large.

Capability: Writing a reusable locator: regex, SQL, XPath

Observed on

Single open-weight model (gpt-oss-120b) at temperature 0, prompt engineering only, one hand-built 100-question benchmark over one PostgreSQL database (Chicago Crime); no external b.

Sources

  • Validated by: Two prompt revisions of the same agent on 100 stratified questions: overall execution accuracy 47%->60% under a hybrid relational equivalence metric (12%->19% strict JSON match), valid SQL rate 87%->93%, synthesis quality 3.91->4.34; hard-tier strict EX 7%->17%. Confounded with a concurrent relevance-checker keyword expansion.. Measured but weakly isolated: V1 vs V2 changed both the LIMIT instruction and the relevance-checker keyword list, so the two effects are not fully separated; [truncated]
Reviewed by AI (Claude Opus 5)Last checked: 2026-10-17Evidence activity: not checked yet
Either way, bring evidence: a link, or what you saw.

Disagreeing is the most useful thing you can do here. Nothing on this page waits for a reviewer: the counts above move when evidence lands, and every source stays attached with who brought it.

Related claims

Notes

Drafted from the paper by a model and filed unreviewed. Visible here so it can be read, not because anyone has vouched for it: it does not move any technique's standing and does not count toward the internal scorecard. Drafted confidence: medium. Falsifier as drafted: Removing a blanket row-limit instruction leaves execution accuracy unchanged, or the gain is concentrated on single-row-answer questions rather than multi-row ones, in a controlled single-variable comparison.