Lune

ICDE2022Top-tier venue

Aggregate Queries on Knowledge Graphs: Fast Approximation with Semantic-aware Sampling

Yuxiang Wang, Arijit Khan, Xiaoliang Xu, Jiahui Jin, Qifan Hong, Tao Fu

Abstract

A knowledge graph (KG) manages large-scale and real-world facts as a big graph in a schema-flexible manner. Aggregate query is a fundamental query over KGs, e.g., “what is the average price of cars produced in Germany?”. Despite its importance, answering aggregate queries on KGs has received little attention in the literature. Aggregate queries can be supported based on factoid queries, e.g., “find all cars produced in Germany”, by applying an additional aggregate operation on factoid queries' answers. However, this straightforward method is challenging because both the accuracy and efficiency of factoid query processing will seriously impact the performance of aggregate queries. In this paper, we propose a “sampling-estimation” model to answer aggregate queries over KGs, which is the first work to provide an approximate aggregate result with an effective accuracy guarantee, and without relying on factoid queries. Specifically, we first present a semantic-aware sampling to collect a high-quality random sample through a random walk based on knowledge graph embedding. Then, we propose unbiased estimators for COUNT, SUM, and a consistent estimator for AVG to compute the approximate aggregate results based on the random sample, with an accuracy guarantee in the form of confidence interval. We extend our approach to support iterative improvement of accuracy, and more complex queries with filter, GROUP-BY, and different graph shapes, e.g., chain, cycle, star, flower. Extensive experiments over real-world KGs demonstrate the effectiveness and efficiency of our approach.

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.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Enabling Adaptive Sampling for Intra-Window Join: Simultaneously Optimizing Quantity and Quality cites Join on Samples: A Theoretical Guide for Practitioners
  • Multi-Faceted Continual Knowledge Graph Embedding for Semantic-Aware Link Prediction cites Semantic Guided and Response Times Bounded Top-k Similarity Search over Knowledge Graphs
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Efficient and Reliable Estimation of Knowledge Graph AccuracyStefano Marchesin, Gianmaria SilvelloVLDB 2024 · 14 citations
  2. Scalable Community Search with Accuracy Guarantee on Attributed GraphsYuxiang Wang, Shuzhan Ye, Xiaoliang Xu, Yuxia Geng et al.ICDE 2024 · 10 citations
  3. Enabling Adaptive Sampling for Intra-Window Join: Simultaneously Optimizing Quantity and QualityXilin Tang, Feng Zhang, Shuhao Zhang, Yani Liu et al.SIGMOD 2025 · 1 citation
  4. Multi-Faceted Continual Knowledge Graph Embedding for Semantic-Aware Link PredictionJing Qi, Yuxiang Wang, Zhiyuan Yu, Xiaoliang Xu et al.SIGIR 2026
  5. How to Avoid Jumping to Conclusions: Measuring the Robustness of Outstanding Facts in Knowledge GraphsHanhua Xiao, Yuchen Li, Yanhao Wang, Panagiotis Karras et al.KDD 2024

Builds on3

  1. Semantic Guided and Response Times Bounded Top-k Similarity Search over Knowledge GraphsYuxiang Wang, Arijit Khan, Tianxing Wu, Jiahui Jin et al.ICDE 2020 · 45 citations
  2. Join on Samples: A Theoretical Guide for PractitionersDawei Huang, Dong Young Yoon, Seth Pettie, Barzan MozafariVLDB 2020 · 13 citations
  3. Online Indices for Predictive Top-k Entity and Aggregate Queries on Knowledge GraphsYan Li, Tingjian Ge, Cindy X. ChenICDE 2020 · 10 citations

Related papers

  1. Cardinality Estimation over Knowledge Graphs with Embeddings and Graph Neural NetworksTim Schwabe, Maribel AcostaSIGMOD 2024 · 17 citations
  2. Exploration of Knowledge Graphs via Online AggregationOren Kalinsky, Aidan Hogan, Oren Mishali, Yoav Etsion et al.ICDE 2022 · 5 citations
  3. Improving Multi-hop Question Answering over Knowledge Graphs using Knowledge Base EmbeddingsApoorv Saxena, Aditay Tripathi, Partha P. TalukdarACL 2020 · 488 citations
  4. Sankofa: Online Query-adaptive Dynamic Graph SummariesAma Bembua Bainson, Kasper Overgaard Mortensen, Klim Zaporojets, Davide Mottin et al.VLDB 2026 · 1 citation
  5. Towards Global-Topology Relation Graph for Inductive Knowledge Graph CompletionLing Ding, Lei Huang, Zhizhi Yu, Di Jin et al.AAAI 2025 · 8 citations
Dusk over the sea between two cliffs drawn in fine vertical lines