Idea · Sep 27, 2026
Clause-Anchored LLM Hints for SQL DDL/DML: A Mutation Benchmark for Localized, Solution-Free Feedback on State-Changing Statements
Builds a synthetic benchmark of buggy CREATE/INSERT/UPDATE/DELETE submissions and tests whether anchoring LLM hints to a clause-driven grader's diagnosis makes feedback more accurate, better localized, and less likely to leak the solution than either the grader or the LLM alone.
What it would do
Hiemstra and colleagues show that clause-driven analysis can grade SQL DDL/DML statements, which produce no result table, and emit roughly one targeted suggestion per error; but their messages are terse and describe the syntactic difference, not the misconception behind it. This project builds a mutation benchmark by applying operators derived from the Taipalus et al. SQL error taxonomy and the Miedema et al. misconception list to reference DDL/DML solutions, then executes each mutant against a generated database to record the resulting state difference (schema diff, row-level delta). Three feedback conditions are compared offline: clause-driven messages alone, an unanchored LLM hint, and a hybrid in which the LLM receives the clause diagnosis plus the minimal state delta and must explain the likely misconception without revealing the fix. Evaluation uses automated metrics (clause localization accuracy, misconception label agreement with the mutation's ground truth, solution-leakage rate via SQL fragment matching) plus a small expert rating pass. The work directly instantiates the report's DT-1 (explanatory feedback over an existing autograder) and DT-2 (misconception-grounded student modeling) agenda in a domain, state-changing SQL, that LLM feedback research has largely ignored.