Abstract
GQL has recently emerged as the standard query language over graph databases, particularly, property graphs. Indeed, this is analogous to the role of SQL for relational databases. Unlike SQL, however, fundamental problems regarding GQL are still unsolved, most notably the complexity of query evaluation. In this paper we provide a complete solution to this problem for the core fragment of GQL and for its extension with path restrictors. In particular, we show that the data complexity of these fragments is PNP[log]-complete in general, and drops to NL-complete when restrictors are disallowed. Using techniques from embedded finite model theory, we show that this is true, even when the queries use data from infinite concrete domains such as real numbers with arithmetic. In proving these results, we establish and exploit tight connections between GQL and query languages over relational databases, especially extensions of relational calculus with transitive closure operators and fragments of second-order logic.
| Original language | English |
|---|---|
| Title of host publication | 29th International Conference on Database Theory, ICDT 2026 |
| Editors | Balder ten Cate, Maurice Funk |
| Publisher | Schloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing |
| ISBN (Electronic) | 9783959774130 |
| DOIs | |
| State | Published - 2026 |
| Event | 29th International Conference on Database Theory, ICDT 2026 - Tampere, Finland Duration: 24 Mar 2026 → 27 Mar 2026 |
Publication series
| Name | Leibniz International Proceedings in Informatics, LIPIcs |
|---|---|
| Volume | 365 |
| ISSN (Print) | 1868-8969 |
Conference
| Conference | 29th International Conference on Database Theory, ICDT 2026 |
|---|---|
| Country/Territory | Finland |
| City | Tampere |
| Period | 24/03/26 → 27/03/26 |
Bibliographical note
Publisher Copyright:© Diego Figueira, Anthony W. Lin, and Liat Peterfreund;
Keywords
- GQL
- Graph query languages
- complexity
- database theory
Fingerprint
Dive into the research topics of 'Complexity of Evaluating GQL Queries'. Together they form a unique fingerprint.Cite this
- APA
- Author
- BIBTEX
- Harvard
- Standard
- RIS
- Vancouver