SQLucid: Grounding Natural Language Database Queries with Interactive Explanations

Yuan Tian, Jonathan K. Kummerfeld, Toby Jia-Jun Li, Tianyi Zhang
9/10/2024
cs.HCcs.CL

Official code: magic-YuanTian/SQLucid (7 stars, Apache-2.0, last commit 2025-11-07).

Abstract

Though recent advances in machine learning have led to significant improvements in natural language interfaces for databases, the accuracy and reliability of these systems remain limited, especially in high-stakes domains. This paper introduces SQLucid, a novel user interface that bridges the gap between non-expert users and complex database querying processes. SQLucid addresses existing limitations by integrating visual correspondence, intermediate query results, and editable step-by-step SQL explanations in natural language to facilitate user understanding and engagement. This unique blend of features empowers users to understand and refine SQL queries easily and precisely. Two user studies and one quantitative experiment were conducted to validate SQLucid's effectiveness, showing significant improvement in task completion accuracy and user confidence compared to existing interfaces. Our code is available at https://github.com/magic-YuanTian/SQLucid.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

The repo for SQLucid

72CSS, HTMLJul 13, 202411 months agoApache-2.0

Similar Papers

Cite this paper

@article{tian2024sqlucid,
  title  = {SQLucid: Grounding Natural Language Database Queries with Interactive Explanations},
  author = {Yuan Tian and Jonathan K. Kummerfeld and Toby Jia-Jun Li and Tianyi Zhang},
  year   = {2024},
  eprint = {2409.06178},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.06178v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.06178.svg)](https://codeofpaper.com/paper/2409.06178)

Discussion