SQL learners often require targeted practice to avoid recurring syntactic and semantic errors. However, generating personalized SQL exercises remains a challenging and time-consuming task. While Large Language Models (LLMs) enable scalable automatic content generation, they provide limited guarantees on the correctness and consistency of the produced exercises. This paper presents a personalized exercise generation component for LensQL, a framework for SQL learning centered on student error analysis. The proposed component automatically generates SQL assignments and reference solutions by combining LLM-based generation with a validation layer enforcing structural and pedagogical constraints at both schema and query levels.

Personalized SQL Exercise Generation with Large Language Models and Constraint-Based Validation

Davide Ponzini;Elisa Calza;Barbara Catania;Giovanna Guerrini
2027-01-01

Abstract

SQL learners often require targeted practice to avoid recurring syntactic and semantic errors. However, generating personalized SQL exercises remains a challenging and time-consuming task. While Large Language Models (LLMs) enable scalable automatic content generation, they provide limited guarantees on the correctness and consistency of the produced exercises. This paper presents a personalized exercise generation component for LensQL, a framework for SQL learning centered on student error analysis. The proposed component automatically generates SQL assignments and reference solutions by combining LLM-based generation with a validation layer enforcing structural and pedagogical constraints at both schema and query levels.
2027
9783032398192
9783032398208
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11567/1324257
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 0
  • ???jsp.display-item.citation.isi??? ND
social impact