Lune

SIGMOD2020顶会

QueryVis: Logic-based Diagrams help Users Understand Complicated SQL Queries Faster

Aristotelis Leventidis, Jiahui Zhang, Cody Dunne, Wolfgang Gatterbauer, H. V. Jagadish, Mirek Riedewald

摘要

Understanding the meaning of existing SQL queries is critical for code maintenance and reuse. Yet SQL can be hard to read, even for expert users or the original creator of a query. We conjecture that it is possible to capture the logical intent of queries in automatically-generated visual diagrams that can help users understand the meaning of queries faster and more accurately than SQL text alone. We present initial steps in that direction with visual diagrams that are based on the first-order logic foundation of SQL and can capture the meaning of deeply nested queries. Our diagrams build upon a rich history of diagrammatic reasoning systems in logic and were designed using a large body of human-computer interaction best practices: they are minimal in that no visual element is superfluous; they are unambiguous in that no two queries with different semantics map to the same visualization; and they extend previously existing visual representations of relational schemata and conjunctive queries in a natural way. An experimental evaluation involving 42 users on Amazon Mechanical Turk shows that with only a 2--3 minute static tutorial, participants could interpret queries meaningfully faster with our diagrams than when reading SQL alone. Moreover, we have evidence that our visual diagrams result in participants making fewer errors than with SQL. We believe that more regular exposure to diagrammatic representations of SQL can give rise to a pattern-based and thus more intuitive use and re-use of SQL. A full version of this paper with all appendices and supplemental material for the experimental study (stimuli, raw data, and analysis code) are available at https://osf.io/btszh.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 13 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

免费注册,获取答案

无需绑卡

脉络

它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper被引最多的 5 篇,共 13 篇

  1. Why Not Yet: Fixing a Top-k Ranking that Is Not Fair to IndividualsZixuan Chen, Panagiotis Manolios, Mirek RiedewaldVLDB 2023 · 17 次引用
  2. SQLucid: Grounding Natural Language Database Queries with Interactive ExplanationsYuan Tian, Jonathan K. Kummerfeld, Toby Jia-Jun Li, Tianyi ZhangUIST 2024 · 13 次引用
  3. NOAH: Interactive Spreadsheet Exploration with Dynamic Hierarchical OverviewsSajjadur Rahman, Mangesh Bendre, Yuyang Liu, Shichu Zhu 等VLDB 2021 · 11 次引用
  4. Qr-Hint: Actionable Hints Towards Correcting Wrong SQL QueriesYihao Hu, Amir Gilad, Kristin Stephens-Martinez, Sudeepa Roy 等SIGMOD 2024 · 7 次引用
  5. On The Reasonable Effectiveness of Relational Diagrams: Explaining Relational Query Patterns and the Pattern Expressiveness of Relational LanguagesWolfgang Gatterbauer, Cody DunneSIGMOD 2024 · 6 次引用

相关 Paper

  1. I-Rex: An Interactive Debugger for SQLYihao Hu, Zian Chen, Zhiming Leong, Sharan Sokhi 等VLDB 2026
  2. Interactive Text-to-SQL Generation via Editable Step-by-Step ExplanationsYuan Tian, Zheng Zhang, Zheng Ning, Toby Jia-Jun Li 等EMNLP 2023 · 14 次引用
  3. Cerebra: Aligning Implicit Knowledge in Interactive SQL AuthoringYunfan Zhou, Qiming Shi, Zhongsu Luo, Xiwen Cai 等CHI 2026 · 2 次引用
  4. SQLSpace: A Representation Space for Text-to-SQL to Discover and Mitigate Robustness GapsNeha Srikanth, Victor S. Bursztyn, Puneet Mathur, Ani NenkovaEMNLP Findings 2025
  5. CogSQL: A Cognitive Framework for Enhancing Large Language Models in Text-to-SQL TranslationHongwei Yuan, Xiu Tang, Ke Chen, Lidan Shou 等AAAI 2025 · 12 次引用
黄昏的海面,两侧是细线勾勒的悬崖