cs.CLFeb 16, 2026

The Wikidata Query Logs Dataset

Authors: Sebastian Walter, Hannah Bast

Organizations: University of Freiburg, Department of Computer Science, Freiburg im Breisgau, Germany

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.

Figures & tables

Explore similar work

CardsList
  1. Wikidata Search Traces: A Dataset for Training Knowledge Graph Search Agents

    Oct 5, 2026Mohamed Chenene, Carlos Rosas-Hinostroza, Anastasia Stasenko +2Multi-Hop QAKnowledge Graph Question Answering

  2. GRISP: Guided Recurrent IRI Selection over SPARQL Skeletons

    Apr 22, 2026Sebastian Walter, Hannah BastKnowledge Graph Question AnsweringKnowledge Graphs

  3. ORBIT: Scalable and Verifiable Data Generation for Search Agents on a Tight Budget

    Apr 1, 2026Nandan Thakur, Zijian Chen, Xueguang Ma +1Synthetic Data Generation for Language ModelsLLM Agent Training