Manuscript Offprint
arXiv:2611.00340Autoformalization for Ambiguous Inputs: Precision, Coverage, and Cost across SQL and Logical Forms
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.
1 INTRODUCTION
Agentic systems combine language models with tools to turn natural-language requests into actions over software and data. Database agents inspect schemas, generate and execute queries, and revise them using feedback (Lei et al., 2025). In prior work, access-control workflows translate requirements into policies governing which users or services may act on protected resources (Vatsa et al., 2026). These applications place interpretation at an operational boundary: a query determines which records are retrieved, while an authorization policy determines who may read or modify them. Preserving the intended scope is essential to useful data access and privacy protection (Cutler et al., 2024).
Ambiguity can alter that scope before execution. A broad interpretation may include unintended records or permissions, while a narrow one may omit required results or deny legitimate access. A SQL query can execute successfully while committing to one of several meanings. Consider the request for singers' “names, countries, and ages” in Figure 1. The schema offers both nationality and citizenship for “countries,” and AmbiQT records a reference query for each.
A workflow can recover both readings yet also return additional answers, or return an internally consistent query that misses both references. This distinction matters in batch translation, autonomous agents, and offline requirements re-
| AmbiQT 000005. “What are the names, countries, and ages for every singer in descending order of age.” |
|---|
| Two reference readings. Countries denotes nationality or citizenship. The reference queries differ in the selected column:SELECT name, nationality, ageFROM singer ORDER BY age DESC;SELECT name, citizenship, ageFROM singer ORDER BY age DESC; |
| Returned set | Precision | Recall | F1 |
|---|---|---|---|
| Direct (raw model) | 66.67 | 100.00 | 80.00 |
| Roundtrip | 100.00 | 100.00 | 100.00 |
Figure 1. Coverage and precision can separate on the same ambiguous input. Both workflows recover the two reference answer classes; Direct also returns an additional prediction after grouping. Scores are percentages. Supplementary Table S28 gives the saved outputs and intermediate representations.
view, where an ambiguous input can reach execution before a user clarifies it.
We study ambiguity-aware formalization as recovery of a set of supported readings: one for a clear input and several for an ambiguous one. This set is useful both for automated processing and as the candidate set presented to a later clarification step. Methods such as ARTEMIS and Monty use human judgments to resolve competing specifications (Mendoza et al., 2026; Liu et al., 2026). Our experiments examine the preceding problem of producing candidates from the input and its context, using model feedback and formal checks.
¹YH Intelligence Technology, Co., Ltd. ²Stevens Institute of Technology. ³King's College London.
The central question is how generation, checking, repair, and retrieval change the returned set. We evaluate seven workflows on three benchmarks: AMBROSIA and AmbiQT for SQL, and AmP for first-order logical forms (Saparina & Lapata, 2024; Bhaskar et al., 2023; Stengel-Eskin et al., 2024). We then use AutoCedar as a common pipeline to study two placements of additional model information: interpretation before generation and feedback during review. We evaluate precision, recall, and token counts across the different modalities.
Four findings connect workflow design to the formal target, the placement of feedback, and input ambiguity:
(1) Workflow value varies across formal targets and benchmarks. Direct, the raw model baseline, leads the five-workflow SQL comparison in F1, while DRIFT improves both precision and recall on AmP. On AmP, DRIFT gains 15.98 F1 points at 2.03 times Direct's token cost; LoC uses 18.65 times Direct's tokens with lower F1.
(2) Explicit interpretation introduces a coverage-precision tradeoff. Within AutoCedar, interpretation before generation lowers SQL F1 and increases AMBROSIA token use. On AMBROSIA, free prose recovers more reference readings while admitting more unmatched outputs.
(3) Review feedback provides modest improvements. Adding Kimi at AutoCedar's review stage improves SQL F1, with K3 providing larger gains than K2.6.
(4) AutoCedar shows greater relative stability across input ambiguity. Its smaller clear-to-ambiguous F1 decline suggests potential for handling ambiguity, while lower aggregate F1 leaves a net performance benefit unestablished.
Together, these analyses help evaluate how autoformalization workflows handle the complex inputs expected in real-world operation.
Intent validation and clarification. ARTEMIS translates requirements into structured natural language and uses user judgments of distinguishing traces to select temporal logic specifications (Mendoza et al., 2026). Its structured language stage informs our interpretation intervention. Monty combines conformance scores and code testing with user clarification when competing assertions remain plausible (Liu et al., 2026). These methods select intent with human input; our comparison evaluates the candidate sets that workflows produce autonomously.
Formalization workflows. Clover checks consistency among code, specifications, and descriptions (Sun et al., 2024); Roundtrip uses backtranslation to identify and repair translation disagreements (Amrollahi et al., 2026). AutoCedar combines intent review with verifier-guided access-control policy synthesis (Vatsa et al., 2026). LoC decomposes formalizations and alternates semantic and compiler feedback, while DRIFT retrieves dependencies and examples for theorem formalization (Shi et al., 2026; Zhang et al., 2026). We preserve these stage roles when adapting their formal targets, and evaluate how each complete workflow recovers multiple readings.
Feedback and evaluation. Self-Refine studies iterative model feedback, while Huang et al. find that intrinsic self-correction can reduce reasoning accuracy (Madaan et al., 2023; Huang et al., 2024). Our review intervention varies the reviewer model at a fixed stage of AutoCedar. PICARD constrains SQL syntax, and test-suite evaluation assesses semantic correctness through execution (Scholak et al., 2021; Zhong et al., 2020). We evaluate both the correctness of returned answers and the coverage of a benchmark's reference set, linking formal checks to ambiguity recovery.
3 AUTOFORMALIZATION UNDER AMBIGUITY
3.1 Task and Available Information
For an input and available context , a workflow returns a set of SQL queries or first-order logical forms. The benchmark provides a reference set representing its supported readings. A supported reading is an interpretation of grounded in and represented by a reference formalization; clear inputs have one reading, while ambiguous inputs have several. Evaluation groups equivalent formal outputs into answer classes before matching the returned and reference sets (Section 4.2). Reference outputs and reading counts enter only at evaluation.
The three datasets jointly evaluate ambiguity across inputs and formal targets. Each supplies a natural-language input and context for generation, with reference formalizations reserved for scoring (Supplementary Figure S2).
AMBROSIA. The input is a clear or ambiguous question paired with a database schema; the workflow returns SQL queries for its readings. For example, “What size are all swimming pools and hot tubs in Miami” permits restricting both facility types to Miami or only the hot tubs (Supplementary Table S21). The reference queries encode these alternatives. Scoring executes predicted and reference SQL on the supplied database and matches their observed results, preserving required ordering.
AmbiQT. The input combines a question with a schema modified to introduce lexical or structural alternatives. The output is a set of SQL queries: in Figure 1, “countries” selects either nationality or citizenship. Scoring checks queries against the modified schema, applies the benchmark’s mappings, and compares execution results on the underlying database (Supplementary Section B.5).
AmP. The input is a sentence with a public predicate vocabulary and first-order formula grammar; the output is a set of logical forms for its readings. An illustrative sentence, “Ada smiled,” becomes , with denoting an event. Ambiguous inputs yield alternatives in scope, attachment, or coreference. Scoring applies the same canonicalization to predictions and references and matches their canonical forms (Supplementary Section A).
3.2 Workflows and Adaptations
We preserve each workflow’s generation, review, repair, or retrieval stages while adapting its formal target and supporting checks. The seven workflows below follow the order in Figure 2; each returns a candidate set for external scoring.
Direct. The raw model generates formal candidates in one draw from the input, context, and target-language instructions, returning SQL queries or AmP formulas.
IntentPrompt. This interpretation-first prompting control requests paired natural-language readings and formal outputs through the source implementation’s intent interface. It uses the shared generator and target-language instructions, adapted to SQL lists or AmP formulas.
AutoCedar. Originally designed for access-control policies with human intent review, AutoCedar combines target review with verifier-guided synthesis (Vatsa et al., 2026). Our adaptations use model review: SQL deterministically compiles the accepted representation, with Cedar/cvc5 fil-
ter checks and SQLite syntax and schema checks; AmP uses Z3 to check property bounds and equivalence to the reviewed target. Supplementary Sections A and B.4 give representations and repair budgets.
Clover. Clover checks six directed consistency relations among descriptions, specifications, and code (Sun et al., 2024). In SQL, four relations use execution and two use model judgments of descriptions; AmP substitutes quantified first-order equivalence checks for the formal relations. A candidate is retained when all six checks accept.
Roundtrip. Roundtrip backtranslates a formal output into natural language, formalizes that reconstruction, and diagnoses disagreements to repair the responsible translation (Amrollahi et al., 2026). SQL compares answer sets; AmP checks reconstructed formulas. Clover and Roundtrip use the supplied AMBROSIA databases and fixed public-schema test databases for internal AmbiQT checks (Supplementary Table S3).
LoC. LoC decomposes formalization into nonrecursive SQL common table expressions or parameterized AmP definitions, then alternates semantic and syntax repair (Shi et al., 2026). Local backtranslation omits the original question; model judgments check local purposes and combined meaning again after repair. Composition checks SQL dependencies and names or uses capture-avoiding substitution for AmP.
DRIFT. DRIFT decomposes the input, retrieves dependencies with a frozen encoder, and greedily selects up to three examples for final generation (Zhang et al., 2026). Independently authored SQL or logical-form libraries replace the original mathematical material. Supplementary Section A details the LoC and DRIFT procedures and retrieval libraries.
3.3 Interpretation and Review Interventions
AutoCedar is the common pipeline for these two interventions because it exposes both an input position before generation and an intent-review stage. The seven-workflow comparisons evaluate each workflow separately; the interventions vary these two positions within AutoCedar (Figure 2).
Interpretation before generation. We ask whether making readings explicit improves reference coverage while retaining precision. Free interpretation supplies an ordinary prose account of candidate readings. Structured interpretation records meaning, source phrases, outputs, entities, conditions, and unresolved alternatives, inspired by ARTEMIS (Mendoza et al., 2026). Each is passed alongside the origi-

Figure 2. Stages of the seven adapted workflows, read from left to right; NL denotes natural language. Model judgments inspect meaning, formal checks use execution or solvers, and retrieval supplies dependencies and examples. Each workflow returns a candidate set for external scoring. The AutoCedar interventions add interpretation before proposal generation or Kimi feedback at review. Section 3.2 describes the checks and bounded repairs.
nal question and context to AutoCedar, whose review, repair, and checking stages remain in place.
Different-family LLM reviewer. We ask whether feedback from a different model family improves the returned set. Kimi emulates a human response at AutoCedar's intent-review step, where the original architecture solicits human feedback (Vatsa et al., 2026). The conditions share initial proposals and use no additional reviewer, Kimi K3, or Kimi K2.6. DeepSeek continues to generate and repair SQL.
4 EXPERIMENTAL DESIGN
4.1 Research Questions and Comparisons
We explore four research questions using the collected statistics:
RQ1: How does workflow choice affect performance across SQL and first-order logical forms? All seven workflows share 1,000 AmP inputs. SQL compares five generation/checking workflows (Table 1) and, separately, LoC with DRIFT (Table 2).
RQ2: How does interpretation before generation affect accuracy and token cost? AutoCedar's base, free, and structured conditions share 381 scored AMBROSIA inputs; base and structured share 282 AmbiQT inputs (Table 3).
RQ3: How much does a different-family LLM reviewer improve the returned set? AutoCedar's reviewer con-
ditions share initial proposals and yield 3,432 scored pairs on AMBROSIA and 2,591 on AmbiQT (Table 4).
RQ4: How does performance change from clear to ambiguous inputs, and how does this relate to aggregate performance? AMBROSIA's source labels separate clear and ambiguous inputs within each comparison (Tables 1 and 2).
4.2 Evaluation
Let count reference answer classes, distinct valid predicted answer classes, and distinct invalid predictions after exact deduplication. If is the maximum number of one-to-one prediction-reference matches, then
Eligible cases with no predictions or no matches receive zero. All found measures complete reference coverage (); Exact set additionally requires no extra predictions (). In Figure 1, Direct matches both reference classes and has one additional prediction after grouping, yielding , , and . Roundtrip matches exactly the two reference classes and receives one for each metric.
SQL queries with identical observed results form one answer class, so several query strings can represent the same predicted answer. A syntactically invalid query remains an invalid prediction and contributes to . AMBROSIA scoring preserves required ordering; AmbiQT applies the benchmark schema mappings before comparing results (Supplementary Section B.5). AmP applies the same canonicalization to predictions and references and matches their canonical forms. We macro-average the case metrics.
Unusable references and unavailable scores remain separate coverage categories, with each table reporting its numeric denominator. Supplementary Section B.3 and Table S5 give eligibility and unscored reasons. Supplementary Figure S1 relates formal checks to supported-reading coverage, and Section C, Table S15, reports full answer-set recovery by condition.
4.3 Implementation and Statistical Comparisons
DeepSeek generates and repairs outputs through the recorded API alias deepseek-flash. The initial SQL and AmP/LoC/DRIFT request configurations enable thinking with low reasoning effort. Generation, repair, and any native review calls use DeepSeek; only the SQL feedback intervention adds Kimi K3 or Kimi K2.6. Each workflow retains its own bounded generation and repair schedule. DRIFT uses the frozen BAAI/bge-small-en-v1.5 encoder and retrieves from independently authored SQL or AmP language examples. Supplementary Table S2 and Sections A and B provide request settings, prompt roles, and budgets.
Paired comparisons average per-input score differences. Interpretation intervals use database-cluster resampling; Holm correction covers the three AMBROSIA F1 contrasts. Interpretation token means use all 382 AMBROSIA inputs; the corresponding AmbiQT runs have different cost definitions. Both token analyses aggregate recorded usage across physical attempts. Interpretation uses its published per-input attempt totals; AmP and SQL LoC/DRIFT reconstruct prompt-plus-completion totals over the full saved generation, review, repair, and operational recovery histories. Physical attempts are counted once, with reasoning already included in completion. These comparisons use shared inputs with complete usage: 995 for AmP, 3,814 for AMBROSIA, and 3,044 for AmbiQT. Their full score cohorts remain unchanged. Supplementary Table S8 gives cost coverage and components. Supplementary Section B.7 and Table S9 give the existing resampling results for all six metrics. Means and differences are rounded independently from their full-precision values to two decimals.
Each workflow's 3,437 AMBROSIA inputs form a separately selected cohort; Direct and AutoCedar share 3,087 scored inputs. AmbiQT includes 2,741 for Direct, AutoCedar, and IntentPrompt and 3,046 for Clover and Roundtrip. LoC and DRIFT share a broader comparison of 3,819 AMBROSIA and 3,046 AmbiQT inputs. Each mean includes every numeric score in its published cohort; paired comparisons use shared scored inputs. Supplementary Tables S4 and S1 give the reference and output-level exclusions, and Table S16 reports the five-workflow intersection.
AmP includes 1,000 shared inputs, with 200 from each of five ambiguity types: prepositional phrase attachment, quantifier scope, inverse scope, pronominal coreference, and conjunction. The interpretation comparison includes 382 AMBROSIA and 305 AmbiQT inputs, of which 381 and 282 have scores. Its AutoCedar baseline is labeled as the interpretation subset.
5 RESULTS AND FINDINGS
5.1 Workflow Choice on SQL and Logical Forms
On the same 1,000 AmP inputs, DRIFT reaches 89.02% F1, compared with 73.05% for Direct and 73.51% for Roundtrip. DRIFT improves both precision and recall (Figure 3); Supplementary Table S11 gives the means. Its generation step combines the original input with retrieved dependencies and up to three examples from an independently authored library of 11 AmP language examples. On the 995 inputs with complete costs across all seven workflows, Direct uses 7,485 tokens per input and DRIFT uses 15,199, a 2.03-fold increase. AutoCedar, Clover, and LoC use 52,302, 123,860, and 139,564 tokens respectively, with lower F1 than Direct on the full scored set.
On SQL, Direct has the highest overall F1 and precision among the five workflows in Table 1. AutoCedar's higher AMBROSIA recall is offset by its lower precision, while on AmbiQT both metrics fall below Direct (Figure 4). The same pattern holds on all five methods' shared scored inputs in Supplementary Table S16, and paired comparisons with Direct favor Direct overall (Supplementary Table S12).
Clover's AmbiQT means are low in both precision and recall. A saved example makes the distinction between its consistency checks and benchmark recovery concrete: for the input in Figure 1, Clover returns nationality and citizenship together in one query. Its reconstruction checks match, but the query matches neither reference answer. Supplementary Section D, Tables S19–S28, provides the outputs and intermediate representations. This case illustrates how internally matching representations can preserve an incorrect candidate set.
In the separate decomposition comparison, LoC and DRIFT have similar AMBROSIA F1, including on ambiguous questions. DRIFT leads LoC by 8.20 points on their shared scored AmbiQT inputs (Table 2). The comparison evaluates retrieval with illustration against modular repair on the same inputs. The complete-cost comparison also favors DRIFT: its mean token use is 80.7% below LoC on AMBROSIA.
Table 1. SQL generation and checking comparison. Means are percentages on each workflow's scored inputs. AMBROSIA's clear/ambiguous columns give scored counts and F1; all AmbiQT inputs are ambiguous. Direct leads overall F1 and precision in both datasets. Shared-input results and paired contrasts are in Supplementary Tables S16 and S12.
| Dataset | Workflow | Scored | F1 | Precision | Recall | Clear N / F1 | Ambiguous N / F1 |
|---|---|---|---|---|---|---|---|
| AMBROSIA | Direct | 3,431 | 53.35 | 51.19 | 62.29 | 2,400 / 58.36 | 1,031 / 41.68 |
| IntentPrompt | 3,431 | 42.95 | 36.27 | 62.54 | 2,407 / 44.84 | 1,024 / 38.51 | |
| AutoCedar | 3,432 | 50.16 | 45.06 | 67.81 | 2,400 / 53.61 | 1,032 / 42.14 | |
| Clover | 3,430 | 41.30 | 35.82 | 57.97 | 2,402 / 43.90 | 1,028 / 35.23 | |
| Roundtrip | 3,433 | 38.65 | 35.50 | 47.48 | 2,409 / 42.26 | 1,024 / 30.16 | |
| AmbiQT | Direct | 2,592 | 60.85 | 58.75 | 68.67 | — | 2,592 / 60.85 |
| IntentPrompt | 2,585 | 42.26 | 37.94 | 52.90 | — | 2,585 / 42.26 | |
| AutoCedar | 2,591 | 54.45 | 50.89 | 65.69 | — | 2,591 / 54.45 | |
| Clover | 2,871 | 20.69 | 19.19 | 26.56 | — | 2,871 / 20.69 | |
| Roundtrip | 2,874 | 44.68 | 41.58 | 52.31 | — | 2,874 / 44.68 |


