Data Generation for Testing and Grading SQL Queries
Not on the map. Why?
Abstract (arXiv)
Correctness of SQL queries is usually tested by executing the queries on one or more datasets. Erroneous queries are often the results of small changes, or mutations of the correct query. A mutation Q' of a query Q is killed by a dataset D if Q(D) neq Q'(D). Earlier work on the XData system showed how to generate datasets that kill all mutations in a class of mutations that included join type and comparison operation mutations. In this paper, we extend the XData data generation techniques to handle a wider variety of SQL queries and a much larger class of mutations. We have also built a system for grading SQL queries using the datasets generated by XData. We present a study of the effectiveness of the datasets generated by the extended XData approach, using a variety of queries including queries submitted by students as part of a database course. We show that the XData datasets outperform predefined datasets as well as manual grading done earlier by teaching assistants, while also avoiding the drudgery of manual correction. Thus, we believe that our techniques will be of great value to database course instructors and TAs, particularly to those of MOOCs. It will also be valuable to database application developers and testers for testing SQL queries.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). First posted on arXiv 25 Nov 2014.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 1; 2023: 1; 2024: 1; 2025: 3; 2026: 1.
7 papers.
- 2023Real-time Workload Pattern Analysis for Large-scale Cloud Databasescited by 4
- 2025SpotIt: Evaluating Text-to-SQL Evaluation with Formal Verificationcited by 3
- 2024Can the Rookies Cut the Tough Cookie? Exploring the Use of LLMs for SQL Equivalence Checkingcited by 2
- 2025High-Fidelity And Complex Test Data Generation For Google SQL Code Generation Servicescited by 1
- 2026EXPO-SQL: Execution-based Clause-level Policy Optimization for Text-to-SQLcited by 1
- 2022Performance Evaluation of Query Plan Recommendation with Apache Hadoop and Apache Sparkcited by 0
- 2025Polygon: Symbolic Reasoning for SQL using Conflict-Driven Under-Approximation Searchcited by 0
- 2026EXPO-SQL: Execution-based Clause-level Policy Optimization for Text-to-SQL29 Apr 2026
- 2025SpotIt: Evaluating Text-to-SQL Evaluation with Formal Verification30 Oct 2025
- 2025High-Fidelity And Complex Test Data Generation For Google SQL Code Generation Services24 Apr 2025
- 2025Polygon: Symbolic Reasoning for SQL using Conflict-Driven Under-Approximation Search9 Apr 2025
- 2024Can the Rookies Cut the Tough Cookie? Exploring the Use of LLMs for SQL Equivalence Checking7 Dec 2024
- 2023Real-time Workload Pattern Analysis for Large-scale Cloud Databases5 Jul 2023
- 2022Performance Evaluation of Query Plan Recommendation with Apache Hadoop and Apache Spark17 Sep 2022