Manuscript Offprint

arXiv:2610.03625

FALCON: A Model and Dataset Agnostic Framework for Synthetic Data Generation for NL2SQL Pairs

Darian Lee, Shannon Rumsey, Jack St. Clair, Xinyi Tang, Aditya Bansal, Yuanming Shi

Abstract

Relational databases are among the most widely deployed forms of structured knowledge, and natural language access to them requires grounding language onto schema entities and relations while handling the ambiguity inherent in how people phrase requests. Existing synthetic NL-to-SQL data generation methods largely ignore this ambiguity and produce oversimplified queries that fail to prepare models for the complexity of real-world structured knowledge access. We present FALCON, a framework that generates realistic, ambiguity-aware NL-to-SQL data matching the complexity of challenging real-world benchmarks, at low cost using compact open models. Our approach combines reserved-word SQL seeding and persona-based prompting to generate structurally complex queries, while alignment-based filtering preserves difficulty by distinguishing genuinely incorrect examples from complex but valid queries. Human evaluation confirms consistent high quality across model sizes, and our generated data exceeds existing benchmarks in both SQL complexity and natural language richness. Difficulty-stratified analysis shows models trained on FALCON data increasingly outperform baseline-trained models as query complexity increases, validating our pipeline's success in generating challenging training data. When combined with a small proportion of existing benchmark data, mixed training recovers performance on simpler queries while preserving these advantages on complex ones. The model- and database-agnostic design enables organizations to generate high-complexity NL-to-SQL training data locally without external APIs.

1 Introduction

As large language model (LLM) capabilities advance, natural language interfaces for databases are becoming increasingly accessible to non-SQL experts, making NL-to-SQL parsing an increasingly consequential knowledge-grounding task (Yang et al., 2024; Dai et al., 2025; Yu et al., 2018; Li et al., 2023; Gao et al., 2024; Li and Jagadish, 2014). This requires resolving natural language references onto specific schema entities and relations, much as entity linking and relation extraction do for other forms of knowledge base construction. In practice, this grounding is complicated by real-world database users, who employ diverse linguistic styles, pose ambiguous requests, and work with complex SQL operations that existing benchmarks underrepresent (Li et al., 2025; Saparina and Lapata, 2024; Li et al., 2023; Floratou et al., 2024).

While challenging datasets such as BIRD (Li et al., 2023) have driven progress toward more realistic benchmarks, they remain human-authored, limiting scalability and adaptability to new domains. Existing synthetic data generation approaches face a critical trade-off: they either rely on expensive frontier model APIs, making them cost-prohibitive for many organizations, or produce oversimplified queries that fail to capture production-level complexity (Lupidi et al., 2025; Guo et al., 2025).

We introduce FALCON, a Framework for synthetic Ambiguity-aware Linguistically-diverse Cost-efficient Optimized NL-to-SQL data generation. FALCON addresses three core challenges: (1) generating BIRD benchmark-level query complexity, (2) capturing realistic linguistic diversity including ambiguity, and (3) achieving low cost using only compact open models (e.g. Qwen-2.5-3B). The framework is designed to complement existing datasets by targeting the complex end of the query distribution where existing resources fall short, and is model- and database-agnostic, allowing organizations to generate domain-specific training data for their internal schemas without sending sensitive information to external APIs.

∗^{*}Equal contribution.

†^{\dagger}Work performed while at Adobe.

References (27)