Figure 3. AmP quality and inference cost. The left panel uses all 1,000 shared scored inputs; DRIFT's F1 advantage over Direct is 15.98 percentage points. The right panel sums saved physical-attempt tokens per input on the 995 inputs with complete usage for every workflow. Unknown costs affect the token panel only.
and 69.5% below it on AmbiQT.
5.2 Interpretation before Generation
Structured interpretation lowers F1 by 6.44 points on AM-BROSIA and 6.95 on AmbiQT, with both paired intervals entirely below zero (Supplementary Table S9); Table 3 gives the condition means. Free interpretation raises AMBROSIA recall but reduces precision enough to lower F1. Thus, its additional reference coverage accompanies a less precise returned set.
The saved output counts clarify this tradeoff. Across the shared scored AMBROSIA inputs, AutoCedar returns 990 distinct answers, free interpretation 1,491, and structured interpretation 1,250 (Supplementary Table S6). Structured interpretation yields a smaller set and higher precision than free prose, but also lower recall; their paired F1 interval includes zero. Supplementary Tables S29–S38 show the supplied interpretations and returned SQL.
Both added interpretation stages also increase mean token use: about 3.4 times the base for free prose and 2.2 times for structured interpretation. The cost and F1 values appear together in Table 3. This comparison favors the base pipeline when choosing among these three interpretation conditions.
5.3 Different-family LLM Review
Kimi K3 improves paired F1 by 1.93 points on AMBROSIA and 2.04 on AmbiQT (Table 4). Kimi K2.6 gives smaller gains. The direct K3–K2.6 comparison favors K3 on both datasets, with both 95% database-cluster intervals above zero (Supplementary Table S18).
Supplementary Table S17 shows the precision and recall

