English

The Wikidata Query Logs Dataset

Computation and Language 2026-05-20 v2

Abstract

We present the Wikidata Query Logs (WDQL) dataset, a dataset consisting of 335k question-query pairs over the Wikidata knowledge graph. It is over 11x larger than the largest existing Wikidata datasets of similar format without relying on template-generated queries. Instead, we construct it using real-world SPARQL queries sent to the Wikidata Query Service and generate questions for them. Since these log-based queries are anonymized, and therefore often do not produce results, a significant amount of effort is needed to convert them back into meaningful SPARQL queries. To achieve this, we present an agent-based method that iteratively de-anonymizes, cleans, and verifies queries against Wikidata while also generating corresponding natural-language questions. We demonstrate the benefit of this dataset for training question-answering methods. All WDQL assets, as well as the agent code, are publicly available via https://github.com/ad-freiburg/wikidata-query-logs under a permissive license.

Cite

@article{arxiv.2602.14594,
  title  = {The Wikidata Query Logs Dataset},
  author = {Sebastian Walter and Hannah Bast},
  journal= {arXiv preprint arXiv:2602.14594},
  year   = {2026}
}

Comments

Accepted for publication at SIGIR 2026

R2 v1 2026-07-01T10:38:13.951Z