Understanding Queries by Conditional Instances
Amir Gilad, Zhengjie Miao, Sudeepa Roy, Jun Yang
摘要
A powerful way to understand a complex query is by observing how it operates on data instances. However, specific database instances are not ideal for such observations: they often include large amounts of superfluous details that are not only irrelevant to understanding the query but also cause cognitive overload; and one specific database may not be enough. Given a relational query, is it possible to provide a simple and generic "representative'' instance that (1) illustrates how the query can be satisfied, (2) summarizes all specific instances that would satisfy the query in the same way by abstracting away unnecessary details? Furthermore, is it possible to find a collection of such representative instances that together completely characterize all possible ways in which the query can be satisfied? This paper takes initial steps towards answering these questions. We design what these representative instances look like, define what they stand for, and formalize what it means for them to satisfy a query in "all possible ways." We argue that this problem is undecidable for general domain relational calculus queries, and develop practical algorithms for computing a minimum collection of such instances subject to other constraints. We evaluate the efficiency of our approach experimentally, and show its effectiveness in helping users debug relational queries through a user study.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 5 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
引用它的顶会 Paper5
- Why Not Yet: Fixing a Top-k Ranking that Is Not Fair to IndividualsZixuan Chen, Panagiotis Manolios, Mirek RiedewaldVLDB 2023 · 17 次引用
- Qr-Hint: Actionable Hints Towards Correcting Wrong SQL QueriesYihao Hu, Amir Gilad, Kristin Stephens-Martinez, Sudeepa Roy 等SIGMOD 2024 · 7 次引用
- The Power of Constraints in Natural Language to SQL TranslationTonghui Ren, Chen Ke, Yuankai Fan, Yinan Jing 等VLDB 2025 · 4 次引用
- ParSEval: Plan-aware Test Database Generation for SQL Equivalence EvaluationChunyu Chen, Zhengjie Miao, Yong Zhang, Jiannan WangVLDB 2025 · 1 次引用
- I-Rex: An Interactive Debugger for SQLYihao Hu, Zian Chen, Zhiming Leong, Sharan Sokhi 等VLDB 2026
相关 Paper
- Towards Selecting Informative Alternative Relational Query Plans for Database EducationHui Li, Hu Wang, Sourav S. Bhowmick, Zihao MaSIGMOD 2026
- Representative Query Results by VotingRachel Behar, Sara CohenSIGMOD 2022 · 2 次引用
- What Does a Query Answer Tell You? Informativeness of Query Answers for Knowledge BasesLuca Andolfi, Gianluca Cima, Marco Console, Maurizio LenzeriniAAAI 2024 · 2 次引用
- Aggregated Deletion Propagation for Counting Conjunctive Query AnswersXiao Hu, Shouzhuo Sun, Shweta Patwa, Debmalya Panigrahi 等VLDB 2021 · 7 次引用
- Towards a Unified Query Plan RepresentationJinsheng Ba, Manuel RiggerICDE 2025