Figure 4. SQL precision and recall on each workflow's scored cohort: 3,430–3,433 AMBROSIA inputs and 2,585–2,874 AmbiQT inputs (Table 1). On AMBROSIA, AutoCedar's additional coverage comes with lower precision. On AmbiQT, Direct leads both metrics. Grouped bars show precision and recall in the same workflow order; both dataset panels use the same scale.
Table 2. SQL decomposition comparison. F1 uses shared scored inputs; tokens use shared inputs with complete usage (Supplementary Tables S1 and S8).
| Dataset | Group | N | LoC | DRIFT |
|---|---|---|---|---|
| F1 (%) | ||||
| AMBROSIA | All | 3,813 | 53.34 | 52.75 |
| Clear | 2,666 | 58.88 | 57.86 | |
| Ambiguous | 1,147 | 40.48 | 40.86 | |
| AmbiQT | Ambiguous | 2,884 | 38.98 | 47.17 |
| Mean tokens/input | ||||
| AMBROSIA | All | 3,814 | 31,211 | 6,015 |
| AmbiQT | All | 3,044 | 19,698 | 6,003 |
Table 4. Review feedback yields modest paired gains. Each contrast uses inputs scored with the named reviewer and with no additional reviewer. Differences are percentage points.
| Dataset | Reviewer | Pairs | F1 |
|---|---|---|---|
| AMBROSIA | Kimi K3 | 3,432 | +1.93 |
| Kimi K2.6 | 3,432 | +1.23 | |
| AmbiQT | Kimi K3 | 2,591 | +2.04 |
| Kimi K2.6 | 2,591 | +0.24 |
changes under each reviewer. On AmbiQT, K3 raises precision from 50.89% to 54.42% while recall changes from 65.69% to 65.34%. K2.6 reaches 52.02% precision and 64.61% recall, producing a smaller F1 gain. K3 combines the larger precision gain with the smaller recall loss. Supplementary Figure S3 visualizes the paired gains. The initial confirmation study is retained separately in Supplementary Table S14, with examples in Tables S39–S48.
Fully automated review still leaves substantial errors in these SQL experiments. AutoCedar's original architecture uses human intent review to establish the target for formal
Table 3. AutoCedar interpretation comparison. Scores (%) use 381 shared AMBROSIA and 282 AmbiQT inputs; tokens use 382 AMBROSIA inputs (Supplementary Tables S7 and S9).
| Condition | F1 | P | R | Tokens |
|---|---|---|---|---|
| AMBROSIA | ||||
| Base | 50.05 | 44.41 | 67.80 | 45,538 |
| + Free | 43.24 | 34.70 | 72.75 | 154,105 |
| + Structured | 43.61 | 37.15 | 65.92 | 99,431 |
| AmbiQT | ||||
| Base | 51.67 | 48.33 | 62.23 | — |
| + Structured | 44.72 | 39.49 | 59.75 | — |
verification (Vatsa et al., 2026). Human clarification serves this crucial role when deployment requires selecting a user's intended action from competing readings (Mendoza et al., 2026).
5.4 Clear and Ambiguous Questions
AutoCedar's mean F1 falls from 53.61% on clear AMBROSIA inputs to 42.14% on ambiguous inputs. Its 11.46-point drop is smaller than Direct's 16.68-point drop (Supplementary Table S10). Clear questions form about 70% of these AMBROSIA cohorts. AutoCedar's overall F1 is 50.16%, compared with 53.35% for Direct (Table 1).
On the 3,087 inputs scored by both workflows, AutoCedar is 3.45 points below Direct overall (Supplementary Table S12). Its paired deficit is 5.02 points on clear inputs, whereas its 0.18-point advantage on ambiguous inputs leaves the means numerically close (Supplementary Table S13). The smaller decline indicates greater relative stability across clear and ambiguous inputs, suggesting potential for workflow design to improve ambiguity handling. Its lower clear-input base-line and aggregate F1, however, leave a net performance benefit unestablished. These results therefore do not establish that autoformalization inherently improves ambiguity handling.
6 DISCUSSION AND SCOPE
6.1 Implications for Agentic Systems
Preserve intent through execution. An agent's generated SQL query determines which records are processed downstream, while a logical form makes the chosen reading explicit. Our precision–coverage results make candidate acceptance a central design choice: generating more interpretations can recover missed readings while introducing additional incorrect candidates. A system should establish the intended scope before executing a sensitive operation and retain the relationship between that scope and the artifact it executes. Related access-control work places intent validation before policy verification, providing a complementary application of this design principle (Cutler et al., 2024; Vatsa et al., 2026).
Design stages around the returned set. The free-interpretation stage recovers more AMBROSIA reference answers, but also admits enough unmatched outputs to lower precision and F1. The ARTEMIS-inspired structured layer reduces this expansion relative to free prose, yet both conditions remain below the base pipeline. These results connect interpretation-first coverage goals (Saparina & Lapata, 2025) to the acceptance decisions made by later stages. Representation, placement, and candidate selection must work together; additional stages alone do not resolve the precision–coverage tradeoff.
Match the workflow to its task. Direct leads the five-workflow comparison on both SQL benchmarks, while DRIFT leads on AmP. Workflow rankings therefore vary across these benchmark and formal-target settings. A system designer should evaluate a workflow on the intended language, task, and input distribution. Clear inputs also matter: AutoCedar's smaller clear-to-ambiguous F1 decline indicates greater relative stability, but its lower clear-input accuracy leaves aggregate F1 below Direct. Ambiguity robustness and overall accuracy are separate deployment requirements.
Use review to support intent decisions. AutoCedar's original design uses human approval to establish the intended target (Vatsa et al., 2026); our adaptation places model review at this stage. Roundtrip automates diagnosis, and its cross-model experiment improves repair by changing the diagnosing model (Amrollahi et al., 2026). The modest gains from Kimi show the value of reviewer choice within
our AutoCedar comparison. Human clarification remains important when a system must select a user's intended action from several plausible readings.
Require a measurable return on inference cost. On the AMBROSIA interpretation subset, the base pipeline has both the highest F1 and the lowest mean token use. Structured and free interpretation consume 2.18 and 3.38 times its tokens while reducing F1. This is a direct cost-performance regression for the tested additions. The AmP comparison gives a different tradeoff: DRIFT improves F1 while using 2.03 times Direct's tokens, whereas LoC uses 18.65 times its tokens with lower F1. Deployment budgets should account for every generation, review, and repair call and evaluate the benefit of the complete workflow. For routine inputs, an extra stage should preserve answer quality and justify its cost even when the final answer stays the same.
6.2 Limitations
The experiments use one generator family and bounded adaptations of the source workflows. Their request counts and repair schedules differ. The SQL workflow groups have different fixed cohorts; paired contrasts and common-input results address comparisons within each group. The interpretation experiments use smaller fixed subsets, and reviewer feedback is evaluated on SQL. SQL correctness uses observed execution results, while AmP uses the recorded canonical-form matching protocol. Cost comparisons cover the AMBROSIA interpretation study, all seven AmP workflows, and SQL LoC/DRIFT. They measure observed token use through the accepted output, including saved operational recovery attempts; twelve extension inputs have incomplete usage and retain unknown total costs.
7 CONCLUSION
By adapting seven autoformalization workflows to ambiguity benchmarks, we observe performance regressions in the SQL comparisons and gains on logical forms. Direct leads the five-workflow SQL comparison, while DRIFT improves AmP precision and recall. Within AutoCedar, the ARTEMIS-inspired structured interpretation layer lowers SQL F1, showing that ambiguity-oriented components need to be integrated through careful workflow design. Different-family model review yields modest gains, and AutoCedar's smaller clear-to-ambiguous decline suggests relative stability while leaving a net performance benefit unestablished.
For agentic systems that query databases or construct logical forms, these findings connect workflow design to the accuracy and cost of formalized outputs. Recovering plausible readings, selecting the intended one, and preserving it through formalization are joint requirements for reliable ex-ecution. The measured cost regressions also matter at scale: prior interpretation uses 2.2–3.4 times as many tokens on the AMBROSIA subset while reducing F1. Repeating such overhead across large request volumes increases resource demand without a corresponding quality gain in this comparison. Effective deployment therefore requires workflows that preserve accuracy on routine inputs, handle ambiguous intent explicitly, and justify the cumulative cost of generation, checking, and repair.
ETHICAL CONSIDERATIONS
The study uses existing benchmark inputs and saved model outputs, without recruiting human participants. SQL evaluation does not modify the databases. Reuse of data and upstream code follows their source licenses.
REFERENCES
Amrollahi, D., Lopez, J., and Barrett, C. Faithful autoformalization via roundtrip verification and repair. arXiv preprint arXiv:2604.25031, 2026. URL https://arxiv.org/abs/2604.25031.
Bhaskar, A., Tomar, T., Sathe, A., and Sarawagi, S. Benchmarking and improving text-to-SQL generation under ambiguity. In Bouamor, H., Pino, J., and Bali, K. (eds.), Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pp. 7053–7074, Singapore, December 2023. Association for Computational Linguistics. doi: 10.18653/v1/2023.emnlp-main.436. URL https://aclanthology.org/2023.emnlp-main.436/.
Cutler, J. W., Disselkoen, C., Eline, A., He, S., Headley, K., Hicks, M., Hietala, K., Ioannidis, E., Kastner, J., Mamat, A., McAdams, D., McCutchen, M., Rungta, N., Torlak, E., and Wells, A. Cedar: A new language for expressive, fast, safe, and analyzable authorization. Proceedings of the ACM on Programming Languages, 8(OOPSLA1), 2024. URL https://arxiv.org/abs/2403.04651.
Huang, J., Chen, X., Mishra, S., Zheng, H. S., Yu, A. W., Song, X., and Zhou, D. Large language models cannot self-correct reasoning yet. In The Twelfth International Conference on Learning Representations, 2024. URL https://arxiv.org/abs/2310.01798.
Lei, F., Chen, J., Ye, Y., Cao, R., Shin, D., Su, H., Suo, Z., Gao, H., Hu, W., Yin, P., Zhong, V., Xiong, C., Sun, R., Liu, Q., Wang, S., and Yu, T. Spider 2.0: Evaluating language models on real-world enterprise text-to-SQL workflows. In The Thirteenth International Conference on Learning Representations, 2025. URL https://arxiv.org/abs/2411.07763.
Liu, H., Parthasarathy, M., and Murali, A. Faithful autoformalization of natural language assertions. arXiv preprint arXiv:2607.13303, 2026. URL https://arxiv.org/abs/2607.13303.
Madaan, A., Tandon, N., Gupta, P., Hallinan, S., Gao, L., Wiegreffe, S., Alon, U., Dziri, N., Prabhumoye, S., Yang, Y., Gupta, S., Majumder, B. P., Hermann, K., Welleck, S., Yazdanbakhsh, A., and Clark, P. Self-Refine: Iterative refinement with self-feedback. In Advances in Neural Information Processing Systems, volume 36, pp. 46534–46594, 2023. URL https://arxiv.org/abs/2303.17651.
Mendoza, D., Mavridou, A., Katis, A., and Trippel, C. Automating requirements formalization: Using LLMs and low-complexity distinguishing traces for semantic validation. In Proceedings of the 48th International Conference on Software Engineering. ACM, 2026. doi: 10.1145/3744916.3787815. URL https://doi.org/10.1145/3744916.3787815.
Saparina, I. and Lapata, M. AMBROSIA: A benchmark for parsing ambiguous questions into database queries. In Advances in Neural Information Processing Systems, volume 37, 2024. URL https://arxiv.org/abs/2406.19073.
Saparina, I. and Lapata, M. Disambiguate first, parse later: Generating interpretations for ambiguity resolution in semantic parsing. In Che, W., Nabende, J., Shutova, E., and Pilehvar, M. T. (eds.), Findings of the Association for Computational Linguistics: ACL 2025, pp. 16825–16839, Vienna, Austria, July 2025. Association for Computational Linguistics. ISBN 979-8-89176-256-5. doi: 10.18653/v1/2025.findings-acl.863. URL https://aclanthology.org/2025.findings-acl.863/.
Scholak, T., Schucher, N., and Bahdanau, D. PICARD: Parsing incrementally for constrained auto-regressive decoding from language models. In Moens, M.-F., Huang, X., Specia, L., and Yih, S. W.-t. (eds.), Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, pp. 9895–9901, Online and Punta Cana, Dominican Republic, November 2021. Association for Computational Linguistics. doi: 10.18653/v1/2021.emnlp-main.779. URL https://aclanthology.org/2021.emnlp-main.779/.
Shi, J., Zhang, Z., Ma, B., Zhao, S., Yuan, Y., and Wang, G. LoC-Decomp: LLM autoformalization via logical concept decomposition and iterative feedback correction. In International Conference on Learning Representations, 2026. URL https://openreview.net/forum?id=0KFQ4F9YEH.
Stengel-Eskin, E., Rawlins, K., and Van Durme, B. Zero and few-shot semantic parsing with ambiguous inputs. In International Conference on Learning Representations, 2024. URL https://arxiv.org/abs/2306.00824.
Sun, C., Sheng, Y., Padon, O., and Barrett, C. Clover: Closed-loop verifiable code generation. In Proceedings of the First International Symposium on AI Verification, pp. 134–155. Springer, 2024. URL https://arxiv.org/abs/2310.17807.
Vatsa, A., Shome, S., Zhou, Y., and Eiers, W. AutoCedar: An agentic framework for verifier-guided access control policy synthesis. arXiv preprint arXiv:2607.03656, 2026. URL https://arxiv.org/abs/2607.03656.
Zhang, M., Borchert, P., Gritta, M., and Lampouras, G. DRIFT: Decompose, retrieve, illustrate, then formalize theorems. In International Conference on Learning Representations, 2026. URL https://arxiv.org/abs/2510.10815v4.
Zhong, R., Yu, T., and Klein, D. Semantic evaluation for text-to-SQL with distilled test suites. In Webber, B., Cohn, T., He, Y., and Liu, Y. (eds.), Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 396–411, Online, November 2020. Association for Computational Linguistics. doi: 10.18653/v1/2020.emnlp-main.29. URL https://aclanthology.org/2020.emnlp-main.29/.
AI USAGE DISCLOSURE
OpenAI’s Codex assistant supported literature inspection, experiment implementation and debugging, analysis scripts, manuscript revision, and document checks. DeepSeek generated and repaired the experimental SQL queries and logical forms; Kimi K3 and Kimi K2.6 provided the specified review feedback. The authors directed the study, reviewed the data and manuscript, and approved the final scientific claims.
Supplementary Material
Autoformalization for Ambiguous Inputs
A WORKFLOW ADAPTATION PROTOCOLS
Input sets and labels. All seven workflows use the same AmP inputs, drawn from the five source zero-shot ambiguous test sets. The selected set contains 200 inputs per type, for 1,000 inputs in total. LoC and DRIFT also share their inputs and reference exclusions on each SQL benchmark. The comparisons retain the source ambiguity labels. Table S1 reports scoring coverage, and Main paper Table 2 separates clear and ambiguous SQL inputs.
AmP adaptation. Direct returns formulas in one draw. IntentPrompt uses an interpretation first prompting interface. AutoCedar proposes source-grounded properties, checks floor and ceiling constraints, reviews the target, and realizes it through bounded counterexample-guided synthesis. The AmP implementation uses the specified predicate language and Z3, with two target repair rounds and three synthesis iterations. Clover checks six directed consistency relations among descriptions, specifications, and formal outputs. Four formal relations use quantified FOL SMT equivalence. Two description relations use source only reconstruction and model judgments. It exports an initial formula when all six checks accept. Roundtrip reconstructs descriptions from formulas, formalizes them again, and repairs the diagnosed translation stage. It allows five encoding attempts and three semantic repairs, returning the latest first stage set.
LoC. Both adaptations retain modular formalization, local backtranslation, local purpose checks, merged reconstruction, three level semantic judgment, discrepancy rechecking, and alternating semantic and syntax repair. Backtranslation sees the formal artifact and public context, without the intended question or module purpose. Semantic judgments are recomputed after syntax repair. The bounds are five outer rounds, two semantic repairs, and three syntax repairs. AmP modules use capture-avoiding substitution. SQL modules use nonrecursive common table expressions with dependency and name capture checks. SQLite compilation checks syntax against the public schema. External scoring receives the latest complete candidate set, with internal acceptance recorded separately.
DRIFT. The adaptation follows the published decomposition, retrieval, illustration, and formalization procedure. A frozen BAAI/bge-small-en-v1.5 encoder retrieves the top dependency by cosine similarity for each concept, followed by deduplication. Greedy example selection maximizes marginal dependency coverage, using semantic similarity to break ties and a budget of three ex-
amples. The final generation step receives the original input, selected dependencies and examples, and the context available during generation. SQL and FOL material replace the original mathematical library. The SQL library contains 24 dependencies and 20 independently authored language examples. The AmP library contains 13 base dependencies and 11 examples authored from the public formula grammar and vocabulary, supplemented by the actor-visible predicate and constant definitions. These libraries were constructed independently of benchmark questions and reference outputs. DRIFT adds up to three retrieved examples to the shared task and language instructions; Direct uses its task prompt in one generation call. The frozen encoder revision is 5c38ec7c405ec4b44b94cc5a9bb96e735b38267a.
External scoring and provenance. AmP uses the recorded amp_canonical_set_compat001 protocol. Both predictions and original references are canonicalized by the same procedure. Exact duplicate predictions are removed; valid predictions are grouped by canonical form, and distinct invalid predictions count against precision. SQL uses the strict observation and one-to-one matching evaluator, preserving typed values, bag or order requirements, native AmbiQT mappings, and invalid output penalties. Cases with an unknown checker outcome have no score. Corrections to SQL text decoding preserve the original references and saved predictions.
AmP AutoCedar, Clover, LoC, and DRIFT use the revised stage prompts. Direct, IntentPrompt, and Roundtrip use the baseline generation protocols with compatible external scoring. All seven have 1,000 scored inputs. Their selected inputs and reference exclusions are shared. The AmP and SQL decomposition comparisons use DeepSeek for generation and any native feedback stages, with no human confirmation.
B EXPERIMENTAL SETTINGS AND ADAPTATIONS
Data and code availability. Code, model outputs, and per case scores are stored in the project repository. The analyses use the final cleaned release, including the corrected expanded SQL records and the AmP and SQL decomposition results, together with their recorded implementation snapshots.
B.1 Runtime and Model Settings
Table S2 summarizes the inference and evaluation settings.
Table S1. Scoring coverage for the AmP and SQL decomposition comparisons. Each record is one workflow on one input. The 336 unscored SQL records correspond to 168 inputs whose original reference sets could not be scored, shared by LoC and DRIFT.
| Dataset | Workflows | Records | Scored | Not scored |
|---|---|---|---|---|
| AmP | All seven | 7,000 | 7,000 | 0 |
| AMBROSIA | LoC and DRIFT | 7,638 | 7,626 | 12 |
| AmbiQT | LoC and DRIFT | 6,092 | 5,768 | 324 |
| Total | 20,730 | 20,394 | 336 |
Table S2. Recorded settings for the initial SQL and interpretation studies and the AmP and SQL decomposition extensions.
| Setting | Recorded value |
|---|---|
| Local environment | Python on Linux, Cedar, cvc5 Linux ARM64, and SQLite. One thread per process. |
| Generation model and API | DeepSeek, recorded under deepseek-flash, accessed through streaming chat completion requests to api.deepseek.com. |
| Initial SQL request settings | Configured output limit of 32,768 tokens, thinking enabled, low reasoning effort, timeout of 600 seconds, and two overload retries. Provider default temperature. |
| Confirmation models | Kimi K3 or Kimi K2.6 supplies feedback. DeepSeek generates and repairs SQL. |
| AutoCedar budget | Up to two interpretation repairs per current property and one deterministic compilation candidate. |
| Clover and Roundtrip | Clover allows one retry after reconstruction execution failure. Roundtrip allows five initial encoding validation attempts per translation and three semantic repairs. |
| Evaluation limits | Read only SQLite, five seconds per query, 100,000 rows, and a progress check every 1,000 instructions. |
| Extension request settings | AmP and SQL LoC/DRIFT use a configured output limit of 393,216 tokens, a 1,800-second inference timeout, and a 20-second connection timeout. Thinking is enabled with low reasoning effort. |
| AmP request and solver limits | Up to four physical attempts per logical request, a shared limit of 64 concurrent requests, and a 10-second solver timeout. |
B.2 SQL Adaptation Procedures
Main paper Figure 2 shows where each adaptation interprets, checks, and revises the input. Table S3 gives pseudocode for the generation procedures.
B.3 Evaluation Input Sets and Coverage
Table S15 reports coverage for each condition. Table S5 separates reference problems from other unscorable cases.
Eligibility is checked by input identity within each published comparison. Across the five SQL workflows, every shared input labeled reference-unscorable has no numeric score in the other workflows. Two Clover records use an output-level label where another workflow uses a reference-level label; both remain unscored. The original SQL and later LoC/DRIFT releases also differ in reference availability for ten AmbiQT inputs: 69 original workflow-condition records retain the reference-unavailable label, while LoC and DRIFT have numeric scores for those inputs. Each comparison uses its published scores and coverage.
The AMBROSIA interpretation study includes both clear and ambiguous questions. Its baseline was generated alongside the two interpretation variants. The AmbiQT comparison reuses the initial AutoCedar baseline. Table S4 reports the selected and scored input counts.
The initial confirmation study compares no extra model with K3 and K2.6 on shared initial proposals. Table S4 reports coverage for each condition.
B.4 Adapting AutoCedar to SQL
The SQL backend fixes the relational structure and predicate atoms. Cedar and cvc5 verify the filter structure formed by AND, OR, and NOT under the SQL values true, false, and unknown. SQL is exported when its deterministic Cedar translation matches the checked representation. SQLite EXPLAIN separately checks syntax and schema compatibility without executing the query.
B.5 Preparing AmbiQT Outputs for Evaluation
Method specific parsers extract SQL candidate lists from model responses. During generation, the public schema becomes an empty SQLite database with quoted identifiers and TEXT columns for syntax and name checks.
During evaluation, candidates compile against the altered schema before the AmbiQT mappings for column names, table names, split tables, or aggregated tables translate them for execution on the original Spider database. The upstream rule suppresses the second branch for table splitting and aggregation when the first already matches. Scoring compares complete mapped results and groups reference slots with overlapping supported branches into one target. Private maps, reference SQL, and evaluation rows remain on the
Table S3. SQL adaptation procedures. The interpretation layer precedes AutoCedar, while simulated feedback acts inside its review process.
| Procedure | Operations for question q and database context D |
|---|---|
| Direct | Generate a SQL list from the benchmark prompt and parse the returned candidates. |
| AutoCedar | Enumerate readings of q. For each reading, review its agreement with q, allowing two repairs. Compile its SQL representation deterministically, check the fixed target, and collect the exported SQL candidates. |
| Roundtrip | Generate SQL . Reconstruct language from and . Generate SQL from and . Compare the answer sets of and . On disagreement, diagnose and repair the translation stage, up to three times. Return the latest . |
| Clover | Generate a specification and SQL for each reading. Reconstruct their descriptions and check agreement in six directions, four using SQL results and two using text comparisons. Retry once after a reconstruction execution error. Return retained SQL. |
| IntentPrompt | Prompt for explicit readings and their SQL. Extract the interpretation and SQL fields from the returned XML. |
| Interpretation layer | Produce free prose or structured natural language. Pass it with q and D to AutoCedar. |
| Simulated feedback | Start from the saved shared proposal. At the confirmation step of AutoCedar, use no additional reviewer, a Kimi K3 reviewer, or a Kimi K2.6 reviewer. Continue the native review, repair, and target checks. |
Table S4. Counts are question and condition records. Not scored includes ineligible references and other cases without a score.
| Workflow | AMBROSIA | AmbiQT | ||||
|---|---|---|---|---|---|---|
| Total | Scored | Not scored | Total | Scored | Not scored | |
| Expanded workflows and confirmation | ||||||
| Direct | 3,437 | 3,431 | 6 | 2,741 | 2,592 | 149 |
| AutoCedar | 3,437 | 3,432 | 5 | 2,741 | 2,591 | 150 |
| Roundtrip | 3,437 | 3,433 | 4 | 3,046 | 2,874 | 172 |
| Clover | 3,437 | 3,430 | 7 | 3,046 | 2,871 | 175 |
| IntentPrompt | 3,437 | 3,431 | 6 | 2,741 | 2,585 | 156 |
| AutoCedar + Kimi K3 | 3,437 | 3,432 | 5 | 2,741 | 2,591 | 150 |
| AutoCedar + Kimi K2.6 | 3,437 | 3,432 | 5 | 2,741 | 2,591 | 150 |
| Expanded total | 24,059 | 24,021 | 38 | 19,797 | 18,695 | 1,102 |
| Initial confirmation | ||||||
| No extra model | 382 | 381 | 1 | 305 | 282 | 23 |
| Kimi K3 | 382 | 381 | 1 | 305 | 282 | 23 |
| Kimi K2.6 | 382 | 380 | 2 | 305 | 281 | 24 |
| Prior interpretation on AMBROSIA | |||
|---|---|---|---|
| Workflow | Total | Scored | Not scored |
| AutoCedar | 382 | 381 | 1 |
| AutoCedar + free interpretation | 382 | 381 | 1 |
| AutoCedar + structured interpretation | 382 | 381 | 1 |
| Prior interpretation on AmbiQT | |||
|---|---|---|---|
| Workflow | Total | Scored | Not scored |
| AutoCedar | 305 | 282 | 23 |
| AutoCedar + structured interpretation | 305 | 282 | 23 |
evaluation side.
AmbiQT consistency checks in the expanded evaluation. Clover and Roundtrip use a fixed bank of test databases derived from the public schema. The bank is independent of the candidate SQL and remains fixed throughout checking. The initial workflow study evaluates Clover and Roundtrip on AMBROSIA.
Saved output scoring. The expanded snapshot preserves returned SQL strings and uses the existing reference eligibility policy. It incorporates completed scores after checker repairs and records parser adaptations for 23 IntentPrompt outputs. All reported means are recomputed from the published per case scores.
Candidate counts. Both interpretation variants increase the counts of returned SQL candidates and distinct answers after grouping queries with equivalent results. Table S6
Table S5. Recorded reasons for unscored records in the expanded evaluation.
| Reason | Records |
|---|---|
| Reference problems | |
| Reference unavailable | 69 |
| Invalid reference | 977 |
| No valid reference branch | 51 |
| Reference execution failure | 37 |
| Other unscored cases | |
| Nonidentical SQL; empty-fixture evidence insufficient | 5 |
| Tied ORDER BY values cut by LIMIT; result not uniquely specified | 1 |
| Total not scored | 1,140 |
Table S6. Candidate counts on shared scored AMBROSIA inputs. Free and structured are interpretation steps before AutoCedar. Distinct answers group equivalent SQL results.
| Workflow | SQL candidates | Distinct answers |
|---|---|---|
| AutoCedar | 1,664 | 990 |
| Free interpretation | 3,353 | 1,491 |
| Structured interpretation | 2,595 | 1,250 |
reports the counts.
B.6 Inference Cost Accounting
We aggregate the provider's prompt and completion counters over each published generation history, including review, repair, and recorded recovery attempts. Completion counts already include reasoning tokens. Each physical usage receipt is counted once by its path and content hash; replay of a saved output adds no model call. The audit authenticates 216,856 receipts across 20,730 workflow-input records. Twelve records contain an attempt whose usage was not returned. Their known subtotals are retained, and their total costs remain unknown.
Table S8 reports cost completeness before taking a common-input intersection. AmP has 995 inputs with complete usage for all seven workflows; LoC and DRIFT share 3,814 complete-cost AMBROSIA inputs and 3,044 AmbiQT inputs. These cost exclusions leave the numeric-score cohorts unchanged. The AMBROSIA interpretation study sums its published per-input physical-attempt counters (total_tokens_known_sum); all 382 inputs in each condition have complete recorded usage. Both studies aggregate recorded attempt tokens, with the interpretation totals taken from that study and the extension totals reconstructed from its full saved histories. Each cost ratio uses the shared complete-cost cohort within its study (Main paper Table 3; Table S8).
B.7 Statistical Comparisons
For paired comparisons, each input contributes its score difference between conditions. The AMBROSIA interpretation study resamples 295 database clusters with replacement for 10,000 bootstrap draws, using seed 20261006. Each draw averages the differences over cases in the sampled clusters. Pointwise 95% percentile intervals cover all three interpretation contrasts and six score metrics. Holm correction covers the three AMBROSIA F1 comparisons. Adjusted p values are 0.00030 for structured interpretation versus AutoCedar, 0.00030 for free interpretation versus AutoCedar, and 0.7555 for structured versus free interpretation. AmbiQT uses a post hoc bootstrap with 50,000 draws over 20 database clusters and seed 20261008. Table S9 reports all six metrics for each contrast.
For the direct K3–K2.6 comparison, we pair all inputs with numeric F1 under both reviewers: 3,432 AMBROSIA inputs in 760 database clusters and 2,591 AmbiQT inputs in 20 clusters. AMBROSIA clusters use the SHA-256 of the exact source database dump; AmbiQT uses the source database identifier. We sample the original number of clusters with replacement and retain every paired input in each sampled cluster, including repeated draws. Each replicate divides the summed K3-minus-K2.6 differences by its sampled input count. We use 10,000 draws with seed 2026101212 for AMBROSIA and 50,000 with seed 20261008 for AmbiQT, with NumPy PCG64 and lexicographically ordered clusters. Table S18 gives the mean differences and pointwise 95% percentile intervals, conditional on the saved outputs.
Table S7. Full condition means for interpretation before AutoCedar: 381 shared scored AMBROSIA inputs and 282 AmbiQT inputs. Base denotes AutoCedar on that subset. Metrics are percentages. Mean tokens cover all 382 AMBROSIA inputs; the AmbiQT cost comparison has different recorded definitions. Paired differences and 95% database-cluster intervals are in Supplementary Table S9.
| Dataset | Interpretation subset condition | F1 | Precision | Recall | All found | Mean tokens |
|---|---|---|---|---|---|---|
| AMBROSIA | Base AutoCedar | 50.05 | 44.41 | 67.80 | 58.53 | 45,538 |
| + Free interpretation | 43.24 | 34.70 | 72.75 | 64.04 | 154,105 | |
| + Structured interpretation | 43.61 | 37.15 | 65.92 | 57.22 | 99,431 | |
| AmbiQT | Base AutoCedar | 51.67 | 48.33 | 62.23 | 50.71 | — |
| + Structured interpretation | 44.72 | 39.49 | 59.75 | 50.00 | — |
Table S8. Provider-token coverage and means for complete generation histories. Cost-complete counts are per workflow; common is the intersection used for the displayed prompt, completion, and total means. Counts include saved recovery attempts.
| Dataset | Workflow | Inputs | Cost-complete | Common | Prompt | Completion | Total |
|---|---|---|---|---|---|---|---|
| AmP | Direct | 1,000 | 1,000 | 995 | 2,143 | 5,342 | 7,485 |
| IntentPrompt | 1,000 | 1,000 | 995 | 2,466 | 5,977 | 8,443 | |
| AutoCedar | 1,000 | 999 | 995 | 32,128 | 20,175 | 52,302 | |
| Clover | 1,000 | 996 | 995 | 86,194 | 37,667 | 123,860 | |
| Roundtrip | 1,000 | 1,000 | 995 | 6,920 | 6,928 | 13,848 | |
| LoC | 1,000 | 1,000 | 995 | 101,191 | 38,373 | 139,564 | |
| DRIFT | 1,000 | 1,000 | 995 | 10,517 | 4,682 | 15,199 | |
| AMBROSIA | LoC | 3,819 | 3,817 | 3,814 | 12,951 | 18,261 | 31,211 |
| DRIFT | 3,819 | 3,816 | 3,814 | 2,537 | 3,477 | 6,015 | |
| AmbiQT | LoC | 3,046 | 3,046 | 3,044 | 7,499 | 12,199 | 19,698 |
| DRIFT | 3,046 | 3,044 | 3,044 | 2,699 | 3,304 | 6,003 |
C DETAILED RESULTS
Table S12 reports matched workflow contrasts in the expanded evaluation. Table S15 collects its conditions and coverage. Table S13 separates paired workflow effects by ambiguity group. Table S14 retains the initial study and prior interpretation results. One found measures cases with at least one matched target.

