GQL and SQL/PGQ: Theoretical Models and Expressive Power

Amélie Gheerbrant, Leonid Libkin, Liat Peterfreund, Alexandra Rogova

Research output: Contribution to journalConference articlepeer-review

2 Scopus citations

Abstract

SQL/PGQ and GQL are very recent international standards for querying property graphs: SQL/PGQ specifies how to query relational representations of property graphs in SQL, while GQL is a standalone language for graph databases. The rapid industrial development of these standards left the academic community trailing in its wake. While digests of the languages have appeared, we do not yet have concise foundational models like relational algebra and calculus for relational databases that enable the formal study of languages, including their expressiveness and limitations. At the same time, work on the next versions of the standards has already begun, to address the perceived limitations of their first versions. Motivated by this, we initiate a formal study of SQL/PGQ and GQL, concentrating on their concise formal model and expressiveness. For the former, we define simple core languages – Core PGQ and Core GQL – that capture the essence of the new standards, are amenable to theoretical analysis, and clarify the difference between PGQ’s bottom up evaluation versus GQL’s linear, or pipelined approach. Equipped with these models, we both confirm the necessity to extend the language to fill in the expressiveness gaps and identify the source of these deficiencies. We complement our theoretical analysis with an experimental study, demonstrating that existing workarounds in full GQL and PGQ are impractical, further underscoring the necessity to correct deficiencies in language design.

Original languageEnglish
Pages (from-to)1798-1810
Number of pages13
JournalProceedings of the VLDB Endowment
Volume18
Issue number6
DOIs
StatePublished - 2025
Event51st International Conference on Very Large Data Bases, VLDB 2025 - London, United Kingdom
Duration: 1 Sep 20255 Sep 2025

Bibliographical note

Publisher Copyright:
© 2025, VLDB Endowment. All rights reserved.

Keywords

  • Cypher
  • GQL
  • Graph databases
  • SQL/PGQ
  • expressive power
  • language design
  • pattern matching

Fingerprint

Dive into the research topics of 'GQL and SQL/PGQ: Theoretical Models and Expressive Power'. Together they form a unique fingerprint.

Cite this