{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/arxiv-2602-14594","title":"The Wikidata Query Logs Dataset","arxiv_id":"2602.14594","date":"2026-02-16","proceeding":null,"authors":["Sebastian Walter","Hannah Bast"],"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.","url_abs":"https://arxiv.org/abs/2602.14594","url_pdf":"https://arxiv.org/pdf/2602.14594","source":{"archive":null,"snapshot":"2025-07-28","note":"not in the Papers with Code archive (frozen at the snapshot)","row_kind":"graph","title_abstract_authors_date":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)"},"code_links":[],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2602.14594","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2602.14594"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/ad-freiburg/wikidata-query-logs","reach":null},{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/adfreiburg/wikidata-query-logs","reach":{"status":"gone","observed_at":"2026-09-16","how":"tree_404+repo_404"}},{"mentioned_in_github":null,"is_official":null,"provenance":"deterministic:regex_extraction","mentioned_in_paper":null,"url":"https://github.com/ad-freiburg/grasp","reach":null}],"summary":{"unverified":29},"by_repo_kind":{"found_in_text":{"samples":29,"ran":0,"repositories":2}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"299cfce576a21b7d","entry":"build_embedding_search_params","repo":"ad-freiburg/grasp","repo_kind":"found_in_text","path":"src/grasp/search_params.py","file_url":"https://github.com/ad-freiburg/grasp/blob/HEAD/src/grasp/search_params.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"299cfce576a21b7d"}},{"code_sha256_prefix":"605e1730cf0fc60d","entry":"camel_case_split","repo":"ad-freiburg/grasp","repo_kind":"found_in_text","path":"src/grasp/utils.py","file_url":"https://github.com/ad-freiburg/grasp/blob/HEAD/src/grasp/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"605e1730cf0fc60d"}},{"code_sha256_prefix":"99dab9f051fdb14e","entry":"clean","repo":"ad-freiburg/wikidata-query-logs","repo_kind":"found_in_text","path":"prepare_input.py","file_url":"https://github.com/ad-freiburg/wikidata-query-logs/blob/HEAD/prepare_input.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"99dab9f051fdb14e"}},{"code_sha256_prefix":"4ef15effa0fe36b5","entry":"compute_validity_stats","repo":"ad-freiburg/wikidata-query-logs","repo_kind":"found_in_text","path":"visualize_app.py","file_url":"https://github.com/ad-freiburg/wikidata-query-logs/blob/HEAD/visualize_app.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4ef15effa0fe36b5"}},{"code_sha256_prefix":"0818868e4cab4d2e","entry":"count_lines_in_file","repo":"ad-freiburg/wikidata-query-logs","repo_kind":"found_in_text","path":"dataset_creation_statistics.py","file_url":"https://github.com/ad-freiburg/wikidata-query-logs/blob/HEAD/dataset_creation_statistics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0818868e4cab4d2e"}},{"code_sha256_prefix":"4cd091f4a35bf4fa","entry":"count_raw_logs","repo":"ad-freiburg/wikidata-query-logs","repo_kind":"found_in_text","path":"dataset_creation_statistics.py","file_url":"https://github.com/ad-freiburg/wikidata-query-logs/blob/HEAD/dataset_creation_statistics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4cd091f4a35bf4fa"}},{"code_sha256_prefix":"5d0cde52ea9e2908","entry":"display_name_from_file","repo":"ad-freiburg/grasp","repo_kind":"found_in_text","path":"src/grasp/apps/shared.py","file_url":"https://github.com/ad-freiburg/grasp/blob/HEAD/src/grasp/apps/shared.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5d0cde52ea9e2908"}},{"code_sha256_prefix":"71826e9b6f5112d6","entry":"estimate_embedding_min_score","repo":"ad-freiburg/grasp","repo_kind":"found_in_text","path":"src/grasp/search_params.py","file_url":"https://github.com/ad-freiburg/grasp/blob/HEAD/src/grasp/search_params.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"71826e9b6f5112d6"}},{"code_sha256_prefix":"5e0feca7e089bbe1","entry":"extract_prefix_declarations","repo":"ad-freiburg/wikidata-query-logs","repo_kind":"found_in_text","path":"sparql_statistics.py","file_url":"https://github.com/ad-freiburg/wikidata-query-logs/blob/HEAD/sparql_statistics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5e0feca7e089bbe1"}},{"code_sha256_prefix":"861de91e9eab991a","entry":"format_as_jsonl","repo":"ad-freiburg/wikidata-query-logs","repo_kind":"found_in_text","path":"export_kgqa_dataset.py","file_url":"https://github.com/ad-freiburg/wikidata-query-logs/blob/HEAD/export_kgqa_dataset.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"861de91e9eab991a"}},{"code_sha256_prefix":"c1f6273fc43edf2d","entry":"generate_id","repo":"ad-freiburg/grasp","repo_kind":"found_in_text","path":"src/grasp/server.py","file_url":"https://github.com/ad-freiburg/grasp/blob/HEAD/src/grasp/server.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c1f6273fc43edf2d"}},{"code_sha256_prefix":"4d2aafa46d7fb115","entry":"get_evaluation_file","repo":"ad-freiburg/grasp","repo_kind":"found_in_text","path":"src/grasp/evaluate.py","file_url":"https://github.com/ad-freiburg/grasp/blob/HEAD/src/grasp/evaluate.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4d2aafa46d7fb115"}},{"code_sha256_prefix":"d4b296a66b3ab0ae","entry":"get_local_name_from_iri","repo":"ad-freiburg/grasp","repo_kind":"found_in_text","path":"src/grasp/utils.py","file_url":"https://github.com/ad-freiburg/grasp/blob/HEAD/src/grasp/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d4b296a66b3ab0ae"}},{"code_sha256_prefix":"e39164956ac43808","entry":"get_wikidata_prefix","repo":"ad-freiburg/wikidata-query-logs","repo_kind":"found_in_text","path":"sparql_statistics.py","file_url":"https://github.com/ad-freiburg/wikidata-query-logs/blob/HEAD/sparql_statistics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e39164956ac43808"}},{"code_sha256_prefix":"3ad6b4253f5b5e42","entry":"load_jsonl","repo":"ad-freiburg/wikidata-query-logs","repo_kind":"found_in_text","path":"check_overlap.py","file_url":"https://github.com/ad-freiburg/wikidata-query-logs/blob/HEAD/check_overlap.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"3ad6b4253f5b5e42"}},{"code_sha256_prefix":"70b44990d9eeed68","entry":"mtime","repo":"ad-freiburg/grasp","repo_kind":"found_in_text","path":"src/grasp/apps/shared.py","file_url":"https://github.com/ad-freiburg/grasp/blob/HEAD/src/grasp/apps/shared.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"70b44990d9eeed68"}},{"code_sha256_prefix":"abcff2e9b1e82ff5","entry":"normalize_tree","repo":"ad-freiburg/wikidata-query-logs","repo_kind":"found_in_text","path":"sparql_statistics.py","file_url":"https://github.com/ad-freiburg/wikidata-query-logs/blob/HEAD/sparql_statistics.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"abcff2e9b1e82ff5"}},{"code_sha256_prefix":"5e98056300a67fa9","entry":"normalize_whitespace","repo":"ad-freiburg/wikidata-query-logs","repo_kind":"found_in_text","path":"check_overlap.py","file_url":"https://github.com/ad-freiburg/wikidata-query-logs/blob/HEAD/check_overlap.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5e98056300a67fa9"}},{"code_sha256_prefix":"a85ee2822986abc3","entry":"parse_args","repo":"ad-freiburg/grasp","repo_kind":"found_in_text","path":"src/grasp/apps/expert.py","file_url":"https://github.com/ad-freiburg/grasp/blob/HEAD/src/grasp/apps/expert.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a85ee2822986abc3"}},{"code_sha256_prefix":"7f7843225b5ec998","entry":"parse_formatted_sections","repo":"ad-freiburg/wikidata-query-logs","repo_kind":"found_in_text","path":"visualize_app.py","file_url":"https://github.com/ad-freiburg/wikidata-query-logs/blob/HEAD/visualize_app.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7f7843225b5ec998"}},{"code_sha256_prefix":"4345f9f7c76ba530","entry":"parse_model_name","repo":"ad-freiburg/grasp","repo_kind":"found_in_text","path":"src/grasp/apps/shared.py","file_url":"https://github.com/ad-freiburg/grasp/blob/HEAD/src/grasp/apps/shared.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4345f9f7c76ba530"}},{"code_sha256_prefix":"ede193119a639c47","entry":"prepare_file","repo":"ad-freiburg/wikidata-query-logs","repo_kind":"found_in_text","path":"prepare_input.py","file_url":"https://github.com/ad-freiburg/wikidata-query-logs/blob/HEAD/prepare_input.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ede193119a639c47"}},{"code_sha256_prefix":"ba63317cd5e597aa","entry":"sample_from_clusters","repo":"ad-freiburg/wikidata-query-logs","repo_kind":"found_in_text","path":"export_kgqa_dataset.py","file_url":"https://github.com/ad-freiburg/wikidata-query-logs/blob/HEAD/export_kgqa_dataset.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ba63317cd5e597aa"}},{"code_sha256_prefix":"cf33c581f8ebad4f","entry":"sample_id","repo":"ad-freiburg/wikidata-query-logs","repo_kind":"found_in_text","path":"check_overlap.py","file_url":"https://github.com/ad-freiburg/wikidata-query-logs/blob/HEAD/check_overlap.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cf33c581f8ebad4f"}},{"code_sha256_prefix":"c405220a4a2ea822","entry":"search_params_cls","repo":"ad-freiburg/grasp","repo_kind":"found_in_text","path":"src/grasp/search_params.py","file_url":"https://github.com/ad-freiburg/grasp/blob/HEAD/src/grasp/search_params.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c405220a4a2ea822"}},{"code_sha256_prefix":"47a184c3b9314caa","entry":"split_by_cluster","repo":"ad-freiburg/wikidata-query-logs","repo_kind":"found_in_text","path":"export_kgqa_dataset.py","file_url":"https://github.com/ad-freiburg/wikidata-query-logs/blob/HEAD/export_kgqa_dataset.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"47a184c3b9314caa"}},{"code_sha256_prefix":"04a6678dc10e7aec","entry":"split_iri","repo":"ad-freiburg/grasp","repo_kind":"found_in_text","path":"src/grasp/utils.py","file_url":"https://github.com/ad-freiburg/grasp/blob/HEAD/src/grasp/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"04a6678dc10e7aec"}},{"code_sha256_prefix":"a289056569285182","entry":"strip_code_fences","repo":"ad-freiburg/wikidata-query-logs","repo_kind":"found_in_text","path":"visualize_app.py","file_url":"https://github.com/ad-freiburg/wikidata-query-logs/blob/HEAD/visualize_app.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a289056569285182"}},{"code_sha256_prefix":"71843c1f8c14be0e","entry":"validate_sample","repo":"ad-freiburg/wikidata-query-logs","repo_kind":"found_in_text","path":"utils.py","file_url":"https://github.com/ad-freiburg/wikidata-query-logs/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"71843c1f8c14be0e"}}]},"arxiv_metadata":{"licence":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license)","fields":["title","abstract","authors","date"],"primary_category":"cs.CL","source":"arxiv_2026.jsonl"},"syntology_extracted_results":{"kind":"leaderboard_placements","source":"Syntology's leaderboard-shaped extractor over the paper's own arXiv-HTML tables: a model pointed at a cell, the number was read from that cell and checked against the board's metric, dataset, split and scale, and an independent check accepted the entry; not reviewed by the paper's authors or the archive's editors","extractor_model":"global.anthropic.claude-sonnet-4-5-20250929-v1:0","verifier_model":null,"prompt_sha":"fa63d4bb9d755694","coverage":{"sentence":"Syntology has checked 6,264 of the 9,581 papers on this site that are newer than the archive; results from the others appear after they are checked.","papers_newer_than_archive":9581,"papers_checked":6264},"entries":[],"not_placed":{"boards":0,"rejected_by_independent_check":0,"refused_by_a_rule":0,"check_did_not_answer":0,"proposed_without_a_cell":0,"declined_by_site":0}}}