Skip to main navigation Skip to search Skip to main content

Complexity of Evaluating GQL Queries

  • Diego Figueira*
  • , Anthony W. Lin*
  • , Liat Peterfreund*
  • *Corresponding author for this work

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

1 Scopus citations

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 languageEnglish
Title of host publication29th International Conference on Database Theory, ICDT 2026
EditorsBalder ten Cate, Maurice Funk
PublisherSchloss Dagstuhl- Leibniz-Zentrum fur Informatik GmbH, Dagstuhl Publishing
ISBN (Electronic)9783959774130
DOIs
StatePublished - 2026
Event29th International Conference on Database Theory, ICDT 2026 - Tampere, Finland
Duration: 24 Mar 202627 Mar 2026

Publication series

NameLeibniz International Proceedings in Informatics, LIPIcs
Volume365
ISSN (Print)1868-8969

Conference

Conference29th International Conference on Database Theory, ICDT 2026
Country/TerritoryFinland
CityTampere
Period24/03/2627/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