Back to search

University of Alberta

SynthSQL: a framework for generating synthetic text-to-SQL benchmarks with tunable query difficulty

Abstract

dc:description.abstract

Evaluating LLMs on tasks such as text-to-SQL is challenging because strong performance might reflect genuine reasoning or merely familiarity with training-set patterns. To address this, we introduce SynthSQL: a framework for generating synthetic text-to-SQL benchmarks with tunable query difficulty, allowing precise control over the structural and semantic characteristics of synthesized SQL. By calibrating SQL query complexity from easy to hard, SynthSQL offers a more rigorous and flexible means of evaluating LLM-based text-to-SQL systems. SynthSQL has both a query generator and a natural language conversion module that produces a question that can be answered by the SQL it generated. Our experiments on the SynthSQL benchmark show that state-of-the-art methods (e.g., DIN-SQL and DAIL-SQL) underperform the chain-of-thought (CoT) prompting approach we introduced—particularly as query complexity increases. We attribute this gap to two factors: limitations of our natural language question generator and the methods’ difficulty generalizing to SynthSQL’s more challenging, novel queries. To further validate the dataset’s quality and difficulty calibration, we plan a human evaluation study. These findings underscore the need for benchmarks that span a broader range of complexities than existing public datasets, enabling more accurate assessments of LLMs’ true text-to-SQL capabilities.

Degree

thesis:*
Name thesis:degree_name
Master of Science
Level thesis:degree_level
Master's
Grantor
University of Alberta
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Khalifat, Negin
Advisor dc:contributor.advisor
  • Barbosa, Denilson (Computing Science)

Subjects

dc:subject × 3

Rights

dc:rights
Statement dc:rights
  • This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law.
Language dc:language.iso
en

Identifiers

dc:identifier.*
DOI dc:identifier.doi
https://doi.org/10.7939/83398

Chain of custody

source
Harvested from
University of Alberta
Base URL
era.library.ualberta.ca/oai
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Khalifat, Negin. SynthSQL: a framework for generating synthetic text-to-SQL benchmarks with tunable query difficulty. Master's thesis, University of Alberta, 2025. https://doi.org/10.7939/83398