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 View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

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

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 29 code samples harvested from 2 repositories linked to this paper: 28 ran (of which 0 constructed an object rather than computing a result; 9 with no instrument failure: 3 honoured, 0 violated, 6 with no contract checked; 19 where Syntology's instrument failed) · 1 unverified. Where Syntology's instrument failed: 18 where our contract draft was wrong; 1 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: found in paper text by Syntology: 29 samples from 2 repositories, 28 ran (9 with no instrument failure; 19 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written on 2026-09-26 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

ad-freiburg/wikidata-query-logs found in paper text by SyntologySyntology: 17 samples, 17 ran (11 instrument-failed) · 0 unverified 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-readySyntology: not harvested report
ad-freiburg/grasp found in paper text by SyntologySyntology: 12 samples, 11 ran (8 instrument-failed) · 1 unverified 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: 28 ran (of which 0 constructed an object rather than computing a result; 9 with no instrument failure: 3 honoured, 0 violated, 6 with no contract checked; 19 where Syntology's instrument failed) · 1 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

3ran · honoured contract
18ran · our draft was wrong
1ran; the contract check could not run
6ran
1unverified

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; the list below is grouped by repository, each group headed by its name and what it is to the paper. “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. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (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 are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. 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 six 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; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. 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.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

ad-freiburg/wikidata-query-logs found in paper text by Syntology 17 samples, 17 ran (11 instrument-failed) · 0 unverified
clean in 39 papers prepare_input.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 99dab9f051fdb14e · report fixture: signature sparql:str/0/str · returned str · level recorded 2026-09-26
compute_validity_stats visualize_app.py ran · our draft was wrong Apache-2.0 (permissive) · 4ef15effa0fe36b5 · report fixture: signature samples:list/1/dict · returned dict · level recorded 2026-09-26
count_lines_in_file dataset_creation_statistics.py ran · honoured contract Apache-2.0 (permissive) · 0818868e4cab4d2e · report fixture: signature path:PosixPath/0/? · returned int · level recorded 2026-09-26
count_raw_logs dataset_creation_statistics.py ran · honoured contract Apache-2.0 (permissive) · 4cd091f4a35bf4fa · report fixture: signature tsv_files:list/1/PosixPath · returned int · level recorded 2026-09-26
extract_prefix_declarations sparql_statistics.py ran · our draft was wrong Apache-2.0 (permissive) · 5e0feca7e089bbe1 · report fixture: signature tree:dict/0/? · returned dict · level recorded 2026-09-26
format_as_jsonl export_kgqa_dataset.py ran · our draft was wrong Apache-2.0 (permissive) · 861de91e9eab991a · report fixture: signature samples:list/1/dict, split:str/0/str · returned list · level recorded 2026-09-26
get_wikidata_prefix sparql_statistics.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · e39164956ac43808 · report fixture: signature iri:str/0/str · returned str · level recorded 2026-09-26
load_jsonl in 179 papers check_overlap.py ran · our draft was wrong Apache-2.0 (permissive) · 3ad6b4253f5b5e42 · report fixture: signature path:str/0/str · returned list · level recorded 2026-09-26
normalize_tree sparql_statistics.py ran Apache-2.0 (permissive) · abcff2e9b1e82ff5 · report fixture: signature tree:dict/0/?, normalize_properties:bool/0/bool, var_map:dict/0/?, entity_map:dict/0/?, property_map:dict/0/?, literal_map:dict/0/? · returned dict · level recorded 2026-09-26
normalize_whitespace in 14 papers check_overlap.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 5e98056300a67fa9 · report fixture: signature sparql:str/0/str · returned str · level recorded 2026-09-26
parse_formatted_sections visualize_app.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 7f7843225b5ec998 · report fixture: signature formatted_text:str/0/str · returned dict · level recorded 2026-09-26
prepare_file prepare_input.py ran Apache-2.0 (permissive) · ede193119a639c47 · report fixture: signature in_file:PosixPath/0/?, out_files:dict/0/?, seen:set/0/? · returned tuple · level recorded 2026-09-26
sample_from_clusters export_kgqa_dataset.py ran Apache-2.0 (permissive) · ba63317cd5e597aa · report fixture: signature metadata:list/1/dict, cluster_labels:list/1/int, samples_per_cluster:int/0/int, seed:int/0/int · returned list · level recorded 2026-09-26
sample_id check_overlap.py ran · our draft was wrong Apache-2.0 (permissive) · cf33c581f8ebad4f · report fixture: signature s:dict/0/? · returned str · level recorded 2026-09-26
split_by_cluster export_kgqa_dataset.py ran Apache-2.0 (permissive) · 47a184c3b9314caa · report fixture: signature samples:list/1/dict, train_ratio:float/0/float, val_ratio:float/0/float, seed:int/0/int · returned tuple · level recorded 2026-09-26
strip_code_fences visualize_app.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · a289056569285182 · report fixture: signature text:str/0/str · returned str · level recorded 2026-09-26
validate_sample utils.py ran · our draft was wrong Apache-2.0 (permissive) · 71843c1f8c14be0e · report fixture: signature data:dict/0/? · returned tuple · level recorded 2026-09-26
ad-freiburg/grasp found in paper text by Syntology 12 samples, 11 ran (8 instrument-failed) · 1 unverified
build_embedding_search_params src/grasp/search_params.py ran Apache-2.0 (permissive) · 299cfce576a21b7d · report fixture: signature embeddings:ndarray/2/float, build:EmbeddingBuildParams/0/?, search:EmbeddingSearchParams/0/? · returned EmbeddingSearchParams · level recorded 2026-09-26
camel_case_split src/grasp/utils.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 605e1730cf0fc60d · report fixture: signature s:str/0/str · returned str · level recorded 2026-09-26
display_name_from_file src/grasp/apps/shared.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 5d0cde52ea9e2908 · report fixture: signature path:str/0/str · returned str · level recorded 2026-09-26
estimate_embedding_min_score src/grasp/search_params.py ran Apache-2.0 (permissive) · 71826e9b6f5112d6 · report fixture: signature embeddings:ndarray/2/float, num_samples:int/0/int, percentile:float/0/float, margin:float/0/float, seed:int/0/int · returned float · level recorded 2026-09-26
generate_id src/grasp/server.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · c1f6273fc43edf2d · report fixture: signature length:int/0/int · returned str · level recorded 2026-09-26
get_evaluation_file src/grasp/evaluate.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 4d2aafa46d7fb115 · report fixture: signature prediction_file:str/0/str · returned str · level recorded 2026-09-26
get_local_name_from_iri src/grasp/utils.py ran; the contract check could not run (DEP_MISSING) Apache-2.0 (permissive) · d4b296a66b3ab0ae · report fixture: signature iri:str/0/str, prefixes:dict/0/? · returned str · level recorded 2026-09-26
mtime src/grasp/apps/shared.py ran · honoured contract fingerprinted Apache-2.0 (permissive) · 70b44990d9eeed68 · report fixture: signature path:str/0/str · returned float · level recorded 2026-09-26
parse_args in 355 papers src/grasp/apps/expert.py ran · our draft was wrong Apache-2.0 (permissive) · a85ee2822986abc3 · report fixture: signature argv:list/1/str · returned Namespace · level recorded 2026-09-26
parse_model_name in 11 papers src/grasp/apps/shared.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 4345f9f7c76ba530 · report fixture: signature filename:str/0/str · returned tuple · level recorded 2026-09-26
split_iri src/grasp/utils.py ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 04a6678dc10e7aec · report fixture: signature iri:str/0/str · returned tuple · level recorded 2026-09-26
search_params_cls src/grasp/search_params.py unverified Apache-2.0 (permissive) · c405220a4a2ea822 · 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