A Principled Solution to the Disjunction Problem of Diagrammatic Query Representations
摘要
Finding unambiguous diagrammatic representations for first-order logical formulas and relational queries with arbitrarily nested disjunctions has been a surprisingly long-standing unsolved problem. We refer to this problem as the disjunction problem (of diagrammatic query representations).
This work solves the disjunction problem. Our solution unifies, generalizes, and overcomes the shortcomings of prior approaches for disjunctions. It extends the recently proposed Relational Diagrams and is identical for disjunction-free queries. However, it can preserve the relational patterns and the safety for all well-formed Tuple Relational Calculus (TRC) queries, even with arbitrary disjunctions. Additionally, its size is proportional to the original TRC query and can thus be exponentially more succinct than Relational Diagrams.
1 FOL is basically the same as Relational Calculus and thus equivalent in expressiveness to relationally complete languages. 2 Safety is a syntactic criterion that guarantees that the query is domain-independent and thus always returns finitely many answers [71]. See Section 3.2 for details. "Same pattern" is a semantic notion and means (slightly simplified) that the representation uses the set of relation variables. See Section 2.2 for details.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
脉络
它引用的 Paper3
- QueryVis: Logic-based Diagrams help Users Understand Complicated SQL Queries FasterAristotelis Leventidis, Jiahui Zhang, Cody Dunne, Wolfgang Gatterbauer 等SIGMOD 2020 · 36 次引用
- On The Reasonable Effectiveness of Relational Diagrams: Explaining Relational Query Patterns and the Pattern Expressiveness of Relational LanguagesWolfgang Gatterbauer, Cody DunneSIGMOD 2024 · 6 次引用
- Diagrammatic Algebra of First Order LogicFilippo Bonchi, Alessandro Di Giorgio, Nathan Haydon, Pawel SobocinskiLICS 2024 · 5 次引用
相关 Paper
- SConE: Simplified Cone Embeddings with Symbolic Operators for Complex Logical QueriesChau D. M. Nguyen, Tim French, Wei Liu, Michael StewartACL Findings 2023 · 3 次引用
- Understanding Queries by Conditional InstancesAmir Gilad, Zhengjie Miao, Sudeepa Roy, Jun YangSIGMOD 2022 · 9 次引用
- Polygon: Symbolic Reasoning for SQL using Conflict-Driven Under-Approximation SearchPinhan Zhao, Yuepeng Wang, Xinyu WangPLDI 2025
- Proving Query Equivalence Using Linear Integer ArithmeticHaoran Ding, Zhaoguo Wang, Yicun Yang, Dexin Zhang 等SIGMOD 2024 · 20 次引用
- DAGE: DAG Query Answering via Relational Combinator with Logical ConstraintsYunjie He, Bo Xiong, Daniel Hernández, Yuqicheng Zhu 等WWW 2025 · 4 次引用
