Abstract
Text-to-SQL research has concentrated on English, while prior work on Arabic, Japanese, and Vietnamese has largely relied on grammar-constrained parsers or zero-shot prompting, with recent work beginning to explore trained LLM-based alternatives. We investigate whether a unified fine-tuned open-source pipeline can serve typologically distant low-resource languages and quantify the same-pipeline English-to-target gap on parallel Spider instances. We fine-tune Qwen2.5-Coder-7B-Instruct with QLoRA using shared schema grounding, value grounding, an English translation hint, and execution-based self-consistency voting over eight candidates. Architecture, constants, and inference are fixed across languages, while each language uses its own training data and adapter. On Ar-Spider, MultiSpider-JA, and MultiSpider-VI, the pipeline reaches 75–80% execution accuracy (EX), with raw exact set match (ESM) within 0.7 points of the strongest prior Arabic parser and above the strongest multilingual MultiSpider baseline for Japanese (+2.5) and Vietnamese (+3.5). An English same-pipeline run (85.3% EX) yields gaps of −10.1, −10.5, and −5.4 percentage points for Arabic, Japanese, and Vietnamese, respectively. Removing the complete value-grounding group causes the largest degradation. The EX–ESM gap persists without voting and repair, indicating differences in generated SQL rather than decoder effects; we therefore recommend reporting both metrics.
1. Introduction
Text-to-SQL semantic parsing involves converting natural-language questions into executable SQL queries, which allows non-expert users to access information stored in relational databases [1]. This capability holds significant practical value across various domains, including business intelligence, healthcare, and education. In recent years, the field has made remarkable advancements.
The majority of research on text-to-SQL has focused on English [2,3,4,5], leaving limited resources for other languages. This oversight is concerning, as non-English speakers make up the vast majority of the global population. Arabic alone is spoken by over 400 million people, Japanese by approximately 125 million, and Vietnamese by roughly 85 million, yet in the context of text-to-SQL, all three are considered “low-resource.” Each has only one or two benchmark datasets translated from Spider and lacks dedicated text-to-SQL training corpora or augmented datasets. In contrast, English benefits from a rich ecosystem of resources, including Spider [1], Spider 2.0 [6], BIRD [7], WikiSQL [8], and various synthetically augmented datasets such as SynSQL-2.5M [9]. This imbalance means that progress on English benchmarks, where state-of-the-art systems now exceed 90% execution accuracy [10], does not automatically carry over to other languages. As a result, hundreds of millions of potential users still lack reliable natural-language database interfaces.
Cross-lingual text-to-SQL for these languages presents unique challenges that go beyond simple translation. In the Spider-derived benchmarks used in our main experiments, executable SQL and original database identifiers remain in English, creating a cross-lingual linking problem. This cross-lingual schema linking must bridge not only vocabulary differences but also fundamental divergences in morphology and orthography. Arabic is written from right to left and has complex word forms. A single word can show subject, tense, and object, and short vowels are usually left out in writing. This creates ambiguity and makes it harder to match words with English schema identifiers. Japanese uses Kanji characters along with two syllabic scripts, Hiragana and Katakana. Words are not separated by spaces, so it is difficult to split text into words and match them to schema elements. Vietnamese uses the Latin alphabet but relies on many tonal marks. These diacritics must be kept accurate during schema linking, since mistakes can change the meaning of a word. Because of these differences, methods that work for one language family may not work for another. This highlights the need to test approaches across different writing systems.
Recent efforts have introduced benchmarks for non-English text-to-SQL, but a significant resource gap persists. The Ar-Spider benchmark, developed by the authors of [11], is the first Arabic cross-domain benchmark, created through manual translation of the Spider benchmark by qualified translators and verified by native-speaking graduate students. It establishes baseline performance using GNN-based parsers, achieving an Exact Set Match (ESM) of 66.63% with LGESQL, XLM-R, and contextual similarity relationships. The MultiSpider benchmark, created by the authors of [12], expands upon Spider by including support for seven languages, such as Japanese and Vietnamese, and reports a 6.1% absolute drop in accuracy for non-English inputs, a gap that widens further for languages with non-Latin scripts. More recently, the authors of [13] released MultiSpider 2.0, extending Spider 2.0 to eight languages at enterprise-level complexity; in the same work, evaluation on MultiSpider 1.0 shows that even advanced models such as OpenAI o1 reach only 43.4% exact match for Japanese while exceeding 90% for English, underscoring how far the multilingual gap extends.
Despite the availability of these benchmarks, most evaluations have relied on GNN-based parsers with grammar-constrained decoding or on zero-shot prompting of proprietary large language models. Grammar-constrained parsers guarantee syntactically valid SQL, but many published benchmark configurations are evaluated without literal-value prediction and are tightly coupled to the annotation conventions of their training data. Zero-shot prompting of proprietary models avoids fine-tuning costs but provides no mechanism for learning language-specific patterns from training examples. Trained open-source LLMs have recently begun to appear in this setting, for single languages such as Turkish [14] and, through reinforcement learning on MultiSpider, for a small model under its own evaluation protocol [15]. What is still missing is a controlled study in which one fine-tuned open-source pipeline, with a fixed architecture, fixed constants, and a single seeded evaluation harness with paired significance tests, is evaluated across typologically diverse low-resource text-to-SQL languages and against an English same-pipeline reference; this work aims to fill that gap. In this paper, we present a unified pipeline based on large language models (LLMs) that has been evaluated on three low-resource text-to-SQL benchmarks. These benchmarks span three different language families and writing systems: Arabic, Japanese, and Vietnamese. Our contributions are the following findings; the pipeline itself (Section 3) is the instrument that makes them measurable.
- A same-pipeline English-to-target performance gap on parallel Spider instances. With the architecture, prompt template, constants, and inference procedure held fixed, the system reaches 75.2%, 74.8%, and 79.9% EX on Ar-Spider, MultiSpider-JA, and MultiSpider-VI. Because the language versions share the same databases, gold SQL, and query structures, the English same-pipeline reference (85.3% EX) provides a matched benchmark comparison: the gaps are −10.1 pp for Arabic, −10.5 pp for Japanese, and −5.4 pp for Vietnamese. These are same-pipeline performance gaps rather than isolated causal effects of question language, because the language-specific training data, adapter, native-language descriptions, and translation-hint content also differ.
- The EX–ESM gap is a property of the generated SQL, not of the decoder. The 8.6–10.7 pp gap persists essentially unchanged (8.4–10.8 pp) under an exact greedy control with voting and repair disabled. Four guarded, gold-blind rewrites explain about one point of it (every flipped verdict is execution-correct), and set-operation (IUEN) generation emerges as the shared capability gap across the three languages: the gap is partly stylistic and partly a genuine capability gap, and we recommend reporting single-instance EX alongside ESM. On raw Spider ESM, the system surpasses the strongest multilingual MultiSpider baseline for Japanese (+2.5 pp) and Vietnamese (+3.5 pp) and lies 0.7 pp below the strongest prior Arabic parser.
- Value grounding dominates, and grouped ablations reveal component compensation. Removing all value-grounding components costs 4.8–7.3 pp EX, substantially more than any individually tested value-grounding component. Removing all schema-grounding components costs up to 2.5 pp EX, with the largest effect in Vietnamese. A three-layer sensitivity study of the column-linking parameters provides complementary evidence that the linker’s configuration matters most when voting and repair are absent.
- One architecture across four languages and two base models. The identical pipeline and constants serve Arabic, Japanese, Vietnamese, and English, and transfer unchanged to Llama-3.1-8B-Instruct (74.6% EX on Arabic, within 0.6 pp of Qwen2.5-Coder), evidence that the findings characterize the approach rather than one model.
Each configuration in the paper, including the full system, all single-component and grouped ablations, the controls, and the minimal baseline, is measured using a single seeded evaluation harness. We use the original Spider ESM evaluator, bootstrap confidence intervals, and paired McNemar tests. The implementation, trained adapters, and a 149-error translation audit of Ar-Spider are provided as artifacts, not as contributions.
2. Related Work
2.1. Text-to-SQL Benchmarks and Evaluation
The Spider benchmark [1] established the standard for text-to-SQL cross-domain evaluation, comprising 10,181 questions and 5693 unique complex SQL queries in 200 databases in 138 domains. Spider introduced the cross-domain evaluation paradigm where training and test databases are disjoint, testing generalization to unseen schemas. Spider originally used Exact Set Match (ESM) without values, which decomposes predicted SQL into structural components (SELECT, WHERE, GROUP BY, ORDER BY, HAVING) and performs set-wise comparison. Importantly, ESM was designed for models that do not predict values, as the original GNN-based baselines output SQL skeletons with placeholder values.
Spider 2.0 [6] dramatically increased difficulty with 632 enterprise-level tasks involving complex schemas exceeding 3000 columns, multiple SQL dialects, and multi-step workflows. Even advanced LLMs like o1-preview solve only 21.3% of Spider 2.0 tasks, compared to over 90% on Spider 1.0, highlighting the remaining challenges. The BIRD benchmark [7] introduced real-world databases with dirty data and external knowledge requirements, providing a complementary evaluation to Spider. WikiSQL [8] focused on simpler single-table queries and is now considered largely solved. Test-Suite Accuracy [16] was adopted as the official Spider metric in 2020, executing queries against multiple database instances to reduce false positives, while ESM remains the original/reference Spider metric. A recent comprehensive survey [17] provides an overview of LLM-enhanced text-to-SQL methods and evaluation practices.
While there have been many proposals that were evaluated on the English Spider [2,3,4,5,9,10,18,19,20,21,22,23,24,25], very few were dedicated to Arabic, Japanese, and Vietnamese.
2.2. Grammar-Constrained Text-to-SQL Parsers
Traditional text-to-SQL systems employ encoder-decoder architectures with grammar-constrained decoding. Building on this, RAT-SQL [18] introduced relation-aware schema encoding using graph neural networks. LGESQL [19] further enhanced this approach with line graph transformations to capture edge-level interactions between schema elements. Similarly, S2SQL [20] injected syntactic information into the schema interaction graph. Collectively, these models generate SQL through abstract syntax tree (AST) construction, selecting schema elements by pointing to column and table indices. This method guarantees syntactic validity and alignment with evaluation metrics but limits generalization.
ShadowGNN [26] tackled schema linking using abstract schema representations. Similarly, BRIDGE [27] improved contextual understanding by adding database content to the encoding process. Building on these methods, SmBoP [28] used bottom-up semi-autoregressive parsing. RESDSQL [5] separated schema linking from SQL generation and showed strong results with smaller models.
2.3. LLM-Based Text-to-SQL
Large language models have changed text-to-SQL by enabling new prompt engineering and fine-tuning methods. DIN-SQL [3] reached 85.3% on the Spider test set using decomposed prompting with GPT-4. DAIL-SQL [2] explored different prompt engineering strategies and achieved 86.6% with self-consistency voting. CHESS [4] proposed a three-step process: column filtering, table selection, and SQL generation. MiniSeek [10], a company-reported leaderboard entry rather than a peer-reviewed system description, was the first to score over 90% on the Spider test set, showing the high potential of LLM-based methods; all the above were evaluated in English.
CodeS [21] showed strong results by fine-tuning open-source code models on text-to-SQL data. DTS-SQL [22] used schema linking together with supervised fine-tuning. OmniSQL [9] created an automatic data synthesis framework that produced SynSQL-2.5M, the first million-scale text-to-SQL training dataset, and reached state-of-the-art results on several benchmarks with models ranging from 7B to 32B parameters. ExCoT-DPO [23] improved reasoning using execution feedback and direct preference optimization. For smaller open-source models, Databricks reported—in a company engineering blog post rather than a peer-reviewed venue—that fine-tuning Llama-3 8B Instruct achieves 78.9% on the Spider test split [24]; we treat this company-reported figure as an important open-source reference point rather than a directly comparable baseline.
Recently, researchers have used reinforcement learning for text-to-SQL tasks. Arctic-Text2SQL-R1 [25] combined GRPO with OmniSQL initialization and set a new state of the art on the BIRD benchmark. This shows that RL-based training can further improve fine-tuned text-to-SQL models.
Self-consistency [29] and execution-based verification [3] have both helped make text-to-SQL systems more reliable. MAC-SQL [30] looked at how multiple agents can work together for text-to-SQL tasks. PET-SQL [31] pointed out that LLMs are better at writing SQL than at schema linking, which led to the development of specialized schema linking components.
2.4. Multilingual and Low-Resource Text-to-SQL
Interest in cross-lingual text-to-SQL has been increasing, as many languages spoken by hundreds of millions of people still have limited resources for text-to-SQL. For each of these languages, only one or two translated benchmark datasets are available. We review existing work by language family and benchmark.
Chinese. CSpider [32] was one of the first cross-lingual versions of Spider, translating questions into Chinese. DuSQL [33] introduced a larger Chinese text-to-SQL dataset with practical Chinese database designs.
Vietnamese. The authors of [34] conducted the first pilot study on text-to-SQL semantic parsing for Vietnamese, translating both questions and schema elements. They showed the difficulties with Vietnamese tokenization and diacritics when linking schema.
Arabic. Ar-Spider [11] was the first cross-domain Arabic text-to-SQL dataset, created by qualified translators and verified by graduate students. The authors found two main challenges: mapping Arabic questions to English schema elements, and handling Arabic-specific language patterns in SQL generation. Their best result, 66.63% ESM, was achieved using LGESQL, XLM-R, and CSR. The same authors later introduced Ar-SParC [35], a context-dependent Arabic text-to-SQL dataset, and tested GPT-3.5-turbo and GPT-4-turbo with different prompt engineering methods. AraSpider [36] offered a separate machine-translated Arabic Spider dataset, where ChatGPT and SQLCoder were evaluated using back-translation. They found that translating through English greatly improves Arabic text-to-SQL performance.
Other languages. PAUQ [37] introduced a Russian text-to-SQL dataset. TURSpider [14] developed a Turkish benchmark and fine-tuned language models for Turkish, demonstrating that these models can outperform GPT-based models in execution accuracy. mRAT-SQL [38] modified the RAT-SQL architecture for Portuguese and found that training with both English and Portuguese data leads to better results than using only one language.
Multilingual benchmarks. MultiSpider [12] is the most comprehensive multilingual text-to-SQL Spider benchmark that covers seven languages: English, German, French, Spanish, Japanese, Chinese, and Vietnamese. The authors of [12] introduced the SAVe (Schema Augmentation with Verification) framework, which adds target-language translations to English schema items and checks schema linking using back-translation. This approach greatly improved performance and helped reduce the cross-lingual gap. Under their multilingual training setting, RAT-SQL + XLM-R with SAVe achieved ESM scores of 61.6% for Japanese and 67.8% for Vietnamese. More recently, the authors of [13] released MultiSpider 2.0, which expands Spider 2.0 to eight languages and increases complexity to an enterprise level. On MultiSpider 1.0, their COLA framework with OpenAI-o1 reached over 90% EX for English but only 43.4% EM for Japanese, showing that a significant multilingual gap remains even with advanced models. Another study [15] used a contrastive-reward method, applying GRPO with multilingual semantic rewards on MultiSpider. This showed that small models like Llama-3B can improve through reinforcement learning with cross-lingual signals.
2.5. Multilingual Embeddings and Cross-Lingual Transfer
Cross-lingual schema linking is a fundamental challenge in non-English text-to-SQL tasks. mBERT [39] and XLM-RoBERTa [40] offer multilingual representations and are commonly used as encoders in these parsers. BGE-M3 [41] introduced M3-Embedding, which supports over 100 languages and enables dense, sparse, and multi-vector retrieval in one model. We use BGE-M3 for bilingual column linking, taking advantage of its strong cross-lingual alignment to match question fragments in the target language with English schema elements, without needing explicit translation.
2.6. Parameter-Efficient Fine-Tuning
QLoRA [42] enables efficient fine-tuning of large models through 4-bit quantization and low-rank adapters. This allows models with over 7 billion parameters to be fine-tuned on consumer GPUs. LoRA [43] first introduced the low-rank adaptation method. These techniques have been used for text-to-SQL fine-tuning [9,21,22], showing that parameter-efficient methods can perform as well as full fine-tuning. The Qwen2.5-Coder model family [44], based on the Qwen2.5 architecture [45] and trained on more than 5.5 trillion code tokens, is a strong choice for code generation tasks like text-to-SQL. It also supports multiple programming and natural languages.
3. Methodology
Our system has two main stages. During fine-tuning, we build the prompt using M-Schema representation, value injection, sample rows, translation hints, and column linking, and train a QLoRA adapter per language. At inference, the same prompt structure is applied to each development question; the fine-tuned adapter generates eight SQL candidates; each candidate first receives the three per-candidate repairs of the execution-guided repair stage (Section 3.8: identifier fixing, hallucinated-filter removal, and value-literal grounding); the repaired candidates are then aggregated by execution-based self-consistency voting (Section 3.7); and the voted query passes through the remaining two repair procedures, the low-confidence candidate-expansion fallback and error-feedback self-correction. Figure 1 shows an overview of the entire pipeline. Throughout the paper, “full system” denotes this complete pipeline; Section 5 additionally reports controlled variants with the repair stage and voting disabled.
- Notation and typed specification.
A question is a string in language L. A database is with schema (tables, columns, primary and foreign keys) and instance I; denotes the stored values of column and its native-language description. is the BGE-M3 embedding, the external translation (the identity for English), and the question concatenated with its translation; is the input to the two value-injection stages H and M and to the entity-gating predicate, so that English cell values can be matched from a non-Latin question, whereas column linking operates on q alone and sample rows are selected from the linked columns rather than from the question (Section 3.2, Section 3.3, Section 3.4 and Section 3.5). We write for a configuration in which the native-language descriptions are removed; every stage that reads —schema rendering, column linking, and the column-hint block of the prompt—then omits them. returns a result set or ⊥ on parse failure, execution error, or timeout (60 s). Let denote the indexed decoding schedule, with for the greedy candidate (used for tie-breaking), and let and be two distinct deterministic per-sample seeds for the initial and fallback runs. is the fine-tuned adapter over the frozen backbone. Table 1 specifies every stage as a typed transformation; Algorithm 1 composes the stages without undefined empty-set or tie cases, and Section 3.9 gives the design rationale.
| Algorithm 1 End-to-end inference pipeline (composition of the typed stages of Table 1) |
|
Table 1.
Typed specification of the pipeline stages. Constants are fixed as described in Section 4.4. The ablation groups G1–G4 (Section 5.3) remove the corresponding transformations: G1 replaces by , removes , and sets ; G2 removes ; G3 removes and sets , which also strips the native descriptions from , from the column-hint block rendered by , and from the text embedded by , so G3 is not a translation-only removal; G4 removes voting, fallback, self-correction, and . G1 and G3 both set and are therefore not disjoint groups.
Figure 1.
Overview of the proposed cross-lingual text-to-SQL pipeline. A target-language question and the database schema are processed through the prompt-enrichment components of Section 3: the M-Schema representation with native-language descriptions, value injection (rendered as the value-hint and matched-value slots), sample rows, the English translation hint, and column linking. During training, per-feature dropout (Table 2) ensures prompt alignment between training and inference. The assembled prompt is fed to Qwen2.5-Coder-7B-Instruct fine-tuned with QLoRA (, ). At inference, 8 SQL candidates are generated via multi-temperature sampling; each candidate is repaired (identifier fixing, hallucinated-filter removal, value-literal grounding) and executed against the database; the modal execution-result group determines the selected query; the low-confidence candidate-expansion fallback is then applied when needed, followed by error-feedback self-correction if the retained query still fails execution (Section 3.8). Component colors indicate the three ablation groups analyzed in Section 5: schema grounding (M-Schema, column linking), value grounding (value injection, sample rows), and the translation hint.
The voting operator is fully deterministic given the generated candidates. For indexed repaired candidates , let . If , . Otherwise define iff and let be the execution-result equivalence classes. Choose a class of maximal cardinality; if several classes tie, choose the class whose smallest pair in lexicographic order is smallest. Within the selected class , choose , i.e., the shortest SQL with candidate index as the final deterministic tie-break. Then .
Table 2.
Per-feature dropout rates during training.
3.1. Schema Representation
We use the M-Schema representation [46] to give a clear structure to the database schema. For each table, we show the table name, column names with their data types, primary key markers (marked with *), and foreign-key relationships. We also include column descriptions in the native language to help the model link questions in the target language to the English schema identifiers. For example, we use Arabic descriptions for Ar-Spider, Japanese for MultiSpider-JA, and Vietnamese for MultiSpider-VI. When M-Schema is dropped during training (Section 3.6.2), the prompt falls back to raw DDL (CREATE TABLE statements) without native-language annotations. The complete prompt template, including the M-Schema-rendering format, is provided in Appendix A.
3.2. Value Injection
When questions refer to specific database values, such as country names or categories, we use two complementary value-injection methods to ground the model in actual database content. These approaches address a limitation of the value-agnostic GNN-based baseline configurations used in prior multilingual work, which do not generate literal values.
Value hints. For each text column in the database, we extract up to 4 representative values via SELECT DISTINCT queries, prioritizing columns whose values overlap with question terms. This grounds the model in real data, preventing hallucinated string literals in WHERE clauses.
Matched values. We embed both the question and all database cell values using BGE-M3 [41]. Next, we return the top five cell values with cosine similarity scores above 0.40. This approach helps match cross-lingual entity references; for example, a word for “Netherlands” in another language in the question will map to the exact English cell value in the database.
An entity-gating filter skips the matched values component for numeric or count-only questions that contain no text entities to match, reducing noise in the prompt. Both value-injection methods and the gating filter operate on the target-language question concatenated with its English translation hint (Section 3.4), since token overlap and entity detection against English cell values would otherwise be near-empty for non-Latin questions; the G3 ablation (Section 5.3) removes the translation from these uses as well as from the prompt. When many stored values overlap the question, selection for the value-hint block is deterministic: columns are ranked by the number of question tokens overlapping their distinct values; within a column, overlapping values are listed first, and remaining slots (up to the cap of 4 per column) are filled in the stored retrieval order.
3.3. Sample Rows
We include up to 3 sample rows from the most relevant tables in the prompt, based on evidence that including database content can greatly improve text-to-SQL performance [24,27]. Tables are prioritized based on their appearance in the column linking hints (Section 3.5). If no column is linked, or if column linking is disabled in an ablation, tables are selected deterministically in schema order. These concrete data samples help the model infer data types, JOIN key relationships, and value formats without requiring explicit type annotations.
Each table displays up to 6 columns and 3 rows, with values truncated to 15 characters to keep the prompt compact.
3.4. Translation Hints
To bridge the gap between the target language and English schema identifiers, we append a Google Translate English version of the target-language question as a supplementary hint in the prompt, formatted as “(English: translation)”.
This gives the model an English rendition that can clarify schema references, especially for entity names and technical terms that may be transliterated rather than translated in the original question. The English hint provides supplementary context but does not replace the target-language input, allowing the model to leverage both languages during SQL generation. This is particularly important since the base Qwen2.5-Coder-7B-Instruct model was pre-trained predominantly on English data. The English hint is never dropped during training (Section 3.6.2) because it is cheap, always available, and provides a reliable backup signal.
3.5. Column Linking
One of the main challenges in non-English text-to-SQL is connecting question tokens in the target language to English schema elements. We use BGE-M3 [41], a multilingual embedding model, to compute the cosine similarity between the full question embedding and each column embedding. Each column embedding concatenates the English column name with its native-language description (e.g., “Country: <native description>”). The top- columns above a similarity threshold of 0.50 are injected as explicit schema-linking hints.
This approach uses bilingual embeddings to link schemas across languages without needing to translate schema elements directly. It works consistently across all three languages because BGE-M3 supports over 100 languages. The idea of supplying explicit schema-linking hints ahead of SQL generation follows DTS-SQL [22]; unlike DTS-SQL, which fine-tunes a model for schema linking, we use a frozen multilingual embedding so that the same linker serves every language without retraining.
3.6. Prompt Design and Training
We fine-tune Qwen2.5-Coder-7B-Instruct [44] using a QLoRA [42] adapter with rank 64 and . The Qwen2.5-Coder models are built for code generation and show strong multilingual performance in both programming and natural languages.
3.6.1. Prompt Template
The prompt consists of a system message that establishes the [Language]-to-SQL task and a structured user message assembling eight template variables. Five are the enrichment components introduced above: value_hints and matched_values (the two slots of value injection, Section 3.2), column_hints (Section 3.5), sample_rows (Section 3.3), and translation_hint (Section 3.4); all except the translation hint are subject to training-time dropout (Table 2). Three are always present: the schema (M-Schema representation), a compact table_summary (table→columns reference), and the question itself. The system message text and the complete prompt template layout are provided in Appendix A. The target output during training is the gold SQL query wrapped in a ‘‘‘sql… ‘‘‘ code block.
3.6.2. Feature Dropout for Prompt Alignment
We train the QLoRA adapter with the same prompt structure used at inference, applying per-feature random dropout during training. Table 2 summarizes the dropout configuration, which exposes the model during training to the fallback prompt layouts it may encounter at inference. Column hints receive the highest dropout rate (40%) as the noisiest feature (we discovered many columns were not linked correctly). The translation hint and table summary are never dropped: they are cheap, always available at inference, and provide a stable reference signal. When M-Schema is dropped, the prompt falls back to raw DDL. When other features are dropped, their prompt section is simply omitted. This teaches the model to leverage features when present but degrade gracefully when absent.
3.7. Multi-Temperature Self-Consistency Voting
At inference time, we generate 8 SQL candidates using a multi-temperature sampling strategy: 1 greedy decode, 2 candidates at temperature , 3 at , and 2 at . This provides a balance between high-confidence predictions and diverse alternatives. All candidates are drawn with nucleus sampling () and a 300-token generation cap.
We then use execution-based self-consistency voting [29]. Each candidate SQL query is run on the database, and those that produce the same result set are grouped together. Candidates that fail to parse or cause an execution error are excluded from voting. On our development sets, 4.8 to 6.6% of candidates fail execution (6.6%, 4.8%, and 5.6% for Arabic, Japanese, and Vietnamese). Each query is limited to 60 s, and any that time out are also considered execution failures. All database connections are opened in SQLite read-only mode (mode = ro URI), so any statement that attempts to modify the database fails at the driver level and is counted as an execution failure, and the released harness additionally rejects any candidate whose first keyword is not SELECT or WITH. In practice, the safeguard is never exercised: across the initial candidates generated by the eight-candidate voting configurations of the unified evaluation and the sensitivity sweep (Section 5.4; eight such runs of 8 × 1034 candidates for Arabic and Vietnamese and 12 for Japanese, excluding the candidate-expansion evaluation and self-correction retries), zero non-SELECT statements were generated. The group with the most candidates wins (ties between equal-sized groups are broken toward the group containing the lowest-temperature candidate), and from this group, we pick the shortest SQL string as the final prediction. This is a simple way to choose among candidates that give the same result. If all candidates fail execution, the sample enters the low-confidence candidate expansion of Section 3.8 with ; if that run also yields no executable candidate, we return the greedy candidate. All initial candidates fail for only 3 to 6 out of 1034 samples per language (6, 3, and 4 for Arabic, Japanese, and Vietnamese). This method reliably removes syntactically invalid candidates and outliers with minority results, but it cannot catch cases where most candidates agree on an incorrect answer. In these cases, the wrong answer will still be chosen. Empty result sets count as regular votes.
3.8. Execution-Guided Repair Stage
The execution-guided repair stage comprises five procedures. In the released implementation, identifier fixing, hallucinated-filter removal, and value-literal grounding are applied to each candidate before voting, while the low-confidence candidate expansion and then error-feedback self-correction operate on the voted output, in that order (Algorithm 1, Steps 4–5). These procedures operate on the generated SQL text and the database, never on the gold annotation.
Identifier fixing. Table and column names in the predicted SQL that do not exist in the schema are fuzzy-matched against schema identifiers (character-level similarity threshold 0.7) and replaced with the closest valid identifier.
Hallucinated-filter removal. WHERE-clause predicates referencing columns absent from the schema are removed.
Value-literal grounding. String literals in WHERE clauses are matched against actual database cell values (similarity threshold 0.70) and replaced with the exact stored value, correcting casing and formatting divergences.
Low-confidence candidate expansion. If the winning group in the initial eight-candidate run holds three or fewer votes, a second eight-candidate run is generated using a raw-DDL prompt variant and the same multi-temperature schedule, under the distinct per-sample seed of Section 4.4, so that the second run is independent of the first yet exactly reproducible. Vote confidence is the winning-group size divided by the eight generated candidates; the fallback prediction replaces the initial prediction only when its vote confidence is strictly higher. This fallback was attempted on 7.8–9.8% of samples (101, 90, and 81 of the 1034 samples for Arabic, Japanese, and Vietnamese, respectively) and was retained for 48, 47, and 51 samples, respectively.
Error-feedback self-correction. If the selected query still fails to execute, the model is re-prompted with the database error message, for at most two retries. This fires rarely (2, 1, and 3 of the 1034 samples for Arabic, Japanese, and Vietnamese). It fires less often than the 6, 3, and 4 samples on which every initial candidate fails (Section 3.7) because those samples have and therefore trigger the low-confidence candidate expansion first, which supplies an executable candidate for most of them; self-correction is reached only when both runs leave the selected query non-executable.
The repair stage contributes +0.4, +1.1, and +0.4 pp EX for Arabic, Japanese, and Vietnamese, respectively (Section 5); its effect is statistically significant only for Japanese (McNemar’s exact test against the repair-disabled ablation: EX p = 0.019, ESM ), not for Arabic (EX , ESM ) or Vietnamese (EX p = 0.45, ESM p = 0.21). We report the repair stage as an explicit, separately ablated part of the system: all comparisons in Section 5 include a repair-disabled variant so that the contribution of the underlying model and prompt components can be assessed independently.
Algorithm 1 gives the complete formal specification of the inference pipeline as a composition of the typed stages of Table 1; Section 3.9 explains the rationale for each step. The full prompt template and slot formats are reproduced in Appendix A.
3.9. Design Rationale
Each step of Algorithm 1 exists for a stated reason. Step 1 computes the language-dependent evidence used by the prompt. The method does not require replacing executable English schema identifiers with translated identifiers; translated descriptions are nevertheless used as auxiliary prompt context. Bilingual embedding-based column linking maps the target-language question directly to the original English identifiers, while value hints, matched values, and sample rows (H, M, R) help a value-predicting generator reproduce WHERE-clause literals exactly as stored; the grouped ablation G2 shows that this evidence family is the single most important group in every language. Step 2 defines both the normal M-Schema prompt and the raw-DDL fallback prompt over the same evidence, differing only in the schema slot, which makes the fallback a precisely defined schema-rendering change rather than an implicit prompt variant. Step 3 trades one greedy decode for candidate diversity, applies the three deterministic database-checkable repairs before voting, and lets execution results define equivalence classes. The modal execution-result group is selected, with the deterministic tie rules of Table 1; within that group the shortest SQL is chosen. The vote fraction is retained as an empirical confidence-ranking signal because higher vote counts are strongly associated with higher EX (Section 5.2); it is used only to rank confidence, not as a probability estimate. Step 4 spends extra compute only when and accepts the raw-DDL run only when its vote fraction is strictly larger. Step 5 applies error-feedback self-correction last and preserves the prompt corresponding to the retained run through ; it is rare (2, 1, and 3 samples per language) because the candidate-expansion fallback resolves most all-candidates-fail cases first. Step 6 returns the resulting SQL. The typed stages of Table 1 are also the units of the ablation study (Section 5.3), so every ablation removes one function or one named set of functions from the specification.
4. Experimental Setup
4.1. Dataset
We evaluate on three cross-domain text-to-SQL benchmarks:
Ar-Spider [11] is an Arabic translation of Spider. In the benchmark files used in this study, we load 8659 training questions and 1034 development questions across 166 databases (146 training and 20 development databases). The dataset was created through manual translation of the English Spider dataset by two qualified translators and verified by three graduate computer science students who are native Arabic speakers.
MultiSpider-JA (Japanese) and MultiSpider-VI (Vietnamese) are drawn from the MultiSpider benchmark [12], which extends Spider to seven languages. Each contains 8659 training and 1034 development samples across the same 166 Spider databases.
For all three languages, we use the standard split: the training set for fine-tuning and the development set (1034 samples) for evaluation. Of each 8659-sample training set, 5% (433 samples) is held out as a validation split (Section 4.4), so 8226 examples per language feed gradient updates; the counts in Table 3 refer to the released files. The databases and SQL queries remain in English, while only the natural-language questions are in the target language as given in the original datasets. Following Spider’s cross-domain protocol, the development-set databases are disjoint from the training-set databases in all three benchmarks, so every result reported in this paper is measured on databases and schemas never seen during fine-tuning. The development sets are held out from model training and schema-disjoint, but the Arabic development set was additionally used to fix the pipeline constants (Section 4.4); Japanese and Vietnamese, on which no constant was selected, are therefore the cleaner transfer tests. None of the three benchmarks releases a target-language test split (all were translated while the Spider test set was still hidden), and every published baseline in Table 4 likewise reports development-set results; all comparisons in this paper are therefore like-for-like on the same held-out-database split.
Table 3.
Programmatic cross-language split-overlap audit for the three target-language benchmarks. Pairwise entries are order-free multiset intersections of pairs; denotes complete multiset identity.
Table 4.
Exact Set Match (ESM) accuracy (%) on development sets.
The four language versions are parallel by construction, and Table 3 quantifies the overlap directly. Our programmatic audit verifies complete identity across the three target-language copies in both released splits. In training, Arabic, Japanese, and Vietnamese each contain 8659 samples over the same 146 databases, and every pair has an order-free multiset intersection of 8659/8659 pairs. In development, each contains 1034 samples over the same 20 databases, with 1034/1034 identical pairs for every language pair. For both splits, the number of databases shared by all three languages equals the union size (146/146 for training and 20/20 for development). English Spider is the source benchmark and uses the same 8659/1034 train/development instance counts and the same 146/20 database partition. Thus, the databases, gold SQL, and query structures are held fixed across language versions; only the natural-language questions differ. Two consequences follow. First, the English-to-target differences measured against the English reference run (Section 5.5) are same-pipeline performance gaps on parallel Spider instances: the databases, gold SQL, and query structures are held fixed, which controls task structure, but the language-specific training data, adapter, native-language descriptions, and translation-hint content also differ, so the gaps do not isolate a causal effect of question language. Second, the shared, parallel structure is why joint multilingual training on these benchmarks cannot isolate cross-lingual transfer (Section 7): concatenating the target-language training sets would expose the model to three renderings of identical SQL targets.
English reference run. To help interpret the cross-lingual results, we also run the same pipeline on the original English Spider dataset [1], which has 8659 training and 1034 development samples using the same databases. In English, the translation-hint slot simply repeats the question, so no external translation service is needed, and the column-description dictionaries are empty because the schema identifiers are already in English. All other components, hyperparameters, and inference steps, including voting and the repair stage, stay the same. We train a separate QLoRA adapter on the English training set, just as we do for the other languages.
4.2. Evaluation Metrics
We report the following metrics:
Execution Accuracy (EX): A prediction counts as correct if running both the predicted and gold SQL on the database returns identical result sets. EX is the most semantically faithful standard metric because it checks values, joins, and logic together. We report single-instance EX: queries are executed against the single database instance shipped with each benchmark, so a semantically different query can coincidentally return the gold result set on that instance, particularly for small databases. Test-Suite Accuracy [16] mitigates this by executing against multiple distilled instances. Because the three benchmarks share Spider’s development databases and gold SQL (Table 3), the Spider test-suite databases are applicable in principle, but no prior work on these benchmarks has reported test-suite accuracy, and we leave it to future work; our EX figures should therefore be read as upper bounds subject to coincidental-match false positives. This limitation applies symmetrically across our three languages and configurations.
Exact Set Match (ESM): The original Spider exact set match metric [1], and the metric reported by every baseline in Table 4, breaks down both the predicted and gold SQL into parts like SELECT columns, WHERE conditions, GROUP BY, ORDER BY, HAVING, and IUEN set operations, then checks if each part matches as a set. ESM works without considering values (DISABLE_VALUE = True in the evaluation script) and without DISTINCT (DISABLE_DISTINCT = True), so it only checks if the structure is correct.
Understanding the distinction between EX and ESM is essential for interpreting our results. EX evaluates functional correctness by determining whether the query returns the correct answer, regardless of the specific SQL formulation. In contrast, ESM assesses structural conformity, examining whether the query employs the same SQL patterns as the gold annotation. A query may satisfy EX but not ESM if it adopts a different, yet semantically equivalent, structure, such as using a NOT IN subquery instead of EXCEPT. Conversely, a query may conform to ESM but fail EX if it exhibits the correct structure but yields incorrect results due to erroneous values, which ESM does not account for. This distinction is central to the analyses in Section 5 and Section 6.
Because a share of ESM failures reflect well-defined structural alternatives rather than semantic errors, we additionally report a normalized ESM that applies four instance-validated diagnostic rewrites, each restricted by structural guards to the query shapes under which the two forms yield the same ESM verdict (Appendix B states the guards and the cases in which the rewritten form is not an executable equivalent: Boolean precedence, duplicate rows, NULLs, and empty tables): NOT IN versus EXCEPT, MIN/MAX versus ORDER BY LIMIT 1, literal IN-lists versus OR-chains, and BETWEEN versus explicit range predicates. The normalization is gold-blind at application time: identical rewrite rules are applied to both predicted and gold SQL before comparison, and no rule is conditioned on the gold annotation. The rewritten strings are used only for the ESM comparison and are never executed; the execution check below is always performed on the original, unrewritten prediction. We disclose that the rule set itself was selected on the same development predictions: candidate rules were kept only if every ESM verdict they flipped was execution-correct, which is how the fifth rule below was rejected; the diagnostic is therefore validated on, not independent of, the evaluated instances, and its execution check inherits the single-instance limitation of EX. We accordingly describe the rules as verdict-preserving canonicalizations validated by execution, not as semantic equivalences. The rewrites are consequently reported as a secondary diagnostic and never as the comparison metric. We validate the rules empirically: every development sample whose ESM verdict flips from incorrect to correct under normalization is checked against its execution outcome. On the unified-harness headline predictions for all three languages, 100% of flipped verdicts are execution-correct (12/12, 10/10, and 10/10 for Arabic, Japanese, and Vietnamese), no correct verdict is lost, and no gold query or parseable prediction becomes unparseable. A fifth candidate rule (integer-threshold rewriting, ) was evaluated under the same protocol and rejected: because ESM disables value comparison, the rewrite erased genuine boundary differences and produced execution-incorrect flips on Japanese; we report this negative result as evidence that the protocol constrains the rule set. The unified-harness predictions confirm the rule remains unsound in every language, producing execution-incorrect flips in Arabic and Vietnamese as well as Japanese. Per-rule conversion counts on both predicted and gold SQL are produced by the released evaluation scripts, confirming the symmetry of application; Algorithm A1 in Appendix B reproduces the implementation as executable pseudocode, and Table A1 reports, per rule, how many queries were considered, rejected by a guard, and rewritten, together with the flip counts. We additionally report 95% confidence intervals for all headline proportions (nonparametric bootstrap, , over per-sample outcomes) and use McNemar’s exact test for paired within-system comparisons. We use McNemar’s test rather than a paired t-test because per-sample correctness is binary: the t-test assumes approximately continuous paired differences, while McNemar’s is the exact paired analogue for 0/1 outcomes. The reported p-values are unadjusted and should be interpreted as exploratory evidence across the multiple component and sensitivity comparisons. The rules are reproduced with examples in Appendix B.
4.3. Baselines
For Arabic, we compare against all results reported in the Ar-Spider paper [11]. These use two GNN-based parsers (LGESQL [19] and S2SQL [20]) with two cross-lingual encoders (mBERT [39] and XLM-R [40]), optionally augmented with the context similarity relationship (CSR) approach. All baselines report ESM only; their published configurations use value-agnostic decoding and therefore do not provide a directly comparable end-to-end execution-accuracy result.
For Japanese and Vietnamese, we compare against the strongest multilingual SAVe configuration reported in MultiSpider [12]: RAT-SQL + XLM-R + SAVe, evaluated using exact set match, with reported ESM scores of 61.6% for Japanese and 67.8% for Vietnamese. Two more recent studies use the same MultiSpider development sets but are not included in Table 4: the COLA agent framework of [13] relies on zero-shot prompting of the proprietary OpenAI-o1 model and reports 43.4% exact match for Japanese, below SAVe, and the contrastive-reward study of [15] targets a different model class (a 3B model trained with GRPO) under its own evaluation protocol. Because these two studies differ from ours in model access, model scale, or evaluation protocol, their figures are not directly comparable, and the multilingual RAT-SQL + XLM-R + SAVe configuration remains the strongest comparable published MultiSpider baseline for Japanese and Vietnamese. The baseline values in Table 4 are as reported by their authors: neither the Ar-Spider nor the MultiSpider release includes prediction files or a runnable training configuration for its strongest system, so the baseline outputs could not be re-scored under our harness. The comparison therefore uses the same nominal original Spider ESM protocol reported by the baseline studies, including disabled value and DISTINCT comparison. However, because the original baseline predictions were unavailable, we could not re-score them under our exact evaluator implementation and software environment; minor implementation- or version-level differences therefore cannot be ruled out.
4.4. Implementation Details
We fine-tune Qwen2.5-Coder-7B-Instruct using QLoRA with rank 64, alpha 128, and adapter dropout 0.05 (distinct from the prompt-level feature dropout of Section 3.6.2). Training uses a learning rate of with cosine scheduling over 3 epochs (1029 optimizer steps at an effective batch size of 24). The maximum sequence length is 4096 tokens. Fine-tuning is performed on a single NVIDIA A100 GPU (NVIDIA Corporation, Santa Clara, CA, USA). A separate adapter is trained for each language using the respective training set, following the modular per-language-adapter design of adapter-based cross-lingual transfer frameworks [47]; the architecture, prompt template, hyperparameters, and inference procedure are identical across languages, with only the training data, native-language column descriptions, and translation hints differing. The native-language column descriptions require no manual authoring: for Arabic, they are generated automatically using Google Translate, whereas for Japanese and Vietnamese they are obtained from the schema translations released with MultiSpider; missing translations are automatically filled using Google Translate. The English reference run (Section 4.1) uses the same procedure with the identity translation hint and empty description dictionaries. The base-model transferability experiment (Section 5.6) instantiates the same pipeline on Llama-3.1-8B-Instruct with no other changes, including the 60-s per-query execution limit of Section 3.7. During inference, we generate eight candidates using the multi-temperature strategy of Section 3.7, followed by the repair stage of Section 3.8. All results reported in this paper (the full system, every single-component and grouped ablation, the exact no-voting/no-repair control, and the minimal baseline) come from a single evaluation harness run under one set of library versions, with deterministic per-sample sampling seeds (base seed 1234 combined with a hash of the sample identifier and with the run index, so each sample receives the same seed regardless of run order; the initial eight-candidate run uses and the raw-DDL candidate-expansion run of Section 3.8 uses the distinct seed obtained from the second run index), and exact set match computed per sample with the original Spider ESM evaluator. Unless stated otherwise, every percentage-point difference quoted in the text is the difference of the rounded values shown in the tables; normalization gains are exact flipped-verdict counts divided by 1034. All pipeline constants (column-linking threshold with top-, matched-value similarity threshold 0.40, value-grounding threshold 0.70, fuzzy-identifier threshold 0.7, and the 1/2/3/2 temperature schedule) were fixed once during preliminary exploration on the Arabic development set, before any Japanese or Vietnamese experiments, and reused unchanged for all languages, the English reference run, and the Llama-3.1 run; none were tuned per benchmark. The reuse of the same configuration across four languages and two base models provides evidence of cross-setting robustness, and Section 5.4 reports a direct sensitivity study of the column-linking threshold and top-K: a retrieval-level analysis of the linker at seven /K settings, an end-task sweep of six alternative settings in all three languages, and full-pipeline evaluations at the two extreme settings on Japanese. The component-removal ablation provides complementary context for the magnitude of the column-linking and value-injection contributions under the selected configuration (≤1.3 pp and ≤2.7 pp EX, respectively, Table 5). The base model is loaded in NF4 4-bit double quantization with bfloat16 compute; optimization uses a 0.05 warmup ratio, weight decay 0.01, gradient clipping 1.0, and gradient checkpointing, with a per-device batch size of 6 and gradient accumulation of 4, and 5% of each training set is held out for validation (seed 42). Decoding uses nucleus sampling () with a 300-token generation cap and a sampling base seed of 1234. Per-language training and inference wall-clock times, together with the GPUs used, are reported in Appendix C (Table A2). The remaining implementation details, including exact library versions and the training scripts themselves, are contained verbatim in the released code.
Table 5.
Ablation study of different component removals under the unified seeded harness.
5. Results
5.1. Main Results
Table 4 and Table 6 present our main results across all three languages. Table 4 compares exact set match (ESM) accuracy against published baselines. Our full system achieves 65.9%, 64.1%, and 71.3% raw Spider ESM for Arabic, Japanese, and Vietnamese, respectively. Already at the raw Spider ESM level, the Japanese and Vietnamese results surpass the strongest multilingual MultiSpider baseline (RAT-SQL + XLM-R + SAVe) by +2.5 pp and +3.5 pp, respectively; the Vietnamese confidence lower bound (68.6) clears the baseline (67.8), while the Japanese lower bound (61.2) does not clear the baseline (61.6), so the Japanese margin is directional rather than interval-separated. The Arabic raw ESM (65.9) lies 0.7pp below the strongest baseline (66.63). Gold-blind normalization (Section 4.2) is reported as a secondary diagnostic: it yields 67.0% [64.1, 69.9], 65.1% [62.2, 68.1], and 72.2% [69.6, 75.0] for Arabic, Japanese, and Vietnamese, i.e., +1.2, +1.0, and +1.0 pp computed as 12, 10, and 10 flipped verdicts out of 1034 (the rounded table values differ by 1.1, 1.0, and 0.9 pp). Under the diagnostic, the Japanese and Vietnamese margins over the multilingual SAVe baseline widen to +3.5 and +4.4 pp, and the Arabic value moves numerically above the strongest baseline (67.0 vs. 66.63), a margin well within the bootstrap uncertainty of our estimate; the primary raw-metric ordering of Table 4 is unchanged by this diagnostic. Relative to the exact greedy control, the full system’s raw ESM is higher by +3.2, +3.5, and +3.0 pp for Arabic, Japanese, and Vietnamese (Table 6), and McNemar’s exact test on the paired per-sample outcomes is significant in all three languages (, , and ): voting filters degenerate candidates, a benefit visible to both metrics; only 15, 9, and 10 of the 1034 selected queries fail to parse under the original Spider ESM evaluator for Arabic, Japanese, and Vietnamese, and 5, 4, and 4 of these are well-formed SQLite queries containing a literal IN-list, a construct the original Spider ESM parser rejects (Appendix B). The original Spider ESM evaluator’s component-level breakdown identifies set-operation (IUEN) generation as the dominant shared failure mode: it is the lowest-scoring component in every language (35.4%, 27.8%, and 37.3% partial accuracy over the 79, 79, and 83 samples in which a set operation occurs in the gold or predicted SQL, for Arabic, Japanese, and Vietnamese on the unified-harness predictions), well below every other component; this is a genuine capability gap, consistent with our future-work item on EXCEPT/UNION generation, rather than a stylistic preference.
Table 6.
EX and raw Spider ESM on the 1034-sample development sets under the unified seeded harness.
The normalization rules are reproduced in Appendix B, and the Ar-Spider translation-error audit that bounds the reported Arabic accuracy is presented in Section 5.7. Table 6 reports single-instance execution accuracy (EX) together with two controlled variants (repair stage disabled, and greedy decoding with both voting and repair disabled); EX is a metric not reported by these baselines, whose published configurations use value-agnostic decoding.
Several patterns emerge across languages. Vietnamese achieves the highest EX (79.9%) and ESM (71.3%). Its use of a Latin-based script may be one of several factors that reduce surface-form distance from English schema identifiers, but the present experiments do not isolate a script effect. Arabic and Japanese achieve nearly identical EX (75.2% and 74.8%) despite their different writing systems, which is consistent with the bilingual embedding-based column linking and translation hints helping across scripts, but does not establish that script family is irrelevant. Ar-Spider and MultiSpider also come from different translation projects, and the languages may differ in pretraining coverage, tokenization, and translation quality; cross-language performance differences should therefore not be attributed to orthography alone. The guarded normalization yields similar modest gains in all three languages (+1.2, +1.0, and +1.0 pp on the unified-harness predictions, i.e., 12, 10, and 10 flipped verdicts out of 1034), the uniformity expected of benchmark-agnostic rules.
The EX–ESM gap is present across all three languages (Table 6): 9.3 pp for Arabic, 10.7 pp for Japanese, and 8.6 pp for Vietnamese under the full system. Crucially, the gap persists at essentially the same magnitude when the repair stage is disabled and in the exact no-voting/no-repair control with both inference-stage procedures removed (8.4, 10.8, and 8.5 pp): removing execution-based voting and repair leaves the gap intact.
Figure 2 visualizes the relationship between EX, ESM, and the normalized ESM across all three languages, clearly illustrating the consistent 8.6–10.7 pp gap and the partial recovery achieved through SQL normalization.
Figure 2.
EX, ESM, and normalized ESM across the three languages. The persistent EX–ESM gap mainly reflects generated SQL differences rather than decoding.
5.2. Self-Consistency Voting Analysis
Table 7 shows a strong link between self-consistency vote counts and prediction accuracy in all three languages. This supports the effectiveness of our multi-temperature voting strategy. We illustrate this trend, with vote count and execution accuracy rising together in each language in Figure 3.
Table 7.
Execution accuracy by self-consistency vote count. Cells show sample count and EX (%); unanimous predictions achieve 91–94% EX and cover 49–55% of each development set.
Figure 3.
Execution accuracy by self-consistency vote count across Arabic, Japanese, and Vietnamese. Higher vote counts generally indicate higher accuracy, with unanimous predictions achieving 91–94% EX.
Across all three languages, samples with unanimous agreement (8/8 votes) achieve 91–94% EX accuracy and constitute 49–55% of all samples, providing a highly reliable prediction subset. Vietnamese has the highest proportion of unanimous samples (55.3%), consistent with its highest overall EX, and Japanese and Vietnamese still differ by just over 5 pp EX, showing that performance is not uniform even within one benchmark source. The association between higher vote counts and higher accuracy is consistent across the three benchmarks studied, suggesting that vote count can serve as a practical confidence indicator for deployment; whether this extends to further languages remains to be tested.
5.3. Ablation Study
To measure how much each part of the pipeline contributes, we run an ablation study where we remove one component at a time and keep the rest unchanged, together with the grouped removals of Table 5 (rows G1–G4). Every configuration removes components at inference from the same fine-tuned adapter, which was trained with per-feature prompt dropout (Table 2) and has therefore seen every reduced prompt layout except the two that G3 produces (the English hint was never dropped during training, and native descriptions were never removed while M-Schema was retained), so G3 is an inference-time test of a layout outside the training distribution; nothing is retrained, and all rows come from the unified seeded harness with paired McNemar tests against the full system. The baseline (row 1) includes only raw DDL, the table summary, the target-language question, and the English translation hint with greedy decoding and no repair, which is the simplest setup that works. Table 5 shows the execution accuracy on the development set for each version, and Figure 4 illustrates how removing each part affects performance.
Figure 4.
Impact of individual component ablations on EX. Bars show percentage-point changes relative to the full system; value injection and self-consistency voting have the largest effects.
Value injection is the largest and most consistently significant single prompt component: removing it costs pp EX in Arabic () and pp in Vietnamese (); in Japanese its single removal is small ( pp, n.s.), but the grouped removal below shows that this understates the group it belongs to. Using real database content, through both representative column values and BGE-M3 matched entities, is essential for generating correct WHERE-clause literals, especially in cross-lingual cases where entity names in the question might not match their English database versions.
Self-consistency voting is significant in every language: pp for Arabic (), pp for Japanese (), and pp for Vietnamese (). The multi-temperature sampling strategy generates diverse SQL candidates, and execution-based voting filters out incorrect alternatives, which is especially valuable in the multilingual setting, where translation ambiguities can produce varied but partially correct candidates. The repair stage (row 6) contributes +0.4, +1.1, and +0.4 pp, largely attributable to the low-confidence candidate-expansion fallback (Section 3.8); its effect is significant only for Japanese.
For the remaining single removals, column linking and sample rows, no statistically significant difference from the full system was detected in any language.
The grouped removals (rows G1–G3) provide the direct test of redundancy. Removing all value-grounding components (G2) costs , , and pp EX ( everywhere), substantially more than the drop from any individually tested value-grounding component. This indicates that the components are partially compensatory and that leave-one-out ablations can understate the value of the full group. Removing all schema-grounding components (G1) costs , , and pp for Arabic, Japanese, and Vietnamese, respectively, with the largest effect in Vietnamese (), indicating that the combined schema-grounding mechanisms contribute even when column linking alone has a small effect. Removing the external translation from every use together with the native descriptions (G3) costs at most pp (significant only in Vietnamese), so the system retains of its performance when it is fully translation-free at inference; because the adapters were trained with the hint present, this establishes inference-time rather than training-time independence. Finally, removing voting and repair jointly (G4) costs , , and pp, exceeding the sum of the two single removals (, , and pp) even though both single removals already exclude the candidate-expansion fallback. The excess indicates that per-candidate repair is worth more without voting than with it: with voting, a candidate with a misspelled identifier or a mis-cased literal is simply out-voted, whereas under a single greedy decode the same error is recoverable only by repair.
The cumulative effect is substantial: the full system outperforms the minimal baseline by 12.3 pp for Arabic, 8.4 pp for Japanese, and 11.3 pp for Vietnamese. The grouped removals indicate that several components are partially redundant and mutually compensating. Establishing the full interaction structure (add-one-in and Shapley-style analysis) remains future work.
5.4. Sensitivity of the Column-Linking Parameters
To determine whether the column-linking threshold () and top-K (), fixed once on the Arabic development set (Section 4.4), are load-bearing, we conduct three analyses: a retrieval-level analysis of the linker alone, varying at and at , an end-task sweep of six alternative settings under the greedy no-voting/no-repair control in all three languages, and full-pipeline evaluations at the two extreme settings on Japanese, one of the two languages on which no constant was tuned. Table 8 reports the end-task sweep together with the linker’s gold-column recall at each setting, and Figure 5 visualizes the central contrast: retrieval recall varies by an order of magnitude across the swept settings while end-task accuracy barely moves, except for Vietnamese in the greedy regime.
Table 8.
Sensitivity of the column-linking parameters. Retrieval columns give the linker’s gold-column recall (%; columns referenced by the gold SQL, samples with at least one such column, identical across languages). EX columns give greedy no-voting/no-repair execution accuracy (%), compared with the default row by McNemar’s exact test: * p < 0.05, ** p < 0.01, *** p < 0.001. The last two rows evaluate the extreme settings under the complete 8-candidate pipeline on Japanese, compared with the full system.
Figure 5.
Column-linking sensitivity across languages. Panels vary and top-K around the default, showing linker recall and greedy EX; Japanese extreme settings also include full-pipeline results. Stars mark settings whose greedy EX differs significantly from the default setting (, ) by McNemar’s exact test: * , ** , *** ; no Arabic or Japanese setting reaches significance, so stars appear only in the Vietnamese panels.
Three findings emerge. First, the retrieval behavior is shared across languages: recall at the default setting is 59.6–66.0% at 43–48% precision, rises to 77.7–82.5% at , falls to 24.0–33.4% at , and collapses to 4.0–6.2% at , where the linker emits almost no hints (0.07–0.13 per question). Across the swept settings, the threshold dominates top-K, because the bilingual embedding similarities concentrate in the 0.3–0.6 band; the chosen setting is a precision-leaning operating point on this curve, not a recall-maximizing or finely tuned one.
Second, Arabic and Japanese end-task accuracy is insensitive to the setting: no alternative differs significantly from the default on EX (Arabic , Japanese ; the largest Japanese movement is 0.9pp), even though retrieval recall varies from 4% to 83% across the same settings. The only other significant result outside Vietnamese is Arabic ESM at ( pp, ), the setting at which the linker is effectively disabled; its EX drop ( pp) is consistent with the no-column-linking ablation of Table 5.
Third, Vietnamese is the exception, and the exception is informative. Under greedy decoding, every alternative setting is significantly worse ( to pp EX, ), in both directions of both parameters: the default is a sharp optimum. That the optimum falls exactly at constants fixed on Arabic is, as far as we can tell, a coincidence of the Vietnamese embedding-similarity distribution rather than evidence of tuning, since no Vietnamese result informed the choice. Under the full pipeline, however, removing column linking entirely costs Vietnamese only pp (n.s., Table 5 row 2), and the Japanese full-pipeline extremes in Table 8 show the same absorption directly: the loosest setting reproduces full-system EX exactly ( 0.0 pp) and the strictest costs 0.3 pp (n.s.), despite retrieval recall spanning 6% to 91% between them. We note the limit of this evidence: the full-pipeline extremes were run on Japanese, whose greedy accuracy is already insensitive to the setting, so for Vietnamese, the one language where greedy sensitivity was found, the absorption is inferred from the full-pipeline column-linking ablation rather than tested at every setting. Within that limit, the linker’s configuration matters only in the no-voting/no-repair regime, and execution-based voting and repair appear to absorb its perturbations. This is a further manifestation of the inference-stage compensation seen in the grouped ablations of Section 5.3 (the super-additive G2 and G4 removals), and it is the mechanism by which the pipeline tolerates an intentionally simple retrieval component. We conclude that the reported full-pipeline results do not appear to depend on fine-tuning of or K; the adapters were trained with 40% dropout on the column-hint block (Table 2), which is why varying the linking parameters at inference is a within-distribution test rather than an out-of-distribution one.
Scope of the decoding-temperature analysis. The multi-temperature schedule (0, 0.3, 0.3, 0.7, 0.7, 0.7, 1.1, 1.1) was held fixed throughout all experiments and was not independently swept. A controlled temperature analysis requires regenerating and executing the complete candidate set for every development example under each alternative schedule; because the unified seeded evaluation, grouped ablations, and the column-linking sensitivity experiments already required repeated full-candidate generation, we could not add a sufficiently powered temperature sweep within the available computational budget. We therefore make no claim that the chosen temperature schedule is optimal or temperature-insensitive. A systematic comparison of alternative temperature allocations is left to future work.
5.5. English Reference Run and Same-Pipeline Performance Gap
Table 9 reports the English same-pipeline reference run. The full system reaches 85.3% EX [95% CI: 83.0, 87.4] on the English Spider development set. We present this as a same-pipeline reference point rather than as an English leaderboard entry: English Spider has an extensive, separately maintained literature, and the purpose of this run is to decompose our multilingual results into two interpretable quantities.
Table 9.
English same-pipeline reference run and the resulting English-to-target performance gaps on parallel Spider instances. The identical documented pipeline (identity translation hint; empty native-description dictionaries; all other components unchanged) is trained and evaluated on the original English Spider. Gaps are the differences in the reported accuracies.
The first quantity is the same-pipeline English-to-target performance gap on parallel Spider instances: the difference between the English reference and each target-language run while the databases, gold SQL, query structures, architecture, constants, and inference procedure are held fixed. Arabic and Japanese show similar gaps of and pp despite their different writing systems, while Vietnamese shows a smaller gap ( pp). These are matched benchmark performance gaps, not isolated causal effects of question language: each target-language run uses language-specific training data and adapter weights, native-language descriptions, and non-identity translation-hint content, whereas the English run uses English training data, empty description dictionaries, and an identity hint. The pattern is nevertheless useful for comparing performance under the same pipeline design on parallel Spider instances, and it is consistent with the hypothesis that Latin-script overlap may contribute to Vietnamese’s smaller gap; script cannot be isolated from other language- and dataset-level factors in the present experiments. The near-equal Arabic and Japanese gaps further suggest that writing-system differences alone do not explain the observed degradation. The second quantity is the setup capacity: the distance between our English reference (85.3% on the development split) and the >90% state of the art (reported on the hidden test split) reflects the 7B open-source setting rather than the multilingual method, and our English figure sitting above the fine-tuned open-source Llama-3-8B anchor (78.9% on test [24]) confirms the pipeline itself is competitive in the English setting.
Two internal statistics corroborate this reading. Vote unanimity is highest on English (63.6% of samples are unanimous at 8/8 votes, vs. 49–55% for the target languages, with EX on the unanimous subset in the same 91–94% range), and repair-stage activity is lowest (the low-confidence fallback is attempted on 33 English samples vs. 81–101 for the target languages): both inference-stage procedures are more active in the target-language settings than in English, consistent with cross-lingual ambiguity contributing substantially to the residual difficulty.
5.6. Base-Model Transferability
Table 10 evaluates whether the pipeline’s performance depends on its base model. We fine-tune Llama-3.1-8B-Instruct [48] on the Arabic training set with the identical pipeline, data, hyperparameters, and inference procedure. Only the base model changes. Llama-3.1 reaches 74.6% EX [95% CI: 72.0, 77.2], within 0.6 pp of the Qwen2.5-Coder result (75.2%) and well inside its confidence interval. Compute constraints limited this second-model run to one language; we selected Arabic as the benchmark with the tightest baseline margin.
Table 10.
Base-model transferability on Arabic (Ar-Spider dev): the identical pipeline instantiated on two base models. Only the base model changes; training data, hyperparameters, prompt components, voting, and the repair stage are held fixed.
This near-parity carries two implications. First, the pipeline’s gains are not an artifact of one base model’s idiosyncrasies: a general-purpose instruction-tuned model, without Qwen-Coder’s code-specialized pretraining, achieves comparable execution accuracy under the same prompt-enrichment and inference-stage procedures, with a difference of only 0.6pp relative to Qwen2.5-Coder. Second, the experiment provides some robustness against a model-specific explanation of the result, although it cannot rule out benchmark contamination. Spider is a widely used benchmark whose English content may have appeared in the pretraining corpora of either base model, and we therefore do not use this experiment as a contamination test. Instead, the relevant observation is that two models with different pretraining objectives and architectures reach similar Arabic EX under the same pipeline. In addition, within Qwen2.5-Coder itself, the full system exceeds the minimal configuration of Table 5 by 8.4–12.3 pp EX while holding the base model and fine-tuning data fixed. These results indicate that the reported gains are not uniquely attributable to Qwen2.5-Coder, while leaving possible benchmark exposure as an unresolved limitation.
5.7. Dataset Translation Errors
We conducted a manual, full-dataset quality audit of Ar-Spider, covering both the development set (1034 samples) and the training set (8659 samples), and identified 149 translation errors in which the Arabic question diverges from the intent of the gold SQL query: 15 in the development set (1.45%) and 134 in the training set (1.55%). Table 11 reports the distribution across four error categories, and Figure 6 presents representative examples of each.
Table 11.
Systematic audit of translation errors in Ar-Spider, by error class and split. Classes (a), (b), and (d) are value-level errors, visible only to execution-based evaluation (ESM disables value comparison); class (c) is structural and ESM-visible. Notably, no structural errors occur in the development set.
Figure 6.
Representative translation errors in the Ar-Spider dataset. Each entry shows the original Arabic question, its English meaning, the gold SQL clause, and the identified mismatch. In each case, a model faithfully following the Arabic input would be penalized by the evaluation.
Entity mistranslation (Figure 6a). The Arabic question asks about the most spoken language in “Europe,” but the gold SQL filters for WHERE T1.Name = "Aruba". The original English Spider question referred to Aruba; however, the Arabic words for “Europe” and “Aruba” differ by only a single character, and the translator selected the wrong one. A model that correctly grounds “Europe” through value injection would search for European countries, producing a query that disagrees with the gold SQL.
Value typo (Figure 6b). The Arabic question refers to airport code “ACO,” while the gold SQL filters for AirportCode = “AKO”. This is a typographical error introduced during translation. Any model that faithfully uses the value stated in the question will be penalized.
Added column in translation (Figure 6c). The Arabic question asks for employee “names and ages” sorted by age, but the gold SQL is SELECT name FROM employee ORDER BY age, selecting only the name column. The translator added the phrase “and their ages” that was not present in the original English question, creating a mismatch between the Arabic intent and the gold annotation.
Transliteration mismatch (Figure 6d). The Arabic question asks about a person whose name transliterates to “Kelly” or “Keely” in English, but the gold SQL filters for WHERE T2.name = "Kyle". The correct Arabic transliteration for “Kyle” would use different characters. A model performing faithful cross-lingual entity matching would produce the wrong value.
These errors create an inherent evaluation ceiling: a model that correctly follows the Arabic question is penalized because the gold SQL reflects the original English intent rather than the translated Arabic text. The audit quantifies this ceiling precisely. In the development set, 15 samples (1.45%) carry confirmed errors, so correcting them could raise the Arabic EX ceiling by at most 1.5 pp; our reported EX of 75.2% is, in this respect, conservatively biased by dataset noise (while remaining an upper bound with respect to single-instance evaluation, Section 4.2). The metric-visibility structure of the errors matters: all 15 development-set errors are value-level (entity mistranslations, value typos, and transliteration mismatches), which affect primarily execution-based evaluation because ESM disables value comparison, while the ESM-visible structural class (added/dropped columns) does not occur in the development set at all. A value-level error can still reach ESM indirectly when a faithful reading of the mistranslated entity changes the query structure (for example, grounding “Europe” rather than “Aruba” may require a different filter column or join), so the audit bounds our EX figures directly and affects the ESM comparison against baselines only through such second-order cases. The 134 training-set errors (1.55%) act as label noise during fine-tuning; their similar rate across splits suggests a systematic property of the translation process rather than split-specific artifacts. Datasets were used exactly as released; none of the identified errors were corrected or excluded from training or evaluation.
6. Discussion
Our results across three languages highlight a fundamental tension in text-to-SQL evaluation. ESM was designed for grammar-constrained parsers that select schema elements through pointer networks and construct SQL via abstract syntax trees. These reported configurations use exact schema names, produce parseable SQL, reproduce annotation-style patterns because they were trained directly on gold annotations, and are evaluated without literal-value prediction. LLM-based approaches operate under fundamentally different constraints: they generate SQL as free-form text, can predict values, and learn SQL patterns from broad training corpora.
The English reference run (Section 5.5) sharpens what our multilingual results do and do not claim. Under the same pipeline design on parallel Spider instances, the English-to-target performance gaps are 5.4–10.5 pp EX. These gaps hold the databases, gold SQL, query structures, architecture, constants, and inference procedure fixed, but they do not isolate a causal language effect because the language-specific training data and adapter, native-language descriptions, and translation-hint content also change. The prompt-enrichment and inference-stage procedures lift the target languages 8.4–12.3 pp above the minimal baseline, a gain comparable in magnitude to these same-pipeline gaps; because the same procedures would also lift an English minimal baseline, which we did not run, this comparison relates the scale of the two effects rather than showing that the components close the gap. The near-equal Arabic and Japanese gaps despite their different scripts, together with Vietnamese’s smaller gap, suggest that orthography alone does not account for the observed differences and that broader cross-lingual semantic-mapping and dataset factors are likely involved. The English run’s higher vote unanimity and lower repair activity also show that the system exhibits greater uncertainty in the target-language settings. We therefore read the multilingual results as follows: a 7B open-source setup that is competitive on English (85.3% on dev, above the company-reported fine-tuned open-source reference of 78.9% on the test split [24], cited for context rather than direct comparison) retains 88–94% of its English performance across three typologically distinct low-resource languages with no language-specific architecture or constants. The base-model experiment further supports transferability: Llama-3.1-8B-Instruct reaches 74.6% EX on Arabic compared with 75.2% for Qwen2.5-Coder under the identical pipeline. Although this experiment is limited to one additional model and one language, the small 0.6pp difference provides evidence that the reported Arabic performance is not specific to Qwen2.5-Coder.
The consistency of the EX–ESM gap across Arabic (9.3 pp), Japanese (10.7 pp), and Vietnamese (8.6 pp), and its persistence when voting and the repair stage are disabled (8.4–10.8 pp under the exact greedy control), indicates that this is a property of LLM-generated SQL across typologically diverse languages, not an artifact of any particular language or decoding procedure. Our validated gold-blind normalization shows that about one percentage point (1.0–1.2 pp) of the gap is attributable to guarded, instance-validated alternative SQL formulations on the evaluated benchmark instances; the remainder reflects deeper structural divergences, among which the component-level analysis identifies set-operation (IUEN) generation as a shared capability gap across the three evaluated benchmarks (28–37% partial accuracy across the three languages) rather than a benign stylistic preference. The grouped ablations sharpen the component picture: value grounding is the dominant component group in every language, and removing the complete group causes a substantially larger degradation than any individually tested value-grounding component, indicating partial compensation among components. The two metrics therefore exhibit complementary biases: ESM can under-credit semantically equivalent SQL forms produced by value-predicting LLMs, whereas single-instance EX can over-credit incorrect queries that happen to return the same result on one database instance (Section 4.2). We consequently recommend reporting both, and we note that applying Spider’s existing test-suite databases to these parallel benchmarks is a natural next step. Our 75–80% EX across three languages shows that the system generates correct, executable SQL for most non-English natural-language queries; the reported value-agnostic grammar-constrained baselines do not provide directly comparable end-to-end EX measurements of this capability.
Implications of injecting database content into prompts. Value hints, matched values, and sample rows place real cell values into the model prompt, and this has consequences beyond accuracy. The first is data exposure: in deployment, the value-hint and sample-row components must be restricted to tables and columns the querying user is authorized to read, and columns holding personal data should be excluded or masked before injection. In our setting, the model runs locally, and no database content leaves the host; the same design with an API-hosted model would transmit database content to a third party. Only the natural-language question, never database content, is sent to the external translation service. The second is prompt injection: cell contents are untrusted text and could carry instructions to the model. The read-only connections, the statement whitelist (Section 3.7), and the fact that the output is executed rather than acted upon limit the consequences to an incorrect query, but the attack surface exists and deployed systems should filter injected content. The third is scale: the SELECT DISTINCT scans and the per-column value cap were tuned on Spider’s small, clean databases; large tables require sampling or a pre-built value index, and the 15-character truncation of injected sample values would need revisiting for long text fields. Finally, evaluation fairness: the injected content is drawn from the database only, never from the gold query, and would be equally available at inference time in any real deployment, so it does not constitute test leakage; we state this explicitly because value injection is the component group with the largest measured effect (Section 5.3).
7. Conclusions
We presented a unified LLM-based framework for low-resource text-to-SQL and tested it on three diverse benchmarks: Ar-Spider (Arabic), MultiSpider-JA (Japanese), and MultiSpider-VI (Vietnamese). Our approach achieved execution accuracies of 75.2%, 74.8%, and 79.9% on these datasets, with every configuration measured in a single seeded evaluation harness with paired significance tests. The pipeline combines QLoRA fine-tuning of Qwen2.5-Coder-7B-Instruct, bilingual schema linking, multi-temperature self-consistency voting, an execution-guided repair stage, and native-language prompt content (column descriptions and translation hints), instantiated per language through separately trained adapters.
An English same-pipeline reference run reaches 85.3% EX, yielding English-to-target performance gaps on parallel Spider instances of pp for Arabic, pp for Japanese, and pp for Vietnamese; the system thus retains 88–94% of its English performance across three writing systems. These are matched same-pipeline performance gaps rather than isolated causal effects of question language, because the language-specific training data, adapter, native-language descriptions, and translation-hint content differ across runs. The pipeline also shows initial evidence of base-model transferability: Llama-3.1-8B-Instruct achieves 74.6% EX on Arabic under the identical pipeline, within 0.6pp of the Qwen-based system.
On raw Spider ESM, the primary comparison metric, the system reaches 65.9%, 64.1%, and 71.3% for Arabic, Japanese, and Vietnamese, respectively: the Japanese and Vietnamese results surpass the strongest multilingual MultiSpider baselines by +2.5 pp and +3.5 pp, while the Arabic result lies 0.7pp below the previous best of 66.63% (LGESQL + XLM-R + CSR). Gold-blind normalization is reported as a secondary diagnostic: it adds +1.2, +1.0, and +1.0 pp (67.0%, 65.1%, and 72.2%), placing the Japanese and Vietnamese diagnostics +3.5 and +4.4 pp above the multilingual MultiSpider baseline and the Arabic diagnostic numerically above 66.63 within bootstrap uncertainty. Our controlled component-level analysis showed that the EX–ESM gap (8.6–10.7pp across all three languages) persists under an exact greedy control with voting and repair disabled and is therefore a property of LLM-generated SQL; guarded, instance-validated rewrites explain roughly one percentage point, and the IUEN component emerges as the clearest shared capability gap across the three evaluated languages.
These findings have important implications for extending text-to-SQL to the many languages that remain low-resource for this task. As the field transitions from grammar-constrained parsers to LLM-based approaches, evaluation metrics must evolve to account for the semantic equivalence of structurally diverse SQL queries. We recommend that future work on non-English text-to-SQL report execution accuracy alongside ESM to provide a complete picture of system capabilities. Overall, our results show that fine-tuned open-source LLMs with bilingual schema linking can provide practical text-to-SQL solutions for low-resource languages using a translated benchmark dataset, an off-the-shelf machine-translation service, and native-language column descriptions obtained without manual authoring (machine-translated or taken from the benchmark release). This approach is much easier than creating language-specific parsers from the ground up.
Several directions remain. The first is joint multilingual adapter training (a single set of adapter weights shared across languages). On the present benchmarks, this requires non-parallel multilingual data to be interpretable: Ar-Spider and MultiSpider are translations of the same underlying Spider instances with shared gold SQL, so joint training would mix three renderings of identical targets, and the evidence on multilingual co-training is mixed: bilingual training helped Portuguese in mRAT-SQL [38], whereas sharing fixed capacity across many languages dilutes per-language performance in XLM-R [40]. Related training-side directions are a hint-free training variant, targeted data augmentation to improve EXCEPT/UNION generation across languages, and an add-one-in or Shapley-style analysis of the component interaction structure (Section 5.3). Inference-side future work includes a controlled sensitivity study of alternative sampling-temperature schedules. On the evaluation side, we plan to report test-suite accuracy on the shared Spider development databases, to explore context-dependent text-to-SQL on the Ar-SParC dataset [35], to extend the approach to additional low-resource text-to-SQL languages in the MultiSpider benchmark (e.g., German, French, Spanish), to evaluate translation-provenance robustness on independently translated question sets such as AraSpider [36], and to investigate larger model scales and reinforcement learning with execution feedback.
Funding
The Researchers would like to thank the Deanship of Graduate Studies and Scientific Research at Qassim University (https://www.qu.edu.sa) for financial support (QU-APC-2026).
Data Availability Statement
The code, evaluation and normalization scripts, the 149-entry dataset-audit spreadsheet for Ar-Spider, and the trained QLoRA adapters are available at https://github.com/amaloraini/low_resource_t2s (accessed on 21 September 2026). The Ar-Spider, MultiSpider-JA, MultiSpider-VI, and Spider datasets are publicly available from their original publications.
Conflicts of Interest
The author declares no conflicts of interest.
Abbreviations
The following abbreviations are used in this manuscript:
| LLM | Large Language Model |
| EX | Execution Accuracy |
| ESM | Exact Set Match |
| SQL | Structured Query Language |
| DDL | Data Definition Language |
| QLoRA | Quantized Low-Rank Adaptation |
| GNN | Graph Neural Network |
| AST | Abstract Syntax Tree |
| CSR | Context Similarity Relationship |
| IUEN | INTERSECT/UNION/EXCEPT/None (the set-operation component of the Spider evaluator) |
Appendix A. Prompt Template
All languages, the English reference run, and the Llama-3.1 run use the identical two-part prompt; only the bracketed language-specific slots change. The system message is:
You are an expert <Language>-to-SQL translator. Given a database schema and a question (in <Language> or English), carefully map <Language> terms to the correct English column and table names in the schema, then output ONLY the correct SQL query inside a code block. No explanations.
The user message is rendered from the following template (verbatim from the released implementation), where each slot is filled by the corresponding pipeline component of Section 3; a component that is disabled or produces no content contributes an empty string:
Database Engine: SQLite
Database Schema:
{schema}
{value_hints}
{matched_values}
{column_hints}
{sample_rows}
Table -> Column Reference (use ONLY columns from the
table that has them):
{table_summary}
IMPORTANT: Use the MINIMUM number of tables needed.
If ALL required columns exist in ONE table, do NOT use JOIN.
Only JOIN tables when the question requires data from
multiple tables.
Use the exact column values shown above when filtering.
Question:
{question}
(English: {english_hint})
Generate the SQL query. Output ONLY SQL inside a code block:
‘‘‘sql‘‘‘
The slots render as follows. {schema} is the M-Schema representation: one block per table, headed by the table name in bracket delimiters followed by its native gloss, [table_name] (<native gloss>), followed by one line per column of the form (column_name*, TYPE, <native description>) (the asterisk marks primary keys) and foreign-key lines -> FK: column -> table.column. {value_hints} is headed “Sample column values (use these EXACT values in your SQL):” with lines table.column: v1 | v2 | … (≤4 per column, question-aware selection). {matched_values} is headed “Detected values in question (use EXACT spelling in WHERE):” (top-5 BGE-M3 matches at cosine ≥0.40; emitted only for questions containing textual entities). {column_hints} is headed “Likely relevant columns (prefer these):” with lines * table.column –<native description> (top- at ). {sample_rows} is headed “Sample data (actual rows from database):” with up to three rows (up to six columns each) for up to three linked tables. {question} is the question in the target language, and the English hint line carries the cached translation.
Per-language instantiation changes exactly three things: the <Language> word in the system message, the native-language glosses and descriptions inside {schema} and {column_hints} (Arabic: generated automatically with Google Translate; Japanese/Vietnamese: taken from the MultiSpider schema translations, with missing entries filled by Google Translate; Section 4.4), and the question/hint pair. For the English reference run, the descriptions are empty, and the hint is the identity; for the Llama-3.1 run, the template is unchanged, and only the chat-formatting wrapper follows the base model’s template. During training, the same template is used with per-feature dropout (Table 2); at inference, all components are active.
Appendix B. SQL Normalization Rules
The four gold-blind rules of Section 4.2 are applied identically to predicted and gold SQL before Exact Set Match comparison. Each rule carries structural guards that restrict it to the shapes under which the two forms yield the same ESM verdict, and every ESM verdict it flips was additionally verified as execution-correct by executing the original, unrewritten prediction (Section 4.2). The rewritten strings are never executed, and we do not claim that they are semantically equivalent executable SQL in general. Three limitations of the rewrites as executable SQL are stated explicitly. First, Boolean precedence: Rules 1 and 4 emit OR- and AND-chains without parentheses, so when the rewritten predicate is embedded in a WHERE clause with other connectors, the executable meaning can change, because SQLite gives AND higher precedence than OR (e.g., a = 1 AND b IN (‘x’,‘y’) becomes a = 1 AND b = ‘x’ OR b = ‘y’). The original Spider evaluator compares WHERE condition units without representing Boolean grouping or precedence and separately compares the set of AND/OR connector types. Therefore, it does not capture the executable precedence distinctions introduced by the unparenthesized rewrite. Because the same canonicalization is applied to predicted and gold SQL, the connector sets are compared after the same rewrite on both sides. Second, duplicate rows: EXCEPT removes duplicates whereas NOT IN filtering does not, so Rule 2 preserves only the set of distinct rows; the ESM comparison is unaffected because it disables DISTINCT, and the two forms coincide on the shapes admitted by the guard up to duplicates. Third, the NULL and empty-table cases: NOT IN and EXCEPT diverge when the compared column contains NULLs, and MIN/MAX and ORDER BY …LIMIT 1 diverge under NULLs (an aggregate ignores them, whereas SQLite’s ascending ORDER BY places them first) and on an empty table (the aggregate returns one NULL row, the ordered query returns no row). The execution check guards against these cases empirically on the three development sets. Rule 1 is of a different kind: the original Spider ESM parser cannot read a literal IN-list at all (it expects a closing parenthesis after the first value), so every prediction containing one scores zero under raw ESM as a parse failure; Rule 1 rewrites the list into the parseable OR-chain, and the evaluator’s ESM compares the resulting conditions as a set. Neither Rule 1 nor Rule 4 emits parentheses, for the same reason: a parenthesized WHERE condition is likewise unparseable by the original Spider ESM evaluator, whose exact-match comparison ignores connector precedence.
Rule 1: literal IN-lists → OR-chains. Applies only when the list contains quoted literals, never subqueries; the negated form NOT IN becomes an AND-chain of inequalities.
WHERE city IN (‘Paris’, ‘Rome’) → WHERE city = ‘Paris’ OR city = ‘Rome’; WHERE city NOT IN (‘Paris’, ‘Rome’) → WHERE city != ‘Paris’ AND city != ‘Rome’
Rule 2: NOT IN (SELECT …) → EXCEPT. Applies only to queries with at most two SELECTs and no existing EXCEPT, and only when the outer SELECT list is exactly the NOT IN column and the subquery projects exactly one column, which is the condition under which filtering on the column and set subtraction on the projection coincide up to duplicate rows (see above).
SELECT name FROM t WHERE name NOT IN (SELECT name FROM s) → SELECT name FROM t EXCEPT SELECT name FROM s; SELECT name FROM t WHERE id NOT IN (SELECT id FROM s) is rejected (projection differs from the NOT IN column)
Rule 3: MIN/MAX → ORDER BY …LIMIT 1. Applies only to single-SELECT queries without an existing ORDER BY, without GROUP BY or HAVING, and containing exactly one aggregate (so SELECT MIN(age), MAX(age) and grouped aggregates are rejected).
SELECT MIN(age) FROM t → SELECT age FROM t ORDER BY age ASC LIMIT 1
Rule 4: BETWEEN → explicit range predicates.
x BETWEEN a AND b → x >= a AND x <= b; x NOT BETWEEN a AND b → x < a OR x > b
A fifth candidate rule, integer-threshold rewriting (>N → >= N+1), was evaluated under the same protocol and rejected: because Spider ESM disables value comparison, the rewrite erased genuine boundary differences (e.g., predicted > 5 vs. gold >= 5) and produced 12 execution-incorrect verdict flips on Japanese. We report it as a negative result demonstrating that the validation protocol constrains the rule set.
Every rule is a pure string-to-string procedure with explicit structural guards and returns, besides the (possibly unchanged) query, a status in {no_pattern, rejected, applied}: whether its trigger pattern occurs, whether a guard blocked the rewrite, or whether the query was rewritten; these statuses are the “considered/rejected/rewritten” counts of Table A1. The rules are applied sequentially in the fixed order of Rules 1–4, and a rule is recorded as applied only if it changed the query. The gold-blind property holds by construction: Canonicalize is the same procedure on both sides of every comparison, and the original Spider ESM evaluator (evaluation.py, with its default DISABLE_VALUE and DISABLE_DISTINCT settings) is then invoked unmodified on the two canonical strings. The rejected integer-threshold rule is deliberately absent from the rule list. Pattern matching is performed case-insensitively; the exact regular expressions are in the released evaluation script.
| Algorithm A1 Pseudocode of the normalization implementation. |
| Input : gold SQL g, predicted SQL p, database identifier d |
| Output: normalized ESM verdict in {0,1}; per rule, a status in {no_pattern, rejected, applied} for g and for p |
| procedure Clean(q) |
| collapse runs of whitespace to one space; strip a trailing ‘;’ |
| return q |
| procedure InToOr(q) -- Rule 1 |
| for each occurrence col [NOT] IN ( list ) in q do |
| if list contains SELECT or list has no quoted literal then |
| mark rejected; continue -- guard: subquery or non-literal list |
| v_1 .. v_k <- the quoted literals in list |
| if NOT is present then replace by col != ‘v_1’ AND … AND col != ‘v_k’ |
| else replace by col = ‘v_1’ OR … OR col = ‘v_k’ |
| -- no parentheses: the Spider ESM parser cannot read a parenthesized WHERE condition; |
| -- the rewritten string is never executed; Spider ESM does not represent Boolean grouping/precedence, |
| -- although it separately compares the set of AND/OR connector types |
| return q |
| procedure NotInToExcept(q) -- Rule 2 |
| if q has no NOT IN then return q -- no_pattern |
| if q already has EXCEPT, or q has more than two SELECTs then reject |
| if q does not have the shape |
| SELECT [DISTINCT] sel FROM tbls WHERE other col NOT IN ( SELECT [DISTINCT] isel FROM … ) then reject |
| if sel is not exactly one plain column equal (ignoring alias) to col then reject -- guard: projection = NOT IN column |
| if isel is not exactly one plain column then reject -- guard: single-column subquery |
| inner <- the subquery text inside the parentheses (SELECT [DISTINCT] isel FROM …) |
| other <- other with a dangling trailing AND / OR removed |
| if other is empty then return SELECT sel FROM tbls EXCEPT inner |
| else return SELECT sel FROM tbls WHERE other EXCEPT inner |
| procedure AggToOrderBy(q) -- Rule 3 |
| if q has neither MIN( nor MAX( then return q -- no_pattern |
| if q has ORDER BY, or more than one SELECT, |
| or GROUP BY, or HAVING, or more than one aggregate then reject -- guards |
| for each (agg, dir) in [ (MIN, ASC), (MAX, DESC) ] do |
| if q contains agg( col ) for a single column col then |
| replace agg( col ) by col |
| return q ORDER BY col dir LIMIT 1 |
| reject -- e.g., MIN(*) or MIN(expression) |
| procedure BetweenToAnd(q) -- Rule 4 |
| if q has no BETWEEN then return q -- no_pattern |
| for each occurrence x NOT BETWEEN a AND b in q do -- negated form first |
| replace it by x < a OR x > b -- no parentheses (see Rule 1) |
| for each occurrence x BETWEEN a AND b in q do |
| replace it by x >= a AND x <= b |
| return q |
| Rules <- [ InToOr, NotInToExcept, AggToOrderBy, BetweenToAnd ] |
| -- fixed order; the rejected rule > N -> >= N+1 is NOT in Rules |
| procedure Canonicalize(q) |
| applied <- [ ]; status <- { }; s <- Clean(q) |
| for each rule r in Rules do |
| (s’, status[r]) <- r(s) |
| if s’ != s then status[r] <- applied; append r to applied; s <- s’ -- record only real changes |
| else if status[r] = applied then status[r] <- rejected -- a no-op rewrite is not an application |
| return Clean(s), applied, status |
| procedure NormalizedEsm(g, p, d) |
| (g’, R_g, S_g) <- Canonicalize(g) -- same procedure on both sides |
| (p’, R_p, S_p) <- Canonicalize(p) |
| return SpiderEsm(g’, p’, d), R_g, R_p, S_g, S_p -- unmodified Spider evaluation.py |
| Validation protocol (per language, N = 1034 development samples) |
| for i = 1 .. N do |
| esmRaw[i] <- SpiderEsm(Clean(g_i), Clean(p_i), d_i) |
| esmNorm[i] <- the verdict component of NormalizedEsm(g_i, p_i, d_i) |
| flips <- { i : esmNorm[i] = 1 and esmRaw[i] = 0 } |
| verify for all i in flips : EX[i] = true -- every flip is execution-correct |
| verify there is no i with esmNorm[i] = 0 and esmRaw[i] = 1 -- no correct verdict is lost |
| verify no gold g_i’ fails to parse and no parseable p_i becomes unparseable |
Table A1.
Per-rule application and verdict-flip counts of the canonical normalization on the unified-harness full-system predictions (1034 development samples per language). For each rule and side, “c/r/w” gives the number of queries in which the rule’s trigger pattern occurs (considered), of these the number blocked by a structural guard (rejected), and the number actually rewritten. For Rule 1, the trigger pattern is any [NOT] IN (…), so subquery lists count as considered and rejected. “Flips” counts the ESM verdicts turned from incorrect to correct in which the rule participated. The gold-side counts are identical across the three languages, as they must be for shared gold SQL; this identity is a built-in symmetry check of the gold-blind protocol.
Appendix C. Computational Cost
Table A2.
Computational cost of the QLoRA fine-tuning and inference pipeline for each target language. All runs use an identical configuration (Qwen2.5-Coder-7B-Instruct, LoRA rank 64/ = 128, learning rate 5 × 10−5 with cosine schedule, 3 epochs, effective batch size 24, maximum sequence length 4096, bf16) and comprise 1029 optimizer steps. Fine-tuning was performed on a single NVIDIA (Santa Clara, CA, USA) A100 80 GB GPU and inference on a single NVIDIA L4 24 GB GPU. Inference times are normalized to the 1034 development samples reported in Section 5 to permit direct cross-language comparison.
References
- Yu, T.; Zhang, R.; Yang, K.; Yasunaga, M.; Wang, D.; Li, Z.; Ma, J.; Li, I.; Yao, Q.; Roman, S.; et al. Spider: A Large-Scale Human-Labeled Dataset for Complex and Cross-Domain Semantic Parsing and Text-to-SQL Task. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing; Association for Computational Linguistics: Stroudsburg, PA, USA, 2018; pp. 3911–3921. [Google Scholar]
- Gao, D.; Wang, H.; Li, Y.; Sun, X.; Qian, Y.; Ding, B.; Zhou, J. Text-to-sql empowered by large language models: A benchmark evaluation. arXiv 2023, arXiv:2308.15363. [Google Scholar]
- Pourreza, M.; Rafiei, D. DIN-SQL: Decomposed In-Context Learning of Text-to-SQL with Self-Correction. In Proceedings of the NeurIPS, New Orleans, LA, USA, 10–16 December 2023. [Google Scholar]
- Talaei, S.; Pourreza, M.; Chang, Y.C.; Mirhoseini, A.; Saberi, A. Chess: Contextual harnessing for efficient sql synthesis. arXiv 2024, arXiv:2405.16755. [Google Scholar]
- Li, H.; Zhang, J.; Li, C.; Chen, H. Resdsql: Decoupling schema linking and skeleton parsing for text-to-sql. Proc. Aaai Conf. Artif. Intell. 2023, 37, 13067–13075. [Google Scholar] [CrossRef] [Scilit]
- Lei, F.; Chen, J.; Ye, Y.; Cao, R.; Shin, D.; Su, H.; Suo, Z.; Gao, H.; Hu, W.; Yin, P.; et al. Spider 2.0: Evaluating Language Models on Real-World Enterprise Text-to-SQL Workflows. In Proceedings of the ICLR, Singapore, 24–28 April 2025. [Google Scholar]
- Li, J.; Hui, B.; Qu, G.; Yang, J.; Li, B.; Li, B.; Wang, B.; Qin, B.; Geng, R.; Huo, N.; et al. Can llm already serve as a database interface? A big bench for large-scale database grounded text-to-sqls. Adv. Neural Inf. Process. Syst. 2023, 36, 42330–42357. [Google Scholar] [CrossRef] [Scilit]
- Zhong, V.; Xiong, C.; Socher, R. Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learning. arXiv 2017, arXiv:1709.00103. [Google Scholar]
- Li, H.; Wu, S.; Zhang, X.; Huang, X.; Zhang, J.; Jiang, F.; Wang, S.; Zhang, T.; Chen, J.; Shi, R.; et al. Omnisql: Synthesizing high-quality text-to-sql data at scale. arXiv 2025, arXiv:2503.02240. [Google Scholar]
- Yale LILY Lab. Spider 1.0: Yale Semantic Parsing and Text-to-SQL Challenge—Leaderboard (Execution with Values). 2023. Available online: https://yale-lily.github.io/spider (accessed on 21 September 2026).
- Almohaimeed, S.; Almohaimeed, S.; Al Ghanim, M.; Wang, L. Ar-spider: Text-to-SQL in Arabic. In Proceedings of the 39th ACM/SIGAPP Symposium on Applied Computing; Association for Computing Machinery: New York, NY, USA, 2024; pp. 1024–1030. [Google Scholar]
- Dou, L.; Gao, Y.; Pan, M.; Wang, D.; Che, W.; Zhan, D.; Lou, J.G. MultiSpider: Towards Benchmarking Multilingual Text-to-SQL Semantic Parsing. Proc. AAAI Conf. Artif. Intell. 2023, 37, 12745–12753. [Google Scholar] [CrossRef] [Scilit]
- Pham, K.T.; Nguyen, T.H.; Jo, J.; Nguyen, Q.V.H.; Nguyen, T.T. Multilingual text-to-sql: Benchmarking the limits of language models with collaborative language agents. In Proceedings of the Australasian Database Conference; Springer: Berlin/Heidelberg, Germany, 2025; pp. 108–123. [Google Scholar]
- Kanburoglu, A.B.; Tek, F.B. Turspider: A turkish text-to-sql dataset and llm-based study. IEEE Access 2024, 12, 169379–169387. [Google Scholar] [CrossRef] [Scilit]
- Kattamuri, A.; Prasad, I.; Malhotra, M.; Vats, A.; Raja, R.; Lie, A. Bridging the Semantic Gap: Contrastive Rewards for Multilingual Text-to-SQL with GRPO. arXiv 2025, arXiv:2510.13827. [Google Scholar]
- Zhong, R.; Yu, T.; Klein, D. Semantic Evaluation for Text-to-SQL with Distilled Test Suites. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP); Association for Computational Linguistics: Stroudsburg, PA, USA, 2020. [Google Scholar]
- Zhu, X.; Li, Q.; Cui, L.; Liu, Y. Large language model enhanced text-to-sql generation: A survey. arXiv 2024, arXiv:2410.06011. [Google Scholar]
- Wang, B.; Shin, R.; Liu, X.; Polozov, O.; Richardson, M. RAT-SQL: Relation-Aware Schema Encoding and Linking for Text-to-SQL Parsers. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics; Association for Computational Linguistics: Stroudsburg, PA, USA, 2020. [Google Scholar]
- Cao, R.; Chen, L.; Chen, Z.; Zhao, Y.; Zhu, S.; Yu, K. LGESQL: Line Graph Enhanced Text-to-SQL Model with Mixed Local and Non-Local Relations. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing (Volume 1: Long Papers); Association for Computational Linguistics: Stroudsburg, PA, USA, 2021. [Google Scholar]
- Hui, B.; Geng, R.; Wang, L.; Qin, B.; Li, Y.; Li, B.; Sun, J.; Li, Y. S2sql: Injecting syntax to question-schema interaction graph encoder for text-to-sql parsers. In Proceedings of the Findings of the Association for Computational Linguistics: ACL 2022; Association for Computational Linguistics: Stroudsburg, PA, USA, 2022; pp. 1254–1262. [Google Scholar]
- Li, H.; Zhang, J.; Liu, H.; Fan, J.; Zhang, X.; Zhu, J.; Wei, R.; Pan, H.; Li, C.; Chen, H. Codes: Towards building open-source language models for text-to-sql. Proc. ACM Manag. Data 2024, 2, 1–28. [Google Scholar] [CrossRef] [Scilit]
- Pourreza, M.; Rafiei, D. Dts-sql: Decomposed text-to-sql with small large language models. In Proceedings of the Findings of the Association for Computational Linguistics: EMNLP 2024; Association for Computational Linguistics: Stroudsburg, PA, USA, 2024; pp. 8212–8220. [Google Scholar]
- Zhai, B.; Xu, C.; He, Y.; Yao, Z. Optimizing reasoning for text-to-sql with execution feedback. In Proceedings of the Findings of the Association for Computational Linguistics: ACL 2025; Association for Computational Linguistics: Stroudsburg, PA, USA, 2025; pp. 19206–19218. [Google Scholar]
- Databricks. Improving Text2SQL Performance with Ease on Databricks. 2024. Available online: https://www.databricks.com/blog/improving-text2sql-performance-ease-databricks (accessed on 21 September 2026).
- Yao, Z.; Sun, G.; Borchmann, Ł.; Shen, Z.; Deng, M.; Zhai, B.; Zhang, H.; Li, A.; He, Y. Arctic-text2sql-r1: Simple rewards, strong reasoning in text-to-sql. In Proceedings of the Findings of the Association for Computational Linguistics: ACL 2026; Association for Computational Linguistics: Stroudsburg, PA, USA, 2026; pp. 26966–26995. [Google Scholar]
- Chen, Z.; Chen, L.; Zhao, Y.; Cao, R.; Xu, Z.; Zhu, S.; Yu, K. ShadowGNN: Graph Projection Neural Network for Text-to-SQL Parser. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies; Association for Computational Linguistics: Stroudsburg, PA, USA, 2021. [Google Scholar]
- Lin, X.V.; Socher, R.; Xiong, C. Bridging Textual and Tabular Data for Cross-Domain Text-to-SQL Semantic Parsing. In Proceedings of the Findings of the Association for Computational Linguistics: EMNLP 2020; Association for Computational Linguistics: Stroudsburg, PA, USA, 2020. [Google Scholar]
- Rubin, O.; Berant, J. SmBoP: Semi-autoregressive Bottom-up Semantic Parsing. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies; Association for Computational Linguistics: Stroudsburg, PA, USA, 2021. [Google Scholar]
- Wang, X.; Wei, J.; Schuurmans, D.; Le, Q.; Chi, E.; Narang, S.; Chowdhery, A.; Zhou, D. Self-Consistency Improves Chain of Thought Reasoning in Language Models. arXiv 2023, arXiv:2203.11171. [Google Scholar]
- Wang, B.; Ren, C.; Yang, J.; Liang, X.; Bai, J.; Chai, L.; Yan, Z.; Zhang, Q.W.; Yin, D.; Sun, X.; et al. Mac-sql: A multi-agent collaborative framework for text-to-sql. In Proceedings of the 31st International Conference on Computational Linguistics; Association for Computational Linguistics: Stroudsburg, PA, USA, 2025; pp. 540–557. [Google Scholar]
- Li, Z.; Wang, X.; Zhao, J.; Yang, S.; Du, G.; Hu, X.; Zhang, B.; Ye, Y.; Li, Z.; Mao, H.; et al. Pet-sql: A prompt-enhanced two-round refinement of text-to-sql with cross-consistency. In Proceedings of the International Conference on Database Systems for Advanced Applications; Springer: Singapore, 2025; pp. 193–208. [Google Scholar]
- Min, Q.; Shi, Y.; Zhang, Y. A Pilot Study for Chinese SQL Semantic Parsing. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing (EMNLP-IJCNLP); Association for Computational Linguistics: Stroudsburg, PA, USA, 2019. [Google Scholar]
- Wang, L.; Zhang, A.; Wu, K.; Sun, K.; Li, Z.; Wu, H.; Zhang, M.; Wang, H. DuSQL: A large-scale and pragmatic Chinese text-to-SQL dataset. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP); Association for Computational Linguistics: Stroudsburg, PA, USA, 2020; pp. 6923–6935. [Google Scholar]
- Nguyen, A.T.; Dao, M.H.; Nguyen, D.Q. A pilot study of text-to-SQL semantic parsing for Vietnamese. In Proceedings of the Findings of the Association for Computational Linguistics: EMNLP 2020; Association for Computational Linguistics: Stroudsburg, PA, USA, 2020; pp. 4079–4085. [Google Scholar]
- Almohaimeed, S.; Alsofyani, M.; Almohaimeed, S.; Al Ghanim, M.; Wang, L. Prompt Engineering Techniques for Context-dependent Text-to-SQL in Arabic. In Proceedings of the 2025 International Joint Conference on Neural Networks (IJCNN); IEEE: New York, NY, USA, 2025; pp. 1–9. [Google Scholar]
- Heakl, A.; Mohamed, Y.; Zaky, A.B. Araspider: Democratizing arabic-to-sql. arXiv 2024, arXiv:2402.07448. [Google Scholar]
- Bakshandaeva, D.; Somov, O.; Dmitrieva, E.; Davydova, V.; Tutubalina, E. PAUQ: Text-to-SQL in Russian. In Proceedings of the Findings of the Association for Computational Linguistics: EMNLP 2022; Association for Computational Linguistics: Stroudsburg, PA, USA, 2022; pp. 2355–2376. [Google Scholar]
- Jose, M.A.; Cozman, F.G. mRAT-SQL+GAP: A Portuguese Text-to-SQL Transformer. In Proceedings of the BRACIS; Springer: Cham, Switzerland, 2021; pp. 511–525. [Google Scholar]
- Devlin, J.; Chang, M.W.; Lee, K.; Toutanova, K. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers); Association for Computational Linguistics: Stroudsburg, PA, USA, 2019. [Google Scholar]
- Conneau, A.; Khandelwal, K.; Goyal, N.; Chaudhary, V.; Wenzek, G.; Guzmán, F.; Grave, E.; Ott, M.; Zettlemoyer, L.; Stoyanov, V. Unsupervised Cross-lingual Representation Learning at Scale. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics; Association for Computational Linguistics: Stroudsburg, PA, USA, 2020. [Google Scholar]
- Chen, J.; Xiao, S.; Zhang, P.; Luo, K.; Lian, D.; Liu, Z. Bge m3-embedding: Multi-lingual, multi-functionality, multi-granularity text embeddings through self-knowledge distillation. arXiv 2024, arXiv:2402.03216. [Google Scholar]
- Dettmers, T.; Pagnoni, A.; Holtzman, A.; Zettlemoyer, L. Qlora: Efficient finetuning of quantized llms. Adv. Neural Inf. Process. Syst. 2023, 36, 10088–10115. [Google Scholar] [CrossRef] [Scilit]
- Hu, E.J.; Shen, Y.; Wallis, P.; Allen-Zhu, Z.; Li, Y.; Wang, S.; Wang, L.; Chen, W. LoRA: Low-Rank Adaptation of Large Language Models. arXiv 2022, arXiv:2106.09685. [Google Scholar]
- Hui, B.; Yang, J.; Cui, Z.; Yang, J.; Liu, D.; Zhang, L.; Liu, T.; Zhang, J.; Yu, B.; Lu, K.; et al. Qwen2. 5-coder technical report. arXiv 2024, arXiv:2409.12186. [Google Scholar]
- Qwen Team. Qwen2.5: A Party of Foundation Models. 2024. Available online: https://qwenlm.github.io/blog/qwen2.5/ (accessed on 21 September 2026).
- Gao, Y.; Liu, Y.; Li, X.; Shi, X.; Zhu, Y.; Wang, Y.; Li, S.; Li, W.; Hong, Y.; Luo, Z.; et al. A preview of xiyan-sql: A multi-generator ensemble framework for text-to-sql. arXiv 2024, arXiv:2411.08599. [Google Scholar]
- Pfeiffer, J.; Vulić, I.; Gurevych, I.; Ruder, S. Mad-x: An adapter-based framework for multi-task cross-lingual transfer. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP); Association for Computational Linguistics: Stroudsburg, PA, USA, 2020; pp. 7654–7673. [Google Scholar]
- Grattafiori, A.; Dubey, A.; Jauhri, A.; Pandey, A.; Kadian, A.; Al-Dahle, A.; Letman, A.; Mathur, A.; Schelten, A.; Vaughan, A.; et al. The Llama 3 Herd of Models. arXiv 2024, arXiv:2407.21783. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.





