A Fine-Grained Dichotomy for Bounded-Variable Query Evaluation: The Calculus of Relations, a Boolean Modal Logic, and One-Variable Counting Logic
Yoshiki Nakamura, Yuya Uezato
Abstract
We study the fine-grained complexity of evaluating Boolean bounded-variable first-order queries over sparse relational structures. For every fixed k 2, every relational signature, and every fragment between k-variable primitive positive (PPk) and first-order (FOk) logic, we prove, assuming the Sparse MAX-3-SAT hypothesis, a dichotomy theorem for evaluation in O(mk-) time, where m is the number of tuples in the input structure. The only tractable cases fall into three families: (1) three-variable fragments, (2) two-variable fragments, and (3) fragments over unary signatures. On the hard side, for every fixed k 4 and every > 0, there is a fixed sentence φ in PPk over a single binary relation symbol, depending on but not on the input structure, whose evaluation cannot be performed in O(mk-) time. For the tractable cases, we show that the evaluation problem can be solved in 2O(|φ|) · mk- time for some > 0. Moreover, every tractable fragment reduces, with a 2O(|φ|) blowup in formula size under DAG representations, to one of the following query languages: (1) Tarski's calculus of relations, (2) a new Boolean modal logic for sparse model checking, and (3) one-variable counting logic.
Create a lesson
Related papers
SQLMorph: Query Mutation and Fine-Grained Metrics for Text-to-SQL Evaluation
Shared title terminology · Mohammadhossein Malekpour, Mohamed Riahi, Maxime Lamothe et al.
SKYE: Write-Optimized Key-Value Store with Fine-Grained Control over Persistent Memory Accesses
Shared title terminology · Soujanya Ponnapalli, Sekwon Lee, Rohan Kadekodi et al.
Concord: A Video Relational Algebra for Cross-Modal Query Optimization
Shared title terminology · Sultan Muratbek, Charisse Ivana Yeung, Chanwut Kittivorawong et al.
SPARQLcirc: Probabilistic Query Evaluation with Provenance Circuits
Shared title terminology · Jingcheng Wu, Ratan Bahadur Thapa, Daniel Hernández et al.
Guanaco: A Global-Uniformity Algorithm for Near-Submodular-Width Conjunctive Query Evaluation
Shared title terminology · Mahmoud Abo Khamis, Hubie Chen
Graph Memory for LLM Agents: At What Cost? A Comparative Evaluation of Query, Ingest, and Update Performance Across Graph Database Engines
Shared title terminology · Donald Nguyen, Gurbinder Gill, Hadi Ahmadi et al.