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 about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 9286f093-2ea1-4e77-aa35-4292552e5cf8Cited by top-tier papers5
- Efficient and Reliable Estimation of Knowledge Graph AccuracyStefano Marchesin, Gianmaria SilvelloVLDB 2024 · 14 citations
- Scalable Community Search with Accuracy Guarantee on Attributed GraphsYuxiang Wang, Shuzhan Ye, Xiaoliang Xu, Yuxia Geng et al.ICDE 2024 · 10 citations
- 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
- Multi-Faceted Continual Knowledge Graph Embedding for Semantic-Aware Link PredictionJing Qi, Yuxiang Wang, Zhiyuan Yu, Xiaoliang Xu et al.SIGIR 2026
- 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
- 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
- Join on Samples: A Theoretical Guide for PractitionersDawei Huang, Dong Young Yoon, Seth Pettie, Barzan MozafariVLDB 2020 · 13 citations
- Online Indices for Predictive Top-k Entity and Aggregate Queries on Knowledge GraphsYan Li, Tingjian Ge, Cindy X. ChenICDE 2020 · 10 citations
Related papers
- Cardinality Estimation over Knowledge Graphs with Embeddings and Graph Neural NetworksTim Schwabe, Maribel AcostaSIGMOD 2024 · 17 citations
- Exploration of Knowledge Graphs via Online AggregationOren Kalinsky, Aidan Hogan, Oren Mishali, Yoav Etsion et al.ICDE 2022 · 5 citations
- Improving Multi-hop Question Answering over Knowledge Graphs using Knowledge Base EmbeddingsApoorv Saxena, Aditay Tripathi, Partha P. TalukdarACL 2020 · 488 citations
- Sankofa: Online Query-adaptive Dynamic Graph SummariesAma Bembua Bainson, Kasper Overgaard Mortensen, Klim Zaporojets, Davide Mottin et al.VLDB 2026 · 1 citation
- Towards Global-Topology Relation Graph for Inductive Knowledge Graph CompletionLing Ding, Lei Huang, Zhizhi Yu, Di Jin et al.AAAI 2025 · 8 citations