Figure S1. The evaluation connects checks on formal outputs with recovery of supported meanings. SQL execution and AmP canonical matching provide the task specific comparisons used for precision and recall.
The five workflows share 2,254 selected AMBROSIA IDs and 2,226 selected AmbiQT IDs before score filtering. Requiring a valid score from every workflow leaves 2,249 and 2,108 inputs respectively. Table S16 uses these fixed intersections, while Table S12 uses a separate intersection for each pair.
Table S17 reports the condition means underlying the paired feedback contrasts in Main paper Table 4.
Table S9. Paired interpretation differences and pointwise 95% database cluster intervals in percentage points. Base denotes AutoCedar. Each AMBROSIA comparison uses 381 inputs in 295 clusters, and AmbiQT uses 282 inputs in 20 clusters.
| Dataset | Comparison | Metric | Difference | 95% interval |
|---|---|---|---|---|
| AMBROSIA | Structured vs. base | F1 | -6.44 | [-9.07, -3.94] |
| Precision | -7.26 | [-9.80, -4.84] | ||
| Recall | -1.88 | [-5.59, +1.82] | ||
| One found | -2.36 | [-6.12, +1.35] | ||
| All found | -1.31 | [-5.32, +2.79] | ||
| Exact set | -5.51 | [-8.56, -2.67] | ||
| AMBROSIA | Free vs. base | F1 | -6.81 | [-9.23, -4.40] |
| Precision | -9.70 | [-12.25, -7.25] | ||
| Recall | +4.94 | [+1.80, +8.20] | ||
| One found | +4.46 | [+1.35, +7.69] | ||
| All found | +5.51 | [+1.61, +9.44] | ||
| Exact set | -11.02 | [-14.48, -7.75] | ||
| AMBROSIA | Structured vs. free | F1 | +0.37 | [-1.98, +2.65] |
| Precision | +2.44 | [+0.07, +4.78] | ||
| Recall | -6.82 | [-9.98, -3.77] | ||
| One found | -6.82 | [-10.22, -3.59] | ||
| All found | -6.82 | [-10.19, -3.49] | ||
| Exact set | +5.51 | [+2.57, +8.44] | ||
| AmbiQT | Structured vs. base | F1 | -6.95 | [-8.95, -4.97] |
| Precision | -8.84 | [-11.38, -6.25] | ||
| Recall | -2.48 | [-4.82, -0.26] | ||
| One found | -4.26 | [-8.30, +0.00] | ||
| All found | -0.71 | [-4.28, +2.59] | ||
| Exact set | -0.71 | [-5.62, +3.73] |
Table S10. AMBROSIA F1 by study and the clear and ambiguous labels supplied by the dataset. Difference is ambiguous F1 minus clear F1, in percentage points. Each row reports its own scored counts.
| Study | Workflow | Clear N | Clear F1 | Ambiguous N | Ambiguous F1 | Difference |
|---|---|---|---|---|---|---|
| Workflows | Direct | 2400 | 58.36 | 1031 | 41.68 | -16.68 |
| AutoCedar | 2400 | 53.61 | 1032 | 42.14 | -11.46 | |
| Roundtrip | 2409 | 42.26 | 1024 | 30.16 | -12.10 | |
| Clover | 2402 | 43.90 | 1028 | 35.23 | -8.67 | |
| IntentPrompt | 2407 | 44.84 | 1024 | 38.51 | -6.34 | |
| AutoCedar + Kimi K2.6 | 2400 | 55.18 | 1032 | 42.57 | -12.61 | |
| AutoCedar + Kimi K3 | 2400 | 56.07 | 1032 | 42.82 | -13.26 | |
| Interpretation | AutoCedar | 266 | 54.51 | 115 | 39.73 | -14.78 |
| AutoCedar + free interpretation | 266 | 46.67 | 115 | 35.31 | -11.36 | |
| AutoCedar + structured interpretation | 266 | 48.05 | 115 | 33.33 | -14.72 |
Table S11. AmP precision, recall, and canonical set F1 on all 1,000 shared ambiguous inputs. Mean tokens use the 995 shared inputs with complete provider usage across all workflows. Table S8 gives the cost accounting.
| Workflow | Scored | F1 | Precision | Recall | Mean tokens |
|---|---|---|---|---|---|
| Direct | 1,000 | 73.05 | 70.88 | 76.85 | 7,485 |
| IntentPrompt | 1,000 | 73.01 | 69.64 | 78.50 | 8,443 |
| AutoCedar | 1,000 | 65.52 | 72.26 | 62.35 | 52,302 |
| Clover | 1,000 | 47.12 | 50.45 | 47.20 | 123,860 |
| Roundtrip | 1,000 | 73.51 | 70.84 | 78.25 | 13,848 |
| LoC | 1,000 | 69.70 | 69.42 | 70.40 | 139,564 |
| DRIFT | 1,000 | 89.02 | 88.09 | 91.55 | 15,199 |
Table S12. Expanded F1 differences on inputs scored by both methods, in percentage points. Each row uses its own shared input set.
| Dataset | Difference vs. Direct | Pairs | ΔF1 |
|---|---|---|---|
| AMBROSIA | AutoCedar | 3,087 | -3.45 |
| Clover | 3,085 | -11.86 | |
| IntentPrompt | 3,083 | -10.96 | |
| AmbiQT | Roundtrip | 3,086 | -15.06 |
| AutoCedar | 2,339 | -6.99 | |
| Clover | 2,589 | -40.09 | |
| IntentPrompt | 2,326 | -18.64 | |
| Roundtrip | 2,592 | -16.27 |
Table S13. Expanded AMBROSIA paired F1 changes relative to Direct, in percentage points. Difference is the ambiguous group change minus the clear group change.
| Workflow vs. Direct | Clear pairs | ΔF1 clear | Ambiguous pairs | ΔF1 ambiguous | Difference |
|---|---|---|---|---|---|
| AutoCedar + Kimi K2.6 | 2154 | -3.57 | 933 | +0.54 | +4.11 |
| AutoCedar + Kimi K3 | 2154 | -2.69 | 933 | +0.83 | +3.53 |
| AutoCedar | 2154 | -5.02 | 933 | +0.18 | +5.20 |
| Roundtrip | 2167 | -16.44 | 919 | -11.79 | +4.65 |
| Clover | 2161 | -14.14 | 924 | -6.52 | +7.62 |
| IntentPrompt | 2162 | -13.96 | 921 | -3.91 | +10.05 |
Table S14. Initial workflow and confirmation results, together with the prior interpretation study in percent. These runs are separate from the expanded evaluation. AmbiQT interpretation reuses the initial workflow baseline.
| Dataset | Workflow | Selected | Scored | F1 | Precision | Recall | One found | All found | Exact set |
|---|---|---|---|---|---|---|---|---|---|
| Workflows | |||||||||
| AMBROSIA | Direct | 382 | 382 | 54.23 | 52.30 | 62.87 | 73.04 | 52.88 | 31.15 |
| AMBROSIA | AutoCedar | 382 | 381 | 49.44 | 44.38 | 65.27 | 75.07 | 54.86 | 23.10 |
| AMBROSIA | Clover | 382 | 382 | 42.61 | 37.11 | 60.03 | 67.54 | 52.09 | 14.40 |
| AMBROSIA | IntentPrompt | 382 | 382 | 39.70 | 31.89 | 61.69 | 69.63 | 53.66 | 9.42 |
| AMBROSIA | Roundtrip | 382 | 380 | 34.55 | 31.46 | 43.07 | 47.89 | 38.16 | 18.42 |
| AmbiQT | Direct | 305 | 281 | 62.86 | 61.04 | 70.11 | 82.21 | 58.01 | 29.18 |
| AmbiQT | AutoCedar | 305 | 282 | 51.67 | 48.33 | 62.23 | 73.76 | 50.71 | 13.83 |
| AmbiQT | IntentPrompt | 305 | 289 | 40.45 | 36.01 | 50.69 | 60.21 | 41.18 | 7.61 |
| Interpretation | |||||||||
| AMBROSIA | AutoCedar | 382 | 381 | 50.05 | 44.41 | 67.80 | 76.64 | 58.53 | 23.88 |
| AMBROSIA | AutoCedar + free interpretation | 382 | 381 | 43.24 | 34.70 | 72.75 | 81.10 | 64.04 | 12.86 |
| AMBROSIA | AutoCedar + structured interpretation | 382 | 381 | 43.61 | 37.15 | 65.92 | 74.28 | 57.22 | 18.37 |
| AmbiQT | AutoCedar | 305 | 282 | 51.67 | 48.33 | 62.23 | 73.76 | 50.71 | 13.83 |
| AmbiQT | AutoCedar + structured interpretation | 305 | 282 | 44.72 | 39.49 | 59.75 | 69.50 | 50.00 | 13.12 |
| Confirmation | |||||||||
| AMBROSIA | No extra model | 382 | 381 | 49.03 | 43.90 | 64.83 | 74.54 | 54.33 | 21.78 |
| AMBROSIA | Kimi K3 | 382 | 381 | 50.62 | 46.09 | 64.87 | 75.07 | 54.33 | 24.93 |
| AMBROSIA | Kimi K2.6 | 382 | 380 | 49.54 | 44.88 | 64.47 | 73.68 | 55.00 | 23.42 |
| AmbiQT | No extra model | 305 | 282 | 51.36 | 48.81 | 60.99 | 73.76 | 48.23 | 14.54 |
| AmbiQT | Kimi K3 | 305 | 282 | 52.86 | 51.21 | 60.64 | 72.34 | 48.94 | 18.44 |
| AmbiQT | Kimi K2.6 | 305 | 281 | 51.32 | 48.97 | 60.32 | 72.24 | 48.40 | 16.37 |
Table S15. Expanded coverage and answer set recovery in percent. Scored counts eligible records with available scores. Ineligible references and other unscored cases complete the selected denominator. Main paper Table 1 and Supplementary Table S17 give F1, precision, and recall for these same conditions.
| Dataset | Workflow | Selected | Scored | Ineligible | Other unscored | One found | All found | Exact set |
|---|---|---|---|---|---|---|---|---|
| AMBROSIA | Direct | 3,437 | 3,431 | 6 | 0 | 71.70 | 52.78 | 29.41 |
| AutoCedar | 3,437 | 3,432 | 5 | 0 | 76.63 | 58.54 | 22.79 | |
| Clover | 3,437 | 3,430 | 6 | 1 | 65.04 | 50.35 | 14.75 | |
| IntentPrompt | 3,437 | 3,431 | 6 | 0 | 70.94 | 53.63 | 15.10 | |
| Roundtrip | 3,437 | 3,433 | 4 | 0 | 53.51 | 41.30 | 20.07 | |
| AutoCedar + Kimi K3 | 3,437 | 3,432 | 5 | 0 | 76.78 | 57.69 | 25.23 | |
| AutoCedar + Kimi K2.6 | 3,437 | 3,432 | 5 | 0 | 76.78 | 58.39 | 23.95 | |
| AmbiQT | Direct | 2,741 | 2,592 | 149 | 0 | 79.75 | 57.60 | 27.66 |
| AutoCedar | 2,741 | 2,591 | 150 | 0 | 76.69 | 54.69 | 17.02 | |
| Clover | 3,046 | 2,871 | 170 | 5 | 35.14 | 17.97 | 2.86 | |
| IntentPrompt | 2,741 | 2,585 | 156 | 0 | 62.63 | 43.17 | 8.32 | |
| Roundtrip | 3,046 | 2,874 | 172 | 0 | 58.84 | 45.79 | 20.63 | |
| AutoCedar + Kimi K3 | 2,741 | 2,591 | 150 | 0 | 76.42 | 54.26 | 20.65 | |
| AutoCedar + Kimi K2.6 | 2,741 | 2,591 | 150 | 0 | 75.96 | 53.26 | 18.14 |
Table S16. Five SQL workflows evaluated on the same scored inputs within each dataset. Values are percentages computed from saved scores. Bold marks the highest value in each dataset.
| Dataset | Workflow | Shared inputs | F1 | Precision | Recall |
|---|---|---|---|---|---|
| AMBROSIA | Direct | 2,249 | 53.72 | 51.63 | 62.35 |
| AutoCedar | 2,249 | 50.17 | 45.27 | 67.27 | |
| Roundtrip | 2,249 | 38.20 | 35.29 | 46.47 | |
| Clover | 2,249 | 41.58 | 35.94 | 58.40 | |
| IntentPrompt | 2,249 | 42.80 | 36.19 | 62.01 | |
| AmbiQT | Direct | 2,108 | 61.33 | 59.30 | 69.21 |
| AutoCedar | 2,108 | 54.34 | 50.72 | 65.65 | |
| Roundtrip | 2,108 | 44.63 | 41.60 | 52.16 | |
| Clover | 2,108 | 20.48 | 18.99 | 26.28 | |
| IntentPrompt | 2,108 | 42.30 | 38.00 | 52.87 |
Table S17. Review feedback results in percent. P and R denote precision and recall. Each mean uses the scored inputs for that condition. Bold marks the highest mean for each dataset.
| Reviewer | Scored | F1 | P | R | Exact set |
|---|---|---|---|---|---|
| AMBROSIA | |||||
| None | 3,432 | 50.16 | 45.06 | 67.81 | 22.79 |
| Kimi K3 | 3,432 | 52.09 | 47.91 | 67.36 | 25.23 |
| Kimi K2.6 | 3,432 | 51.39 | 46.72 | 67.68 | 23.95 |
| AmbiQT | |||||
| None | 2,591 | 54.45 | 50.89 | 65.69 | 17.02 |
| Kimi K3 | 2,591 | 56.49 | 54.42 | 65.34 | 20.65 |
| Kimi K2.6 | 2,591 | 54.69 | 52.02 | 64.61 | 18.14 |
Table S18. Direct K3 minus K2.6 paired F1 differences, in percentage points. Intervals resample database clusters as described in Section B.7.
| Dataset | Pairs | Clusters | ΔF1 | 95% interval |
|---|---|---|---|---|
| AMBROSIA | 3,432 | 760 | +0.70 | [0.31, 1.09] |
| AmbiQT | 2,591 | 20 | +1.80 | [1.25, 2.46] |
C.1 Interfaces and Supplementary Visual Summaries
Figure S2 summarizes the benchmark interfaces. Figure S3 visualizes the paired review gains in Main paper Table 4; Main paper Table 3 reports the interpretation cost comparison.
| Benchmark | Generation context | Scoring |
|---|---|---|
| AMBROSIA | QuestionSchema and data | SQL executionReference answers |
| AmbiQT | QuestionModified schema | Mapped executionReference answers |
| AmP | SentencePredicates and syntax | Canonical formulasReference forms |
Figure S2. Inputs and scoring for all three benchmarks. Reference outputs enter at evaluation.

