Papers › The Nuts and Bolts of Natural Language to SQL Translation: A Systematic Analysis of...

The Nuts and Bolts of Natural Language to SQL Translation: A Systematic Analysis of Model Pipeline Optimisation Approaches and their Interactions

12 Jul 2026arXiv:2607.10911added by Syntology

Filip Klubicka, Vasudevan Nedumpozhimana, Sneha Rautmare, Bora Caglayan, Mingxue Wang, John D. Kelleher

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

In the age of large language models, Natural Language to SQL (NL2SQL) translation remains an open problem with many useful applications. We explore interactions between several NL2SQL pipeline extensions to inspire development of more lightweight models. Specifically, we integrate the NatSQL intermediate representation, include a preprocessing step and a fine-tuning step based on synthetic data, and develop a novel reranker model to improve SQL selection in the final beam. We perform an ablation study supplemented by a Shapley analysis of these different components integrated with two backbone architectures, SmBoP and RASAT. We find that simply combining all of them does not lead to best results, but that their impact depends on their interactions with the baseline system, as well as each other.

PaperPDFCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 20 code samples harvested from 1 repository linked to this paper: 14 ran (of which 0 constructed an object rather than computing a result; 6 with no instrument failure: 2 honoured, 3 violated, 1 with no contract checked; 8 where Syntology's instrument failed) · 6 unverified. Where Syntology's instrument failed: 6 where our contract draft was wrong; 2 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: found in paper text by Syntology: 20 samples from 1 repository, 14 ran (6 with no instrument failure; 8 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

No sample is linked to this paper from 1 of its repositories that Syntology harvested for other papers:

Levels written between 2026-09-22 and 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

taoyds/spider found in paper text by SyntologySyntology: no sample linked to this paper (harvested for another paper). Syntology's graph links these samples to Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic... (arXiv:1809.08887; that paper's own run record: 7 ran (of which 0 constructed an object rather than computing a result; 5 with no instrument failure: 2 honoured, 3 violated, 0 with no contract checked; 2 where Syntology's instrument failed) · 1 unverified); nothing checks that they implement this paper's method. report
ygan/NatSQL found in paper text by SyntologySyntology: 20 samples, 14 ran (8 instrument-failed) · 6 unverified report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

A paper named beside a repository with no sample linked to this paper is shown with that paper's own run record, not this paper's: “ran” means executed on a synthesized input, not that the code is correct, and “where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Papers are listed in arXiv-id order, at most three per repository.

Code Syntology ran Syntology

20 samples harvested: 14 ran (of which 0 constructed an object rather than computing a result; 6 with no instrument failure: 2 honoured, 3 violated, 1 with no contract checked; 8 where Syntology's instrument failed) · 6 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

2ran · honoured contract
3ran · violated contract
6ran · our draft was wrong
2ran; the contract check could not run
1ran
6unverified

Licence: 20 of the 20 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from ygan/NatSQL. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

ygan/NatSQL found in paper text by Syntology 20 samples, 14 ran (8 instrument-failed) · 6 unverified
before_or_after pattern_generation.py ran; the contract check could not run (RAISES) no licence file found · pointer only · 4afe995f7b1ddf57 · report fixture: signature tps:list/1/int, idx:int/0/int, target:int/0/int · returned bool · level recorded 2026-09-24
col_match_not_in_table natsql2sql/preprocess/col_match.py ran; the contract check could not run (RAISES) no licence file found · pointer only · 96702b7e3c7a6a21 · report fixture: signature match:list/1/list, table_idxs:list/1/str, schema:MockSchema/0/? · returned bool · level recorded 2026-09-24
col_unit_back natsql2sql/utils.py ran · our draft was wrong no licence file found · pointer only · 870f513d8cee4cab · report fixture: signature col_unit:list/1/int, tables_with_alias:NoneType/0/? · returned str · level recorded 2026-09-24
get_next_table table_transform.py ran no licence file found · pointer only · 9e81d6c0dbfbb852 · report fixture: signature table_idx:int/0/int, table_range:list/1/tuple, table_fk:list/1/list, table_col:list/1/list · returned tuple · level recorded 2026-09-24
get_schema in 16 papers natsql2sql/process_sql.py ran · our draft was wrong no licence file found · pointer only · 58c07f808a94f086 · report fixture: signature db:str/0/str, table_json:dict/0/? · returned dict · level recorded 2026-09-24
get_schema_from_json in 14 papers natsql2sql/process_sql.py ran · our draft was wrong no licence file found · pointer only · c4dcaf29b663a364 · report fixture: signature fpath:str/0/str · returned dict · level recorded 2026-09-24
jjs_not_order pattern_generation.py ran · violated contract fingerprinted no licence file found · pointer only · a2266df86cae8784 · report fixture: signature real_tp_str:str/0/str, tp_str2:str/0/str · returned bool · level recorded 2026-09-24
natsql_idx_to_table2_idx natsql2sql/natsql2sql.py ran · honoured contract no licence file found · pointer only · b0825d653a089615 · report fixture: signature col_id:int/0/int, table_json:dict/0/? · returned int · level recorded 2026-09-22
not_in_all_q pattern_generation.py ran · violated contract no licence file found · pointer only · 4a745be5f30afaae · report fixture: signature question:list/1/str, str_:str/0/str · returned bool · level recorded 2026-09-24
of_for_structure_in_col natsql2sql/preprocess/col_match.py ran · violated contract no licence file found · pointer only · ef3dbdae33ca2c48 · report fixture: signature col_availble_idx:list/1/list, q_toks:list/1/Token · returned bool · level recorded 2026-09-24
return_result natsql2sql/preprocess/db_match.py ran · our draft was wrong no licence file found · pointer only · 0e25e2e0733db4c8 · report fixture: signature results:list/1/tuple · returned list · level recorded 2026-09-24
reversed_link_back_col table_transform.py ran · honoured contract no licence file found · pointer only · 48b57e02e3f2c83d · report fixture: signature col_id:int/0/int, table_json:dict/0/? · returned int · level recorded 2026-09-22
special_replace setence_split.py ran · our draft was wrong fingerprinted no licence file found · pointer only · 8833c58230d6386e · report fixture: signature str_:str/0/str · returned str · level recorded 2026-09-24
val_unit_back natsql2sql/utils.py ran · our draft was wrong no licence file found · pointer only · 815b613db137fa80 · report fixture: signature val_unit:tuple/1/int, tables_with_alias:NoneType/0/? · returned str · level recorded 2026-09-24
check_relation natsql2sql/natsql2sql.py unverified no licence file found · pointer only · 14ad4335d565ea1d · report
col_match_main natsql2sql/preprocess/col_match.py unverified no licence file found · pointer only · ec17bb9f6919d410 · report
lemmatization natsql2sql/preprocess/TokenString.py unverified no licence file found · pointer only · afc0b5023361df91 · report
parse_col natsql2sql/natsql_parser.py unverified no licence file found · pointer only · 972a58657cfed15c · report
select_unit_back natsql2sql/utils.py unverified no licence file found · pointer only · bfc0a46be80f851a · report
table_transform table_transform.py unverified no licence file found · pointer only · 7a8b99916d022ef1 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2607.10911, was issued in July 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections