Papers › KQA Pro: A Dataset with Explicit Compositional Programs for Complex Question Answering...

KQA Pro: A Dataset with Explicit Compositional Programs for Complex Question Answering over Knowledge Base

8 Jul 2020ACL 2022 5arXiv:2007.03875archive 2025-07-28

Shulin Cao, Jiaxin Shi, Liangming Pan, Lunyiu Nie, Yutong Xiang, Lei Hou, Juanzi Li, Bin He, Hanwang Zhang

Complex question answering over knowledge base (Complex KBQA) is challenging because it requires various compositional reasoning capabilities, such as multi-hop inference, attribute comparison, set operation. Existing benchmarks have some shortcomings that limit the development of Complex KBQA: 1) they only provide QA pairs without explicit reasoning processes; 2) questions are poor in diversity or scale. To this end, we introduce KQA Pro, a dataset for Complex KBQA including ~120K diverse natural language questions. We introduce a compositional and interpretable programming language KoPL to represent the reasoning process of complex questions. For each question, we provide the corresponding KoPL program and SPARQL query, so that KQA Pro serves for both KBQA and semantic parsing tasks. Experimental results show that SOTA KBQA methods cannot achieve promising results on KQA Pro as on current datasets, which suggests that KQA Pro is challenging and Complex KBQA requires further research efforts. We also treat KQA Pro as a diagnostic dataset for testing multiple reasoning skills, conduct a thorough evaluation of existing models and discuss further directions for Complex KBQA. Our codes and datasets can be obtained from https://github.com/shijx12/KQAPro_Baselines.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

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="2007.03875")

Code

Syntology Ran 0 of 10 code samples harvested from 1 repository linked to this paper; 10 have no recorded run.

By repository: official repository: 10 samples from 1 repository, 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.

shijx12/kqapro_baselines officialmentioned in papermentioned on GitHubpytorchMIT report
happen2me/kqa-pro-datasets mentioned on GitHub report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. 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

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

10unverified

Licence: 0 of the 10 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 shijx12/kqapro_baselines. “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.

collate shijx12/kqapro_baselines/Bart_Program/data.py official repository unverified MIT (permissive) · efd0ac51d93a0daa · report
encode_dataset shijx12/kqapro_baselines/Bart_Program/preprocess.py official repository unverified MIT (permissive) · c79055984b79cecc · report
encode_dataset shijx12/kqapro_baselines/Bart_SPARQL/preprocess.py official repository unverified MIT (permissive) · e330a3e886196216 · report
get_program_seq shijx12/kqapro_baselines/Bart_Program/preprocess.py official repository unverified MIT (permissive) · ddb495680f6650e0 · report
load shijx12/kqapro_baselines/evaluate.py official repository unverified MIT (permissive) · f2644153c58a3490 · report
post_process shijx12/kqapro_baselines/Bart_Program/predict.py official repository unverified MIT (permissive) · facadc8602de5157 · report
validate shijx12/kqapro_baselines/Bart_Program/predict.py official repository unverified MIT (permissive) · 363b1bd85fb31dba · report
validate shijx12/kqapro_baselines/Bart_SPARQL/predict.py official repository unverified MIT (permissive) · e46e8bd5f842bf4b · report
whether_equal shijx12/kqapro_baselines/evaluate.py official repository unverified MIT (permissive) · 39b9e1fd3e199769 · report
whether_equal shijx12/kqapro_baselines/Bart_SPARQL/predict.py official repository unverified MIT (permissive) · dab51ce41e0aef5f · report

Tasks

AttributeDiagnosticDiversityQuestion AnsweringSemantic Parsing

Datasets

Introduced by this paper, per the archive.

KQA Pro

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

GRU

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