Figure S3. Paired F1 gains from review feedback relative to AutoCedar without an extra model. Values are percentage points on the shared inputs in Main paper Table 4.
D SELECTED EXAMPLES
Each comparison contains ten fixed examples. The expanded workflow examples include all seven generation and confirmation conditions on five AMBROSIA and five AmbiQT inputs. The interpretation and initial confirmation comparisons each include ten examples.
Each table gives the question, reference SQL, precision, recall, F1, and the first returned SQL candidate. Scores use the complete answer set, with the total candidate count shown beside the example. Intermediate entries show saved readings, structured descriptions, Boolean atoms, or reconstruction outputs.
Table S19. Workflow comparison. Clear input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBROSIA 426. What are the chefs who speak English and servers who speak English.
| Reference | SQL | SELECT | Chefs. lastname | FROM | Languages | JOIN | Chefs | ON | Languages. LanguageID = | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| WHERE | Languages. LanguageName = | "English" | UNION | SELECT | Servers. lastname | ||||||||||
| FROM | Languages | JOIN | Servers | ON | Languages. LanguageID = | Servers. LanguageID | |||||||||
| LanguageName = | "English" | ||||||||||||||
| Workflow | P | R | F1 | First returned | SQL and candidate count | ||||||||||
| Direct | 0.00 | 0.00 | 0.00 | SELECT | c.First Name, c.Last Name | FROM | Chefs | c JOIN | |||||||
| Languages | l ON | c.LanguageID = | l.LanguageID | WHERE | l. | ||||||||||
| LanguageName = | 'English' | UNION | SELECT | s.First Name, | |||||||||||
| s.Last Name | FROM | Servers | s JOIN | Languages | l ON | s. | |||||||||
| LanguageID = | l.LanguageID | WHERE | l.LanguageName = | ||||||||||||
| 'English', l candidate | |||||||||||||||
| AutoCedar | 0.00 | 0.00 | 0.00 | SELECT | FirstName, LastName | FROM | Chefs | JOIN | |||||||
| Languages | ON | Chefs. LanguageID = | Languages. | ||||||||||||
| LanguageID | WHERE | Languages. LanguageName = | 'English' | ||||||||||||
| UNION | SELECT | FirstName, LastName | FROM | Servers | |||||||||||
| JOIN | Languages | ON | Servers. LanguageID = | Languages. | |||||||||||
| LanguageID | WHERE | Languages. LanguageName = | 'English', l candidate | ||||||||||||
| Roundtrip | 0.00 | 0.00 | 0.00 | Same first query as Direct, 4 candidates | |||||||||||
| Clover | 0.00 | 0.00 | 0.00 | Empty returned set, 0 candidates | |||||||||||
| IntentPrompt | 0.00 | 0.00 | 0.00 | SELECT | 'Chef' AS Role, c.First Name, c.Last Name | FROM | Chefs | c JOIN | Languages | l ON | c.LanguageID = | l.LanguageID | WHERE | l.LanguageName = | 'English' |
| UNION | ALL | SELECT | 'Server' AS Role, s.First Name, s.Last Name | FROM | Servers | s JOIN | Languages | l ON | s. | ||||||
| LanguageID = | l.LanguageID | WHERE | l.LanguageName = | 'English', 3 candidates | |||||||||||
| AutoCedar + Kimi K3 | 0.00 | 0.00 | 0.00 | Same first query as AutoCedar, 1 candidate | |||||||||||
| AutoCedar + Kimi K2.6 | 0.00 | 0.00 | 0.00 | Same first query as AutoCedar, 1 candidate |
Recorded intermediate representations
Roundtrip. Reconstructed reading Return the FirstName and LastName of every chef whose LanguageID matches a Languages row with LanguageName 'English', together with the FirstName and LastName of every server whose LanguageID matches a Languages row (excerpt)
Clover. All four proposed branches failed a description-to-specification or description-to-code check, so the returned set was empty.
Table S20. Workflow comparison. Clear input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBROSIA 428. Can you show me the sizes of all hot tubs in Miami along with the sizes of all swimming pools in any given location.
Reference SQL. SELECT SwimmingPool.Size FROM City JOIN Hotel ON City.ID = Hotel.ID JOIN SwimmingPool ON Hotel.ID = SwimmingPool.ID UNION SELECT HotTub.Capacity FROM City JOIN Hotel ON City.ID = Hotel.ID JOIN HotTub ON Hotel.ID = HotTub.ID WHERE City.Name = 'Miami'
| Workflow | P | R | F1 | First returned SQL and candidate count |
|---|---|---|---|---|
| Direct | 33.33 | 100.00 | 50.00 | SELECT HotTub.Capacity AS Size FROM HotTub JOIN Hotel ON HotTub.ID = Hotel.ID JOIN City ON Hotel.ID = City.ID WHERE City.Name = 'Miami' UNION ALL SELECT SwimmingPool.Size AS Size FROM SwimmingPool, 3 candidates |
| AutoCedar | 50.00 | 100.00 | 66.67 | SELECT h.Capacity AS Size FROM HotTub h JOIN Hotel ho ON h.ID = ho.ID JOIN City c ON ho.ID = c.ID WHERE c.Name = 'Miami' UNION ALL SELECT s.Size AS Size FROM SwimmingPool s, 5 candidates |
| Roundtrip | 0.00 | 0.00 | 0.00 | SELECT 'Hot Tub' AS Type, ht.Capacity AS Size, c.Name AS Location FROM HotTub ht JOIN Hotel h ON ht.ID = h.ID JOIN City c ON h.ID = c.ID WHERE c.Name = 'Miami' UNION ALL SELECT 'Swimming Pool' AS Type, sp.Size AS Size, c.Name AS Location FROM SwimmingPool sp JOIN Hotel h ON sp.ID = h.ID JOIN City c ON h.ID = c.ID, 2 candidates |
| Clover | 0.00 | 0.00 | 0.00 | SELECT HotTub.Capacity AS Size FROM HotTub JOIN Hotel ON HotTub.ID = Hotel.ID JOIN City ON Hotel.ID = City.ID WHERE City.Name = 'Miami' UNION ALL SELECT SwimmingPool.Size AS Size FROM SwimmingPool JOIN Hotel ON SwimmingPool.ID = Hotel.ID JOIN City ON Hotel.ID = City.ID WHERE City.Name = 'Miami', 3 candidates |
| IntentPrompt | 20.00 | 100.00 | 33.33 | SELECT 'Hot Tub' AS Type, City.Name AS Location, HotTub.Capacity AS Size FROM HotTub JOIN Hotel ON HotTub.ID = Hotel.ID JOIN City ON Hotel.ID = City.ID WHERE City.Name = 'Miami' UNION ALL SELECT 'Swimming Pool' AS Type, City.Name AS Location, SwimmingPool.Size AS Size FROM SwimmingPool JOIN Hotel ON SwimmingPool.ID = Hotel.ID JOIN City ON Hotel.ID = City.ID, 5 candidates |
| AutoCedar + Kimi K3 | 50.00 | 100.00 | 66.67 | Same first query as AutoCedar, 5 candidates |
| AutoCedar + Kimi K2.6 | 50.00 | 100.00 | 66.67 | Same first query as AutoCedar, 5 candidates |
Recorded intermediate representations
Roundtrip. Reconstructed reading This query returns a combined result set with three columns, Type, Size, and Location. For the first part, it selects one row for every HotTub whose joined Hotel and City match on ID and whose City.Name is exactly (excerpt) Clover. SQL reconstruction and specification checks mismatched. The reconstructed description was assessed by the model.
Table S21. Workflow comparison. Ambiguous input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBROSIA 429. What size are all swimming pools and hot tubs in Miami.
Reference SQL 1. SELECT SwimmingPool.Size FROM City JOIN Hotel ON City.ID = Hotel.ID JOIN SwimmingPool ON Hotel.ID = SwimmingPool.ID WHERE City.Name = 'Miami' UNION SELECT HotTub.Capacity FROM City JOIN Hotel ON City.ID = Hotel.ID JOIN HotTub ON Hotel.ID = HotTub.ID WHERE City.Name = 'Miami'
Reference SQL 2. SELECT SwimmingPool.Size FROM City JOIN Hotel ON City.ID = Hotel.ID JOIN SwimmingPool ON Hotel.ID = SwimmingPool.ID UNION SELECT HotTub.Capacity FROM City JOIN Hotel ON City.ID = Hotel.ID JOIN HotTub ON Hotel.ID = HotTub.ID WHERE City.Name = 'Miami'
| Workflow | P | R | F1 | First returned SQL and candidate count |
|---|---|---|---|---|
| Direct | 100.00 | 50.00 | 66.67 | SELECT sp.Size FROM SwimmingPool sp JOIN Hotel h ON sp.ID = h.ID JOIN City c ON h.ID = c.ID WHERE c.Name = 'Miami' UNION ALL SELECT ht.Capacity FROM HotTub ht JOIN Hotel h ON ht.ID = h.ID JOIN City c ON h.ID = c.ID WHERE c.Name = 'Miami', 1 candidate |
| AutoCedar | 50.00 | 100.00 | 66.67 | SELECT SwimmingPool.Size FROM SwimmingPool JOIN Hotel ON SwimmingPool.ID = Hotel.ID JOIN City ON Hotel.ID = City.ID WHERE City.Name = 'Miami' UNION ALL SELECT HotTub.Capacity FROM HotTub JOIN Hotel ON HotTub.ID = Hotel.ID JOIN City ON Hotel.ID = City.ID WHERE City.Name = 'Miami', 5 candidates |
| Roundtrip | 0.00 | 0.00 | 0.00 | SELECT 'Swimming Pool' AS FacilityType, sp.Size AS Size FROM City c JOIN Hotel h ON h.ID = c.ID JOIN SwimmingPool sp ON sp.ID = h.ID WHERE c.Name = 'Miami' UNION ALL SELECT 'Hot Tub' AS FacilityType, CAST(ht.Capacity AS TEXT) AS Size FROM City c JOIN Hotel h ON h.ID = c.ID JOIN HotTub ht ON ht.ID = h.ID WHERE c.Name = 'Miami', 3 candidates |
| Clover | 25.00 | 50.00 | 33.33 | SELECT sp.Size AS Size FROM SwimmingPool sp JOIN Hotel h ON sp.ID = h.ID JOIN City c ON h.ID = c.ID WHERE c.Name = 'Miami' UNION ALL SELECT NULL AS Size FROM HotTub ht JOIN Hotel h ON ht.ID = h.ID JOIN City c ON h.ID = c.ID WHERE c.Name = 'Miami', 4 candidates |
| IntentPrompt | 0.00 | 0.00 | 0.00 | SELECT 'Swimming Pool' AS Type, sp.Size AS Size FROM SwimmingPool sp JOIN Hotel h ON sp.ID = h.ID JOIN City c ON h.ID = c.ID WHERE c.Name = 'Miami' UNION ALL SELECT 'Hot Tub' AS Type, CAST(ht.Capacity AS TEXT) AS Size FROM HotTub ht JOIN Hotel h ON ht.ID = h.ID JOIN City c ON h.ID = c.ID WHERE c.Name = 'Miami', 3 candidates |
| AutoCedar + Kimi K3 | 33.33 | 50.00 | 40.00 | Same first query as AutoCedar, 5 candidates |
| AutoCedar + Kimi K2.6 | 50.00 | 100.00 | 66.67 | Same first query as AutoCedar, 4 candidates |
Recorded intermediate representations
Roundtrip. Reconstructed reading Returns a combined result set using UNION ALL. For every City row named 'Miami' joined to a Hotel row whose ID equals that City row's ID, and joined to a SwimmingPool row whose ID equals that Hotel row's ID, it (excerpt) Clover. SQL reconstruction and specification checks matched. The reconstructed description was assessed by the model.
Table S22. Workflow comparison. Clear input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBROSIA 430. Provide a list of all family suites and also provide a list of single rooms that cost 150.
Reference SQL. SELECT FamilySuites.Room FROM FamilySuites UNION SELECT SingleRooms.Room FROM SingleRooms WHERE SingleRooms.Price_per_night = 150.0
| Workflow | P | R | F1 | First returned SQL and candidate count |
|---|---|---|---|---|
| Direct | 0.00 | 0.00 | 0.00 | SELECT Room, Price_per_night FROM FamilySuites UNION ALL SELECT Room, Price_per_night FROM SingleRooms WHERE Price_per_night = 150.2 candidates |
| AutoCedar | 25.00 | 100.00 | 40.00 | SELECT SuiteID, Room, OccupancyLimit, Amenities, Price_per_night, NULL AS RoomID, NULL AS NumberOfBeds, NULL AS View, NULL AS Services FROM FamilySuites UNION ALL SELECT NULL, Room, NULL, NULL, Price_per_night, RoomID, NumberOfBeds, View, Services FROM SingleRooms WHERE Price_per_night = 150.7 candidates |
| Roundtrip | 0.00 | 0.00 | 0.00 | SELECT Room, 'Family Suite' AS Type, OccupancyLimit AS Capacity, Amenities AS Details, Price_per_night FROM FamilySuites UNION ALL SELECT Room, 'Single Room' AS Type, NumberOfBeds AS Capacity, Services AS Details, Price_per_night FROM SingleRooms WHERE Price_per_night = 150.0.4 candidates |
| Clover | 33.33 | 100.00 | 50.00 | Same first query as Direct, 3 candidates |
| IntentPrompt | 0.00 | 0.00 | 0.00 | SELECT 'Family Suite' AS Type, Room, Price_per_night FROM FamilySuites UNION ALL SELECT 'Single Room' AS Type, Room, Price_per_night FROM SingleRooms WHERE Price_per_night = 150 ORDER BY Type, Room, 3 candidates |
| AutoCedar + Kimi K3 | 25.00 | 100.00 | 40.00 | Same first query as AutoCedar, 6 candidates |
| AutoCedar + Kimi K2.6 | 25.00 | 100.00 | 40.00 | Same first query as AutoCedar, 7 candidates |
Recorded intermediate representations
Roundtrip. Reconstructed reading For every row in FamilySuites, return its Room, the literal 'Family Suite' as Type, its OccupancyLimit as Capacity, its Amenities as Details, and its Price_per_night. Also return, for every row in SingleRooms whose (excerpt) Clover. SQL reconstruction and specification checks mismatched. The reconstructed description was assessed by the model.
Table S23. Workflow comparison. Clear input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBROSIA 434. Can you show chalets and cabins that cost $200 per night.
Reference SQL. SELECT Chalets.chaletName as name FROM Chalets WHERE Chalets.pricePerNight = 200.0 UNION SELECT Cabins.cabinName as name FROM Cabins WHERE Cabins.pricePerNight = 200.0
| Workflow | P | R | F1 | First returned SQL and candidate count |
|---|---|---|---|---|
| Direct | 0.00 | 0.00 | 0.00 | SELECT cabinName AS name, pricePerNight FROM Cabins WHERE pricePerNight = 200 UNION SELECT chaletName AS name, pricePerNight FROM Chalets WHERE pricePerNight = 200, 3 candidates |
| AutoCedar | 20.00 | 100.00 | 33.33 | SELECT chaletName AS name FROM Chalets WHERE pricePerNight = 200 UNION ALL SELECT cabinName AS name FROM Cabins WHERE pricePerNight = 200, 6 candidates |
| Roundtrip | 0.00 | 0.00 | 0.00 | SELECT 'Chalet' AS type, id, chaletName AS name, pricePerNight, location, capacity FROM Chalets WHERE pricePerNight = 200 UNION ALL SELECT 'Cabin' AS type, id, cabinName AS name, pricePerNight, location, capacity FROM Cabins WHERE pricePerNight = 200, 1 candidate |
| Clover | 50.00 | 100.00 | 66.67 | SELECT chaletName AS name FROM Chalets WHERE pricePerNight = 200 UNION SELECT cabinName AS name FROM Cabins WHERE pricePerNight = 200, 2 candidates |
| IntentPrompt | 0.00 | 0.00 | 0.00 | SELECT 'Cabin' AS type, cabinName AS name FROM Cabins WHERE pricePerNight = 200 UNION ALL SELECT 'Chalet' AS type, chaletName AS name FROM Chalets WHERE pricePerNight = 200, 3 candidates |
| AutoCedar + Kimi K3 | 16.67 | 100.00 | 28.57 | Same first query as Roundtrip, 7 candidates |
| AutoCedar + Kimi K2.6 | 25.00 | 100.00 | 40.00 | Same first query as AutoCedar, 7 candidates |
Recorded intermediate representations
Roundtrip. Reconstructed reading This query returns a combined result set with columns type, id, name, pricePerNight, location, and capacity. It has two parts joined by UNION ALL. The first part selects every row from the Chalets table whose (excerpt) Clover. SQL reconstruction and specification checks mismatched. The reconstructed description was assessed by the model.
Table S24. Workflow comparison. Ambiguous input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBIQT 000000. Show name, country, age for all singers ordered by age from the oldest to the youngest.
Reference SQL 1. select artist_name, country, age from singer order by age desc
Reference SQL 2. select performer_name, country, age from singer order by age desc
| Workflow | P | R | F1 | First returned SQL and candidate count |
|---|---|---|---|---|
| Direct | 100.00 | 100.00 | 100.00 | select artist_name, country, age from singer order by age desc, 5 candidates |
| AutoCedar | 100.00 | 100.00 | 100.00 | Same first query as Direct, 2 candidates |
| Roundtrip | 100.00 | 100.00 | 100.00 | SELECT artist_name AS name, country, age FROM singer ORDER BY age DESC, 2 candidates |
| Clover | 100.00 | 50.00 | 66.67 | Same first query as Roundtrip, 1 candidate |
| IntentPrompt | 66.67 | 100.00 | 80.00 | Same first query as Direct, 3 candidates |
| AutoCedar + Kimi K3 | 100.00 | 100.00 | 100.00 | Same first query as Direct, 2 candidates |
| AutoCedar + Kimi K2.6 | 100.00 | 100.00 | 100.00 | Same first query as Direct, 2 candidates |
Recorded intermediate representations
Roundtrip. Reconstructed reading Retrieves the artist_name (aliased as name), country, and age for every row in the singer table, with no filtering conditions, no aggregation, and no exclusions. The result rows are ordered by age in descending order. Clover. SQL reconstruction and specification checks matched. The reconstructed description was assessed by the model.
Table S25. Workflow comparison. Ambiguous input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBIQT 000002. Show name, country, age for all singers ordered by age from the oldest to the youngest.
Reference SQL 1. select name, nationality, age from singer order by age desc Reference SQL 2. select name, citizenship, age from singer order by age desc
| Workflow | P | R | F1 | First returned SQL and candidate count |
|---|---|---|---|---|
| Direct | 100.00 | 100.00 | 100.00 | select name, nationality, age from singer order by age desc, 5 candidates |
| AutoCedar | 100.00 | 100.00 | 100.00 | Same first query as Direct, 3 candidates |
| Roundtrip | 100.00 | 100.00 | 100.00 | SELECT name, nationality AS country, age FROM singer ORDER BY age DESC, 2 candidates |
| Clover | 0.00 | 0.00 | 0.00 | Empty returned set, 0 candidates |
| IntentPrompt | 100.00 | 100.00 | 100.00 | Same first query as Roundtrip, 2 candidates |
| AutoCedar + Kimi K3 | 66.67 | 100.00 | 80.00 | Same first query as Direct, 3 candidates |
| AutoCedar + Kimi K2.6 | 100.00 | 100.00 | 100.00 | Same first query as Direct, 2 candidates |
Recorded intermediate representations
Roundtrip. Reconstructed reading Retrieve the name, nationality (renamed as country), and age of every row in the singer table, with no filtering or aggregation, ordered by age from highest to lowest.
Clover. SQL reconstruction and specification checks mismatched. The reconstructed description was assessed by the model.
Table S26. Workflow comparison. Ambiguous input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBIQT 000003. What are the names, countries, and ages for every singer in descending order of age.
Reference SQL 1. select artist_name, country, age from singer order by age desc Reference SQL 2. select performer_name, country, age from singer order by age desc
| Workflow | P | R | F1 | First returned SQL and candidate count |
|---|---|---|---|---|
| Direct | 66.67 | 100.00 | 80.00 | select performer_name, country, age from singer order by age desc, 5 candidates |
| AutoCedar | 66.67 | 100.00 | 80.00 | Same first query as Direct, 3 candidates |
| Roundtrip | 100.00 | 100.00 | 100.00 | SELECT performer_name AS name, country, age FROM singer ORDER BY age DESC, 2 candidates |
| Clover | 66.67 | 100.00 | 80.00 | Same first query as Direct, 3 candidates |
| IntentPrompt | 66.67 | 100.00 | 80.00 | SELECT artist_name, country, age FROM singer ORDER BY age DESC, 3 candidates |
| AutoCedar + Kimi K3 | 66.67 | 100.00 | 80.00 | Same first query as Direct, 3 candidates |
| AutoCedar + Kimi K2.6 | 100.00 | 100.00 | 100.00 | Same first query as Direct, 2 candidates |
Recorded intermediate representations
Roundtrip. Reconstructed reading For every row in the singer table, return the performer_name value under the alias name, along with country and age. The result includes all rows with no filtering or exclusions and no aggregation. The rows are (excerpt) Clover. SQL reconstruction and specification checks matched. The reconstructed description was assessed by the model.
Table S27. Workflow comparison. Ambiguous input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBIQT 000004. What are the names, countries, and ages for every singer in descending order of age.
Reference SQL 1. select name, country, years_old from singer order by years_old desc
Reference SQL 2. select name, country, birthdate from singer order by birthdate desc
| Workflow | P | R | F1 | First returned SQL and candidate count |
|---|---|---|---|---|
| Direct | 100.00 | 100.00 | 100.00 | select name, country, years_old from singer order by years_old desc, 5 candidates |
| AutoCedar | 100.00 | 50.00 | 66.67 | Same first query as Direct, 2 candidates |
| Roundtrip | 100.00 | 50.00 | 66.67 | Same first query as Direct, 1 candidate |
| Clover | 0.00 | 0.00 | 0.00 | SELECT name, country, years_old FROM singer ORDER BY years_old ASC, 1 candidate |
| IntentPrompt | 100.00 | 50.00 | 66.67 | SELECT name, country, years_old AS age FROM singer ORDER BY years_old DESC, 1 candidate |
| AutoCedar + Kimi K3 | 100.00 | 50.00 | 66.67 | Same first query as Direct, 2 candidates |
| AutoCedar + Kimi K2.6 | 100.00 | 50.00 | 66.67 | Same first query as Direct, 2 candidates |
Recorded intermediate representations
Roundtrip. Reconstructed reading For every row in the singer table, return the singer's name, country, and years_old. The result rows are ordered by years_old from highest to lowest. There are no filters, exclusions, aggregations, or grouping.
Clover. SQL reconstruction and specification checks matched. The reconstructed description was assessed by the model.
Table S28. Workflow comparison. Ambiguous input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBIQT 000005. What are the names, countries, and ages for every singer in descending order of age.
Reference SQL 1. select name, nationality, age from singer order by age desc
Reference SQL 2. select name, citizenship, age from singer order by age desc
| Workflow | P | R | F1 | First returned SQL and candidate count |
|---|---|---|---|---|
| Direct | 66.67 | 100.00 | 80.00 | select name, nationality, age from singer order by age desc, 5 candidates |
| AutoCedar | 66.67 | 100.00 | 80.00 | Same first query as Direct, 5 candidates |
| Roundtrip | 100.00 | 100.00 | 100.00 | Same first query as Direct, 2 candidates |
| Clover | 0.00 | 0.00 | 0.00 | SELECT name, nationality, citizenship, age FROM singer ORDER BY CAST(age AS INTEGER) DESC, 1 candidate |
| IntentPrompt | 66.67 | 100.00 | 80.00 | Same first query as Direct, 3 candidates |
| AutoCedar + Kimi K3 | 66.67 | 100.00 | 80.00 | Same first query as Direct, 5 candidates |
| AutoCedar + Kimi K2.6 | 66.67 | 100.00 | 80.00 | Same first query as Direct, 4 candidates |
Recorded intermediate representations
Roundtrip. Reconstructed reading Retrieve the name, nationality, and age for every row in the singer table, with the results ordered by age from highest to lowest. No rows are excluded and no aggregation is performed.
Clover. SQL reconstruction and specification checks matched. The reconstructed description was assessed by the model.
Table S29. Interpretation before AutoCedar. Clear input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBROSIA 1481. Please display the name and description of programs that are consistent across all authorities
Reference SQL. SELECT Programs.program_name, Programs.description from Authorities_Programs join Programs on Authorities_Programs.program_id = Programs.program_id join Authorities on Authorities_Programs.authority_id = Authorities.authority_id GROUP BY Authorities_Programs.program_id HAVING COUNT(DISTINCT Authorities_Programs.authority_id) = (SELECT COUNT(*) FROM Authorities)
| Workflow | P | R | F1 | First returned SQL and candidate count |
|---|---|---|---|---|
| AutoCedar | 100.00 | 100.00 | 100.00 | SELECT p.program_name, p.description FROM Programs p WHERE NOT EXISTS (SELECT 1 FROM Authorities a WHERE NOT EXISTS (SELECT 1 FROM Authorities_Programs ap WHERE ap.authority_id = a.authority_id AND ap.program_id = p.program_id)), 2 candidates |
| Free interpretation | 100.00 | 100.00 | 100.00 | SELECT p.program_name AS name, p.description FROM Programs p WHERE NOT EXISTS (SELECT 1 FROM Authorities a WHERE NOT EXISTS (SELECT 1 FROM Authorities_Programs ap WHERE ap.authority_id = a.authority_id AND ap.program_id = p.program_id)), 6 candidates |
| Structured interpretation | 100.00 | 100.00 | 100.00 | SELECT p.program_name, p.description FROM Programs p WHERE NOT EXISTS ( SELECT 1 FROM Authorities a WHERE NOT EXISTS ( SELECT 1 FROM Authorities_Programs ap WHERE ap.authority_id = a.authority_id AND ap.program_id = p.program_id ) ), 3 candidates |
Recorded intermediate representations
AutoCedar. Atoms a1 = EXISTS ( SELECT 1 FROM AUTHORITIES A WHERE NOT EXISTS ( SELECT 1 FROM AUTHORITIES_PROGRAMS AP WHERE AP . AUTHORITY_ID = A . AUTHORITY_ID AND AP . PROGRAM_ID = P . PROGRAM_ID ) ). Boolean form NOT (a1)
Free interpretation. Reading A program is consistent across all authorities if every authority in the Authorities table is linked to that program, output the program's name and description.
Structured interpretation. Reading Display the program_name and description of each program that is associated with every authority in the Authorities table, 'consistent across all authorities' is read as the program being common/available across all authorities.
Table S30. Interpretation before AutoCedar. Clear input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBROSIA 1826. Which fashion designer brings all the reporters together.
Reference SQL. SELECT Designers.Name from Fashion_Reporters_Designers join Designers on Fashion_Reporters_Designers.DesignerID = Designers.DesignerID join Fashion_Reporters on Fashion_Reporters_Designers.ReporterID = Fashion_Reporters.ReporterID GROUP BY Fashion_Reporters_Designers.DesignerID HAVING COUNT(DISTINCT Fashion_Reporters_Designers.ReporterID) = (SELECT COUNT(*) FROM Fashion_Reporters)
| Workflow | P | R | F1 | First returned SQL and candidate count |
|---|---|---|---|---|
| AutoCedar | 100.00 | 100.00 | 100.00 | SELECT D.Name FROM Designers D JOIN Fashion_Reporters_Designers FRD ON D.DesignerID = FRD.DesignerID GROUP BY D.DesignerID, D.Name HAVING COUNT(DISTINCT FRD.ReporterID) = (SELECT COUNT(*) FROM Fashion_Reporters),2 candidates |
| Free interpretation | 100.00 | 100.00 | 100.00 | SELECT d.Name FROM Designers d WHERE NOT EXISTS (SELECT 1 FROM Fashion_Reporters r WHERE NOT EXISTS (SELECT 1 FROM Fashion_Reporters_Designers frd WHERE frd.DesignerID = d.DesignerID AND frd.ReporterID = r.ReporterID)),5 candidates |
| Structured interpretation | 100.00 | 100.00 | 100.00 | SELECT d.Name FROM Designers d WHERE NOT EXISTS (SELECT 1 FROM Fashion_Reporters r WHERE NOT EXISTS (SELECT 1 FROM Fashion_Reporters_Designers rd WHERE rd.DesignerID = d.DesignerID AND rd.ReporterID = r.ReporterID)),1 candidate |
Recorded intermediate representations
AutoCedar. Atoms a1 = D . DESIGNERID = FRD . DESIGNERID. Boolean form a1
Free interpretation. Reading Designer associated with every reporter in Fashion_Reporters.
Structured interpretation. Reading Find the fashion designer who is associated with every reporter in the database, where the association is represented by Fashion_Reporters_Designers, return the designer's name.
Table S31. Interpretation before AutoCedar. Clear input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBROSIA 2666. What is the version of program common for all visual effects artists.
Reference SQL. SELECT Programs.version from Visual_Effects_Artists_Programs join Programs on Visual_Effects_Artists_Programs.program_id = Programs.program_id join Visual_Effects_Artists on Visual_Effects_Artists_Programs.visual_effects_artist_id = Visual_Effects_Artists.artist_id GROUP BY Visual_Effects_Artists_Programs.program_id HAVING COUNT(DISTINCT Visual_Effects_Artists_Programs.visual_effects_artist_id) = (SELECT COUNT(*) FROM Visual_Effects_Artists)
| Workflow | P | R | F1 | First returned SQL and candidate count |
|---|---|---|---|---|
| AutoCedar | 100.00 | 100.00 | 100.00 | SELECT DISTINCT p.version FROM Programs p WHERE NOT EXISTS (SELECT 1 FROM Visual_Effects_Artists a WHERE NOT EXISTS (SELECT 1 FROM Visual_Effects_Artists_Programs veap WHERE veap.visual_effects_artist_id = a.artist_id AND veap.program_id = p.program_id)),2 candidates |
| Free interpretation | 100.00 | 100.00 | 100.00 | SELECT DISTINCT p.version FROM Programs AS p JOIN Visual_Effects_Artists_Programs AS vap ON p.program_id = vap.program_id GROUP BY p.program_id HAVING COUNT(DISTINCT vap.visual_effects_artist_id) = (SELECT COUNT(*) FROM Visual_Effects_Artists), 12 candidates |
| Structured interpretation | 100.00 | 100.00 | 100.00 | SELECT DISTINCT p.version FROM Programs p JOIN Visual_Effects_Artists_Programs vap ON p.program_id = vap.program_id GROUP BY p.program_id, p.version HAVING COUNT(DISTINCT vap.visual_effects_artist_id) = (SELECT COUNT(*) FROM Visual_Effects_Artists), 7 candidates |
Recorded intermediate representations
AutoCedar. Atoms a1 = EXISTS ( SELECT 1 FROM VISUAL_EFFECTS_ARTISTS A WHERE NOT EXISTS ( SELECT 1 FROM VISUAL_EFFECTS_ARTISTS_PROGRAMS VEAP WHERE VEAP . VISUAL_EFFECTS_ARTIST_ID = A . ARTIST_ID AND VEAP . PROGRAM_ID = P . PROGRAM_ID ) ). Boolean form (excerpt)
Free interpretation. Reading Common means shared by every artist, program is identified by program_id, return the version of each program that all artists use.
Structured interpretation. Reading Find the version of a program that is associated with every visual effects artist, 'common' is read as universally shared/intersection, and 'the version' is the version of that shared program.
Table S32. Interpretation before AutoCedar. Ambiguous input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBROSIA 2941. Who is the chef at the restaurant where you can find a grilled steak with garlic butter on the menu.
Reference SQL 1. SELECT r.executive_chef FROM Restaurants r, MenuItems m WHERE r.restaurant_id = m.restaurant_id AND m.item_name = 'Steak'
Reference SQL 2. SELECT r.sous_chef FROM Restaurants r, MenuItems m WHERE r.restaurant_id = m.restaurant_id AND m.item_name = 'Steak'
Reference SQL 3. SELECT r.executive_chef, sous_chef FROM Restaurants r, MenuItems m WHERE r.restaurant_id = m.restaurant_id AND m.item_name = 'Steak'
| Workflow | P | R | F1 | First returned SQL and candidate count |
|---|---|---|---|---|
| AutoCedar | 66.67 | 66.67 | 66.67 | SELECT R.executive_chef FROM Restaurants R JOIN MenuItems M ON R.restaurant_id = M.restaurant_id WHERE M.description = 'Grilled steak with garlic butter',3 candidates |
| Free interpretation | 66.67 | 66.67 | 66.67 | SELECT DISTINCT r.executive_chef AS chef FROM Restaurants r JOIN MenuItems m ON r.restaurant_id = m.restaurant_id WHERE LOWER(m.description) = 'grilled steak with garlic butter',17 candidates |
| Structured interpretation | 66.67 | 66.67 | 66.67 | SELECT r.executive_chef AS chef FROM Restaurants r JOIN MenuItems m ON r.restaurant_id = m.restaurant_id WHERE m.description LIKE '%grilled steak with garlic butter%',7 candidates |
Recorded intermediate representations
AutoCedar. Atoms a1 = R . RESTAURANT_ID = M . RESTAURANT_ID. Boolean form a1
Free interpretation. Reading "The chef" refers to the executive chef, and the menu item is the one whose description exactly matches the phrase, ignoring the article "a" and treating case insensitively. Return distinct executive chefs for any matching (excerpt)
Structured interpretation. Reading The question asks for the executive chef of the restaurant that offers a menu item matching 'grilled steak with garlic butter'. 'Chef' is read as the Restaurants.executive_chef column.
Table S33. Interpretation before AutoCedar. Clear input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBROSIA 1130. Provide a list of all baggage claim staff and also provide a list of security staff in terminal 2. Show them in one table.
Reference SQL. SELECT BaggageClaims.HandlerName as name FROM BaggageClaims UNION SELECT SecurityChecks.OfficerName as name FROM SecurityChecks WHERE SecurityChecks.Location = "Terminal 2"
| Workflow | P | R | F1 | First returned SQL and candidate count |
|---|---|---|---|---|
| AutoCedar | 33.33 | 100.00 | 50.00 | SELECT HandlerName AS StaffName FROM BaggageClaims UNION SELECT OfficerName AS StaffName FROM SecurityChecks WHERE Location = 'Terminal 2', 4 candidates |
| Free interpretation | 33.33 | 100.00 | 50.00 | SELECT HandlerName AS StaffName FROM BaggageClaims UNION ALL SELECT OfficerName FROM SecurityChecks WHERE Location = 'Terminal 2',12 candidates |
| Structured interpretation | 25.00 | 100.00 | 40.00 | SELECT HandlerName AS StaffName FROM BaggageClaims UNION ALL SELECT OfficerName AS StaffName FROM SecurityChecks WHERE Location = 'Terminal 2', 5 candidates |
Recorded intermediate representations
AutoCedar. Atoms a1 = LOCATION = 'Terminal 2'. Boolean form a1
Free interpretation. Reading Stacked one-column list of names, all baggage claim handler rows and all security officer rows in Terminal 2, duplicates retained, no role column.
Structured interpretation. Reading Root reading, the phrase 'in terminal 2' restricts only the security staff list, the baggage claim staff list is all baggage claim handlers regardless of terminal. The requested output is one table combining the two lists, with the (excerpt)
Table S34. Interpretation before AutoCedar. Clear input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBROSIA 1107. Can you show both Boeing and Airbus aircraft models that have 180 seats. Show them in one table.
| Reference | SQL | SELECT Boeing.Model FROM Boeing WHERE Boeing.Number_of_seats = 180 UNION SELECT Airbus.Model FROM Airbus WHERE Airbus.Number_of_seats = 180 | ||
|---|---|---|---|---|
| Workflow | P | R | F1 | First returned SQL and candidate count |
| AutoCedar | 100.00 | 100.00 | 100.00 | SELECT Model FROM Airbus WHERE Number_of_seats = 180 UNION SELECT Model FROM Boeing WHERE Number_of_seats = 180, 2 candidates |
| Free interpretation | 25.00 | 100.00 | 40.00 | Same first query as AutoCedar, 9 candidates |
| Structured interpretation | 100.00 | 100.00 | 100.00 | Same first query as AutoCedar, 4 candidates |
Recorded intermediate representations
AutoCedar. Atoms a1 = NUMBER_OF_SEATS = 180. Boolean form a1
Free interpretation. Reading Combine Airbus and Boeing models with exactly 180 seats using UNION, returning only distinct model names.
Structured interpretation. Reading Interpret the request as asking for one combined result table of aircraft model names from the Airbus table and the Boeing table, restricted to entries whose seat count is 180, the manufacturer/source table is not part of the (excerpt)
Table S35. Interpretation before AutoCedar. Clear input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBROSIA 2584. For all craft services, list their menus
| Reference | SQL | select craft_services.description , menus.name from Craft_Services_Menus join Menus on Craft_Services_Menus.MenuID = Menus.MenuID join Craft_Services on Craft_Services_Menus.ServiceID = Craft_Services.ServiceID | ||
|---|---|---|---|---|
| Workflow | P | R | F1 | First returned SQL and candidate count |
| AutoCedar | 8.33 | 100.00 | 15.38 | SELECT Craft_Services.Description, Menus.Name FROM Craft_Services JOIN Craft_Services_Menus ON Craft_Services.ServiceID = Craft_Services_Menus.ServiceID JOIN Menus ON Craft_Services_Menus.MenuID = Menus.MenuID, 23 candidates |
| Free interpretation | 7.14 | 100.00 | 13.33 | SELECT cs.Description, m.Name FROM Craft_Services cs JOIN Craft_Services_Menus csm ON cs.ServiceID = csm.ServiceID JOIN Menus m ON csm.MenuID = m.MenuID, 21 candidates |
| Structured interpretation | 12.50 | 100.00 | 22.22 | SELECT m.Name FROM Craft_Services AS cs JOIN Craft_Services_Menus AS csm ON cs.ServiceID = csm.ServiceID JOIN Menus AS m ON csm.MenuID = m.MenuID, 13 candidates |
Recorded intermediate representations
AutoCedar. Atoms a1 = CRAFT_SERVICES . SERVICEID = CRAFT_SERVICES_MENUS . SERVICEID. Boolean form a1
Free interpretation. Reading For each craft service, list each linked menu by service Description and menu Name.
Structured interpretation. Reading General reading, For all craft services, retrieve the menu or menus associated with each service through the craft-service/menu mapping, the exact output grain, inclusion of services without menus, and column set are unspecified.
Table S36. Interpretation before AutoCedar. Clear input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBROSIA 2674. What techniques are common to all sound designers.
Reference SQL. SELECT Techniques.MethodName from Sound_Designer_Technique join Techniques on Sound_Designer_Technique.TechniqueID = Techniques.ID join Sound_Designers on Sound_Designer_Technique.SoundDesignerID = Sound_Designers.ID GROUP BY Sound_Designer_Technique.TechniqueID HAVING COUNT(DISTINCT Sound_Designer_Technique.SoundDesignerID) = (SELECT COUNT(*) FROM Sound_Designers)
| Workflow | P | R | F1 | First returned SQL and candidate count |
|---|---|---|---|---|
| AutoCedar | 100.00 | 100.00 | 100.00 | SELECT T.MethodName FROM Techniques T WHERE NOT EXISTS (SELECT 1 FROM Sound_Designers S WHERE NOT EXISTS (SELECT 1 FROM Sound_Designer_Technique SDT WHERE SDT.SoundDesignerID = S.ID AND SDT.TechniqueID = T.ID)),2 candidates |
| Free interpretation | 50.00 | 100.00 | 66.67 | SELECT DISTINCT t.MethodName FROM Techniques t WHERE NOT EXISTS (SELECT 1 FROM Sound_Designers sd WHERE NOT EXISTS (SELECT 1 FROM Sound_Designer_Technique sdt WHERE sdt.SoundDesignerID = sd.ID AND sdt.TechniqueID = t.ID)),6 candidates |
| Structured interpretation | 100.00 | 100.00 | 100.00 | SELECT DISTINCT T.MethodName FROM Techniques T WHERE NOT EXISTS (SELECT 1 FROM Sound_Designers S WHERE NOT EXISTS (SELECT 1 FROM Sound_Designer_Technique SDT WHERE SDT.SoundDesignerID = S.ID AND SDT.TechniqueID = T.ID)),1 candidate |
Recorded intermediate representations
AutoCedar. Atoms a1 = EXISTS ( SELECT 1 FROM SOUND_DESIGNERS S WHERE NOT EXISTS ( SELECT 1 FROM SOUND_DESIGNER_TECHNIQUE SDT WHERE SDT . SOUNDDESIGNERID = S . ID AND SDT . TECHNIQUEID = T . ID ) ). Boolean form NOT (a1)
Free interpretation. Reading Strict universal, a technique is common to all sound designers if it is linked to every row in Sound_Designers, output method names.
Structured interpretation. Reading Return the MethodName of each technique that is associated through Sound_Designer_Technique with every row in Sound_Designers, a technique qualifies only if no sound designer in the database lacks an association with it.
Table S37. Interpretation before AutoCedar. Clear input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBROSIA 2976. List drugs, their side effects and effectiveness in order of their popularity in prescriptions
| Reference | SQL | Select | Drug.Name, | Side_Effects.EffectText, | Side_Effects.Severity, | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| FROM | Side_Effects | INNER | JOIN | Drug | On | Side_Effects侧EffectId | ||||||
| = Drug.SideEffectId | JOIN | Prescription | ON | Prescription.drugID | = | Drug.drugID | INNER | JOIN | ||||
| Effectiveness | On | Effectiveness. | EffectivenessId | = | Drug.EffectivenessId | ORDER | BY | quantity | ||||
| Workflow | P | R | F1 | First returned | SQL | and | candidate | count | ||||
| AutoCedar | 0.00 | 0.00 | 0.00 | SELECT | d.name, | s.effectText, | e.percentage | FROM | ||||
| Drug | d | JOIN | Side_Effects | s | ON | d侧EffectId | ||||||
| = | s侧EffectId | JOIN | Effectiveness | e | ON | d. | ||||||
| effectivenessId | = | e.effectivenessId | LEFT | JOIN | ||||||||
| Prescription | p | ON | d.drugID | = | p.drugID | GROUP | BY | d. | ||||
| drugID, | d.name, | s.effectText, | e.percentage | ORDER | BY | |||||||
| COUNT | (p.prescriptionID) | DESC, | 6 | candidates | ||||||||
| Free interpretation | 0.00 | 0.00 | 0.00 | SELECT | d.name, | s.effectText, | e.percentage | FROM | Drug | |||
| d | JOIN | Prescription | p | ON | p.drugID | = | d.drugID | JOIN | ||||
| Side_Effects | s | ON | s侧EffectId | = | d侧EffectId | |||||||
| JOIN | Effectiveness | e | ON | e.effectivenessId | = | |||||||
| d.effectivenessId | GROUP | BY | d.drugID, | d.name, | ||||||||
| s.effectText, | e.percentage | ORDER | BY | COUNT | (p. | |||||||
| prescriptionID) | DESC, | 14 | candidates | |||||||||
| Structured interpretation | 0.00 | 0.00 | 0.00 | SELECT | d.name, | se.effectText, | e.percentage | FROM | ||||
| Drug | d | JOIN | Side_Effects | se | ON | d侧EffectId | ||||||
| = | se侧EffectId | JOIN | Effectiveness | e | ON | |||||||
| d.effectivenessId | = | e.effectivenessId | JOIN | |||||||||
| Prescription | p | ON | d.drugID | = | p.drugID | GROUP | BY | d. | ||||
| drugID, | d.name, | se.effectText, | e.percentage | ORDER | ||||||||
| BY | COUNT | (p.prescriptionID) | DESC, | 19 | candidates | |||||||
Recorded intermediate representations
AutoCedar. Atoms a1 = D . SIDEEFFECTID = S . SIDEEFFECTID. Boolean form a1
Free interpretation. Reading List each prescribed drug by name with its side-effect text and effectiveness percentage, ordered by the number of prescription records for that drug, most prescriptions first, drugs without a matching side-effect row are omitted.
Structured interpretation. Reading Popularity in prescriptions is the number of prescription records for each drug. List each drug with its side effect and effectiveness, ordered by that prescription count from most to least. Nested alternatives cover whether drugs (excerpt)
Table S38. Interpretation before AutoCedar. Clear input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBROSIA 3435. Show both the government agencies and regulatory boards and the related engineering projects.
Reference SQL select GovernmentAgency, RegulatoryBoard, EngineeringProject from Boards
| Workflow | P | R | F1 | First returned SQL and candidate count |
|---|---|---|---|---|
| AutoCedar | 100.00 | 100.00 | 100.00 | SELECT GovernmentAgency, RegulatoryBoard, EngineeringProject FROM Boards, 1 candidate |
| Free interpretation | 100.00 | 100.00 | 100.00 | Same first query as AutoCedar, 2 candidates |
| Structured interpretation | 50.00 | 100.00 | 66.67 | Same first query as AutoCedar, 2 candidates |
Recorded intermediate representations
AutoCedar. Reading Show the GovernmentAgency and RegulatoryBoard columns along with the related EngineeringProject column from the Boards table.
Free interpretation. Reading Show the government agency, regulatory board, and engineering project from each row of the Boards table, preserving all rows and duplicates.
Structured interpretation. Reading Return the government agency, regulatory board, and engineering project recorded together on each Boards row, so that each displayed project is the one related to that row's agency and board.
Table S39. Confirmation feedback. Ambiguous input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBROSIA 741. What jobs are available for economists and statisticians working with demographic data. Show them in one table.
Reference SQL 1. SELECT JobPostings.title FROM JobPostings WHERE (JobPostings.Roles = "Economist" OR JobPostings.Roles = "Statistician") AND JobPostings.Data = "Demographics"
Reference SQL 2. SELECT JobPostings.title FROM JobPostings WHERE JobPostings.Roles = "Economist" OR JobPostings.Roles = "Statistician" AND JobPostings.Data = "Demographics"
| Workflow | P | R | F1 | First returned SQL and candidate count |
|---|---|---|---|---|
| No extra model | 100.00 | 50.00 | 66.67 | SELECT Title FROM JobPostings WHERE (Roles = 'Economist' OR Roles = 'Statistician') AND Data = 'Demographics', 4 candidates |
| Kimi K3 | 100.00 | 50.00 | 66.67 | Same first query as No extra model, 4 candidates |
| Kimi K2.6 | 100.00 | 50.00 | 66.67 | Same first query as No extra model, 5 candidates |
Recorded intermediate representations
No extra model. Atoms a1 = DATA = 'Demographics', a2 = ROLES = 'Economist', a3 = ROLES = 'Statistician'. Boolean form ((a2 OR a3) AND a1)
Kimi K3. Atoms a1 = DATA = 'Demographics', a2 = ROLES = 'Economist', a3 = ROLES = 'Statistician'. Boolean form ((a2 OR a3) AND a1)
Kimi K2.6. Atoms a1 = DATA = 'Demographics', a2 = ROLES = 'Economist', a3 = ROLES = 'Statistician'. Boolean form ((a2 OR a3) AND a1)
Table S40. Confirmation feedback. Clear input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBROSIA 2002. For every district, list the description of school grades.
Reference SQL. select district.name , school_grades.description from District_School_Grades join School_Grades on District_School_Grades.school_grade_id = School_Grades.id join District on District_School_Grades.district_id = District.id
| Workflow | P | R | F1 | First returned SQL and candidate count |
|---|---|---|---|---|
| No extra model | 25.00 | 100.00 | 40.00 | SELECT District.name, School_Grades.description FROM District JOIN District_School_Grades ON District.id = District_School_Grades.district_id JOIN School_Grades ON District_School_Grades.school_grade_id = School_Grades.id, 7 candidates |
| Kimi K3 | 33.33 | 100.00 | 50.00 | Same first query as No extra model, 4 candidates |
| Kimi K2.6 | 33.33 | 100.00 | 50.00 | Same first query as No extra model, 4 candidates |
Recorded intermediate representations
No extra model. Atoms a1 = DISTRICT . ID = DISTRICT_SCHOOL_GRADES . DISTRICT_ID. Boolean form a1
Kimi K3. Atoms a1 = DISTRICT . ID = DISTRICT_SCHOOL_GRADES . DISTRICT_ID. Boolean form a1
Kimi K2.6. Atoms a1 = DISTRICT . ID = DISTRICT_SCHOOL_GRADES . DISTRICT_ID. Boolean form a1
Table S41. Confirmation feedback. Clear input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBROSIA 3480. What are the necessary documents required for this loan.
Reference SQL. Select Loans.LoanID, EligibilityAndDocuments.Documentation_Requirements From EligibilityAndDocuments JOIN Loans ON Loans.LoanID = EligibilityAndDocuments.LoanId
| Workflow | P | R | F1 | First returned SQL and candidate count |
|---|---|---|---|---|
| No extra model | 0.00 | 0.00 | 0.00 | SELECT Documentation_Requirements FROM EligibilityAndDocuments, 3 candidates |
| Kimi K3 | 0.00 | 0.00 | 0.00 | Same first query as No extra model, 1 candidate |
| Kimi K2.6 | 0.00 | 0.00 | 0.00 | SELECT Documentation_Requirements FROM EligibilityAndDocuments WHERE LoanID = (SELECT MAX(LoanID) FROM Loans), 2 candidates |
Recorded intermediate representations
No extra model. Atoms a1 = LOANID = ( SELECT MAX ( LOANID ) FROM LOANS ). Boolean form a1
Kimi K3. Atoms a1 = LOANID = ( SELECT MAX ( LOANID ) FROM LOANS ). Boolean form a1
Kimi K2.6. Atoms a1 = LOANID = ( SELECT MAX ( LOANID ) FROM LOANS ). Boolean form a1
Table S42. Confirmation feedback. Clear input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBROSIA 2950. Who is the executive chef at the restaurant serving grilled steak with garlic butter.
Reference SQL. SELECT r.executive_chef FROM Restaurants r, MenuItems m WHERE r.restaurant_id = m.restaurant_id AND m.item_name = 'Steak'
| Workflow | P | R | F1 | First returned SQL and candidate count |
|---|---|---|---|---|
| No extra model | 100.00 | 100.00 | 100.00 | SELECT DISTINCT Restaurants.executive_chef FROM Restaurants JOIN MenuItems ON Restaurants.restaurant_id = MenuItems.restaurant_id WHERE MenuItems.description = 'Grilled steak with garlic butter', 4 candidates |
| Kimi K3 | 100.00 | 100.00 | 100.00 | Same first query as No extra model, 5 candidates |
| Kimi K2.6 | 100.00 | 100.00 | 100.00 | Same first query as No extra model, 4 candidates |
Recorded intermediate representations
No extra model. Atoms a1 = RESTAURANTS . RESTAURANT_ID = MENUITEMS . RESTAURANT_ID. Boolean form a1
Kimi K3. Atoms a1 = RESTAURANTS . RESTAURANT_ID = MENUITEMS . RESTAURANT_ID. Boolean form a1
Kimi K2.6. Atoms a1 = RESTAURANTS . RESTAURANT_ID = MENUITEMS . RESTAURANT_ID. Boolean form a1
Table S43. Confirmation feedback. Clear input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBROSIA 817. Can you show female research scientists and female laboratory technicians. Show them in one table.
| Reference | SQL | SELECT | Research_Scientists.name | FROM | Research_Scientists | WHERE | Research_Scientists.Gender = "Female" | UNION | SELECT | Laboratory_Teachnicians.name | FROM | Laboratory_Teachnicians | WHERE | Laboratory_Teachnicians.Gender = "Female" |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Workflow | P | R | F1 | First returned SQL and candidate count | ||||||||||
| No extra model | 33.33 | 100.00 | 50.00 | SELECT name FROM Research_Scientists WHERE Gender = 'Female' UNION ALL SELECT name FROM Laboratory_Teachnicians WHERE Gender = 'Female', 6 candidates | ||||||||||
| Kimi K3 | 33.33 | 100.00 | 50.00 | Same first query as No extra model, 6 candidates | ||||||||||
| Kimi K2.6 | 25.00 | 100.00 | 40.00 | SELECT * FROM Research_Scientists WHERE Gender = 'Female' UNION ALL SELECT * FROM Laboratory_Teachnicians WHERE Gender = 'Female', 5 candidates | ||||||||||
Recorded intermediate representations
No extra model. Atoms a1 = GENDER = 'Female'. Boolean form a1
Kimi K3. Atoms a1 = GENDER = 'Female'. Boolean form a1
Kimi K2.6. Atoms a1 = GENDER = 'Female'. Boolean form a1
Table S44. Confirmation feedback. Ambiguous input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBIQT 001720. Count the number of documents that use the PPT template type.
Reference SQL 1. select count(*) from files as t1 join templates as t2 on t1.template_id = t2.template_id where t2.template_type_code = 'PPT'
Reference SQL 2. select count(*) from records as t1 join templates as t2 on t1.template_id = t2.template_id where t2.template_type_code = 'PPT'
| Workflow | P | R | F1 | First returned SQL and candidate count |
|---|---|---|---|---|
| No extra model | 28.57 | 100.00 | 44.44 | SELECT COUNT(DISTINCT t1.document_id) FROM Records AS t1 JOIN templates AS t2 ON t1.template_id = t2.template_id WHERE t2.template_type_code = 'PPT', 8 candidates |
| Kimi K3 | 33.33 | 100.00 | 50.00 | Same first query as No extra model, 6 candidates |
| Kimi K2.6 | 40.00 | 100.00 | 57.14 | Same first query as No extra model, 5 candidates |
Recorded intermediate representations
No extra model. Atoms a1 = T1 . TEMPLATE_ID = T2 . TEMPLATE_ID. Boolean form a1
Kimi K3. Atoms a1 = T1 . TEMPLATE_ID = T2 . TEMPLATE_ID. Boolean form a1
Kimi K2.6. Atoms a1 = T1 . TEMPLATE_ID = T2 . TEMPLATE_ID. Boolean form a1
Table S45. Confirmation feedback. Ambiguous input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBIQT 000309. List document IDs, document names, and document descriptions for all documents.
Reference SQL 1. select document_id, file_name, document_description from documents
Reference SQL 2. select document_id, record_name, document_description from documents
| Workflow | P | R | F1 | First returned SQL and candidate count |
|---|---|---|---|---|
| No extra model | 66.67 | 100.00 | 80.00 | SELECT document_id, file_name, document_description FROM documents, 5 candidates |
| Kimi K3 | 66.67 | 100.00 | 80.00 | Same first query as No extra model, 5 candidates |
| Kimi K2.6 | 66.67 | 100.00 | 80.00 | Same first query as No extra model, 5 candidates |
Recorded intermediate representations
No extra model. Initial SQL SELECT document_id, file_name, document_description FROM documents,
Kimi K3. Initial SQL SELECT document_id, file_name, document_description FROM documents,
Kimi K2.6. Initial SQL SELECT document_id, file_name, document_description FROM documents,
Table S46. Confirmation feedback. Ambiguous input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBIQT 001542. What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars.
Reference SQL 1. select t1.id, t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker group by t1.id having count() >= 2 intersect select t1.id, t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker join car_models as t3 on t2.model = t3.model group by t1.id having count() > 3
Reference SQL 2. select t1.id, t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker group by t1.id having count() >= 2 intersect select t1.id, t1.maker from car_makers as t1 join model_list as t2 on t1.id = t2.maker join vehicle_names as t3 on t2.model = t3.model group by t1.id having count() > 3
| Workflow | P | R | F1 | First returned SQL and candidate count |
|---|---|---|---|---|
| No extra model | 0.00 | 0.00 | 0.00 | SELECT t1.id, t1.maker FROM car_makers AS t1 JOIN model_list AS t2 ON t1.id = t2.maker JOIN car_models AS t3 ON t2.model = t3.model JOIN cars_data AS t4 ON t3.makeid = t4.id GROUP BY t1.id, t1.maker HAVING COUNT(DISTINCT t2.modelid) >= 2 AND COUNT(DISTINCT t4.id) > 3, 5 candidates |
| Kimi K3 | 0.00 | 0.00 | 0.00 | SELECT t1.id, t1.maker FROM car_makers AS t1 JOIN model_list AS t2 ON t1.id = t2.maker JOIN vehicle_names AS t3 ON t2.model = t3.model JOIN cars_data AS t4 ON t3.makeid = t4.id GROUP BY t1.id, t1.maker HAVING COUNT(DISTINCT t2.model) >= 2 AND COUNT(DISTINCT t4.id) > 3, 4 candidates |
| Kimi K2.6 | 0.00 | 0.00 | 0.00 | SELECT t1.id, t1.maker FROM car_makers AS t1 JOIN model_list AS t2 ON t1.id = t2.maker JOIN vehicle_names AS t3 ON t1.id = t3.makeid GROUP BY t1.id, t1.maker HAVING COUNT(DISTINCT t2.model) >= 2 AND COUNT(DISTINCT t3.model) > 3, 3 candidates |
Recorded intermediate representations
No extra model. Atoms a1 = T1 . ID = T2 . MAKER. Boolean form a1
Kimi K3. Atoms a1 = T1 . ID = T2 . MAKER. Boolean form a1
Kimi K2.6. Atoms a1 = T1 . ID = T2 . MAKER. Boolean form a1
Table S47. Confirmation feedback. Ambiguous input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBIQT 002504. Find the id, last name and cell phone of the professionals who live in the state of Indiana or have performed more than two treatments.
Reference SQL 1. select professional_id, last_name, cell_number from handlers where state = 'Indiana' union select t1.professional_id, t1.last_name, t1.cell_number from handlers as t1 join treatments as t2 on t1.professional_id = t2.professional_id group by t1.professional_id having count(*) > 2
Reference SQL 2. select professional_id, last_name, cell_number from caregivers where state = 'Indiana' union select t1.professional_id, t1.last_name, t1.cell_number from caregivers as t1 join treatments as t2 on t1.professional_id = t2.professional_id group by t1.professional_id having count(*) > 2
| Workflow | P | R | F1 | First returned SQL and candidate count |
|---|---|---|---|---|
| No extra model | 40.00 | 100.00 | 57.14 | SELECT professional_id, last_name, cell_number FROM Caregivers WHERE state = 'Indiana' OR professional_id IN (SELECT professional_id FROM treatments GROUP BY professional_id HAVING COUNT(*) > 2), 5 candidates |
| Kimi K3 | 50.00 | 100.00 | 66.67 | Same first query as No extra model, 4 candidates |
| Kimi K2.6 | 0.00 | 0.00 | 0.00 | SELECT t1.professional_id, t1.last_name, t1.cell_number FROM (SELECT professional_id, last_name, cell_number, state FROM Caregivers UNION SELECT professional_id, last_name, cell_number, state FROM Handlers) AS t1 WHERE t1.state = 'Indiana' OR t1.professional_id IN (SELECT t2.professional_id FROM treatments AS t2 GROUP BY t2.professional_id HAVING COUNT(*) > 2), 4 candidates |
Recorded intermediate representations
No extra model. Atoms a1 = PROFESSIONAL_ID IN ( SELECT PROFESSIONAL_ID FROM TREATMENTS GROUP BY PROFESSIONAL_ID HAVING COUNT ( * ) > 2 ), a2 = STATE = 'Indiana'. Boolean form (a2 OR a1)
Kimi K3. Atoms a1 = PROFESSIONAL_ID IN ( SELECT PROFESSIONAL_ID FROM TREATMENTS GROUP BY PROFESSIONAL_ID HAVING COUNT ( * ) > 2 ), a2 = STATE = 'Indiana'. Boolean form (a2 OR a1)
Kimi K2.6. Atoms a1 = T1 . PROFESSIONAL_ID IN ( SELECT T2 . PROFESSIONAL_ID FROM TREATMENTS AS T2 GROUP BY T2 . PROFESSIONAL_ID HAVING COUNT ( * ) > 2 ), a2 = T1 . STATE = 'Indiana'. Boolean form (a2 OR a1)
Table S48. Confirmation feedback. Ambiguous input. Precision, recall, and F1 are percentages computed from the complete returned set against the benchmark references.
AMBIQT 002572. Which dogs are of the rarest breed. Show their names and treatment dates.
Reference SQL 1. select t1.name, t2.date_of_treatment from canines as t1 join treatments as t2 on t1.dog_id = t2.dog_id where t1.breed_code = (select breed_code from canines group by breed_code order by count(*) asc limit 1)
Reference SQL 2. select t1.name, t2.date_of_treatment from pooches as t1 join treatments as t2 on t1.dog_id = t2.dog_id where t1.breed_code = (select breed_code from pooches group by breed_code order by count(*) asc limit 1)
| Workflow | P | R | F1 | First returned SQL and candidate count |
|---|---|---|---|---|
| No extra model | 0.00 | 0.00 | 0.00 | SELECT t1.name, t2.date_of_treatment FROM Pooches AS t1 JOIN Treatments AS t2 ON t1.dog_id = t2.dog_id WHERE t1.breed_code IN (SELECT breed_code FROM Pooches GROUP BY breed_code HAVING COUNT(*) = (SELECT MIN(cnt) FROM (SELECT COUNT(*) AS cnt FROM Pooches GROUP BY breed_code))), 5 candidates |
| Kimi K3 | 0.00 | 0.00 | 0.00 | Same first query as No extra model, 5 candidates |
| Kimi K2.6 | 0.00 | 0.00 | 0.00 | Same first query as No extra model, 5 candidates |
Recorded intermediate representations
No extra model. Atoms a1 = T1 . DOG_ID = T2 . DOG_ID. Boolean form a1
Kimi K3. Atoms a1 = T1 . DOG_ID = T2 . DOG_ID. Boolean form a1
Kimi K2.6. Atoms a1 = T1 . DOG_ID = T2 . DOG_ID. Boolean form a1