Papers › The Wikidata Query Logs Dataset

The Wikidata Query Logs Dataset

16 Feb 2026arXiv:2602.14594added by Syntology

Sebastian Walter, Hannah Bast

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

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.

PaperPDFCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2602.14594")

Code

Syntology Ran 0 of 29 code samples harvested from 2 repositories linked to this paper; 29 have no recorded run.

By repository: found in paper text by Syntology: 29 samples from 2 repositories, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ad-freiburg/wikidata-query-logs found in paper text by Syntology report
adfreiburg/wikidata-query-logs found in paper text by Syntologynot reachable when probed 2026-09-16 — repositories for recent papers often appear after camera-ready report
ad-freiburg/grasp found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

29 samples harvested; 0 ran; 0 honoured the contract we drafted; 29 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

29unverified

Licence: 0 of the 29 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

build_embedding_search_params ad-freiburg/grasp/src/grasp/search_params.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 299cfce576a21b7d · report
camel_case_split ad-freiburg/grasp/src/grasp/utils.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 605e1730cf0fc60d · report
clean ad-freiburg/wikidata-query-logs/prepare_input.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 99dab9f051fdb14e · report
compute_validity_stats ad-freiburg/wikidata-query-logs/visualize_app.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 4ef15effa0fe36b5 · report
count_lines_in_file ad-freiburg/wikidata-query-logs/dataset_creation_statistics.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 0818868e4cab4d2e · report
count_raw_logs ad-freiburg/wikidata-query-logs/dataset_creation_statistics.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 4cd091f4a35bf4fa · report
display_name_from_file ad-freiburg/grasp/src/grasp/apps/shared.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 5d0cde52ea9e2908 · report
estimate_embedding_min_score ad-freiburg/grasp/src/grasp/search_params.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 71826e9b6f5112d6 · report
extract_prefix_declarations ad-freiburg/wikidata-query-logs/sparql_statistics.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 5e0feca7e089bbe1 · report
format_as_jsonl ad-freiburg/wikidata-query-logs/export_kgqa_dataset.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 861de91e9eab991a · report
generate_id ad-freiburg/grasp/src/grasp/server.py found in paper text by Syntology unverified Apache-2.0 (permissive) · c1f6273fc43edf2d · report
get_evaluation_file ad-freiburg/grasp/src/grasp/evaluate.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 4d2aafa46d7fb115 · report
get_local_name_from_iri ad-freiburg/grasp/src/grasp/utils.py found in paper text by Syntology unverified Apache-2.0 (permissive) · d4b296a66b3ab0ae · report
get_wikidata_prefix ad-freiburg/wikidata-query-logs/sparql_statistics.py found in paper text by Syntology unverified Apache-2.0 (permissive) · e39164956ac43808 · report
load_jsonl ad-freiburg/wikidata-query-logs/check_overlap.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 3ad6b4253f5b5e42 · report
mtime ad-freiburg/grasp/src/grasp/apps/shared.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 70b44990d9eeed68 · report
normalize_tree ad-freiburg/wikidata-query-logs/sparql_statistics.py found in paper text by Syntology unverified Apache-2.0 (permissive) · abcff2e9b1e82ff5 · report
normalize_whitespace ad-freiburg/wikidata-query-logs/check_overlap.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 5e98056300a67fa9 · report
parse_args ad-freiburg/grasp/src/grasp/apps/expert.py found in paper text by Syntology unverified Apache-2.0 (permissive) · a85ee2822986abc3 · report
parse_formatted_sections ad-freiburg/wikidata-query-logs/visualize_app.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 7f7843225b5ec998 · report
parse_model_name ad-freiburg/grasp/src/grasp/apps/shared.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 4345f9f7c76ba530 · report
prepare_file ad-freiburg/wikidata-query-logs/prepare_input.py found in paper text by Syntology unverified Apache-2.0 (permissive) · ede193119a639c47 · report
sample_from_clusters ad-freiburg/wikidata-query-logs/export_kgqa_dataset.py found in paper text by Syntology unverified Apache-2.0 (permissive) · ba63317cd5e597aa · report
sample_id ad-freiburg/wikidata-query-logs/check_overlap.py found in paper text by Syntology unverified Apache-2.0 (permissive) · cf33c581f8ebad4f · report
search_params_cls ad-freiburg/grasp/src/grasp/search_params.py found in paper text by Syntology unverified Apache-2.0 (permissive) · c405220a4a2ea822 · report
split_by_cluster ad-freiburg/wikidata-query-logs/export_kgqa_dataset.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 47a184c3b9314caa · report
split_iri ad-freiburg/grasp/src/grasp/utils.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 04a6678dc10e7aec · report
strip_code_fences ad-freiburg/wikidata-query-logs/visualize_app.py found in paper text by Syntology unverified Apache-2.0 (permissive) · a289056569285182 · report
validate_sample ad-freiburg/wikidata-query-logs/utils.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 71843c1f8c14be0e · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2602.14594, was issued in February 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections