Lune

ICDE2025Top-tier venue

Efficient Execution of SPARQL Queries with OPTIONAL and UNION Expressions

Yue Pang, Lei Zou, M. Tamer Özsu, Jiaqi Chen

Abstract

The proliferation of RDF datasets has resulted in studies focusing on optimizing SPARQL query processing. Most existing work focuses on basic graph patterns (BGPs) and ignores other vital operators in SPARQL, such as UNION and OPTIONAL. SPARQL queries with these operators, which we abbreviate as SPARQL-UO, pose serious query plan generation challenges. In this paper, we propose techniques for executing SPARQL-UO queries using BGP execution as a building block, based on a novel BGP-based Evaluation (BE)-Tree representation of query plans. On top of this, we propose a series of cost-driven BEtree transformations to generate more efficient plans by reducing the search space and intermediate result sizes, and a candidate pruning technique that further enhances efficiency at query time. Experiments confirm that our method outperforms the state-of-the-art by orders of magnitude.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

Questions to start from

Lune can draw on

the full paper · related work

Get the answer

Free to start. No credit card required.

Related papers

  1. The Case of SPARQL UNION, FILTER and DISTINCTMedha AtreWWW 2022 · 1 citation
  2. On the Expressivity of ASK Queries in SPARQLXiaowang Zhang, Jan Van den Bussche, Kewen Wang, Heng Zhang et al.AAAI 2020
  3. FedUP: Querying Large-Scale Federations of SPARQL EndpointsJulien Aimonier-Davat, Brice Nédelec, Minh Hoang Dang, Pascal Molli et al.WWW 2024 · 5 citations
  4. PlanRGCN: Predicting SPARQL Query PerformanceAbiram Mohanaraj, Matteo Lissandrini, Katja HoseVLDB 2025 · 2 citations
  5. Worst-Case Optimal BGPs on Temporal GraphsDiego Arroyuelo, Aidan Hogan, Gonzalo Navarro, Juan L. ReutterVLDB 2026
Dusk over the sea between two cliffs drawn in fine vertical lines