Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

DeSQ: Decomposition-based SPARQL Query Generation

About

Dominant approaches to Knowledge Base Question Answering (KBQA) fall into two categories. First is the generation of a formal query that suffers from brittleness and limited explainability, and the second is direct answer retrieval through KB exploration that is computationally costly and prone to hallucination. To combine the strengths of both paradigms while mitigating their respective weaknesses, we introduce DeSQ (Decomposition-based SPARQL Query Generation), a KB-agnostic framework that operates in three stages. First, it decomposes complex questions into Atomic Constraints (ACs) that mirror the relational structure of the underlying KB. Second, it generates a two-part structured output: (a) Mapping of each AC to its corresponding SPARQL Fragment, using standardized variable and URIs placeholders, and (b) URIs Grounding block describing each placeholder. Third, it assembles these fragments into a complete SPARQL query. DeSQ surpasses state-of-the-art approaches on four out of five major benchmarks and demonstrates superior robustness to lexical variation. Beyond performance gains, our framework greatly simplifies evaluation by eliminating the need for a live KB endpoint, and its structured output enables fine-grained error analysis, allowing more targeted interventions for improvement.

Papa Abdou Karim Karou Diallo, Aditya Sharma, Neshat Elhami Fard, Amal Zouaq• 2026

Related benchmarks

TaskDatasetResultRank
Knowledge Base Question AnsweringGrailQA--
40
Knowledge Base Question AnsweringCWQ
Hits@178
30
Knowledge Base Question AnsweringWebQSP
Exact Match (EM)80
2
Knowledge Graph Question AnsweringQALD-10
EM66
2
Knowledge Base Question AnsweringLCQ2 (Raw)
Exact Match95
1
Knowledge Base Question AnsweringLCQ2 (Ref)
Exact Match70
1
Showing 6 of 6 rows

Other info

Follow for update