[Paper Review] Agentic SPARQL: Evaluating SPARQL-MCP-powered Intelligent Agents on the Federated KGQA Benchmark
This paper introduces SPARQL-MCP for agentic federated KGQA, builds a combined FK GQA benchmark, and evaluates LLM agents (GPT-5.2 and Qwen3-8B) across three setups, showing GPT-5.2 achieving 42.1–45.4% accuracy and highlighting the impact of high-level endpoint descriptions on performance.
Standard protocols such as the Model Context Protocol (MCP) that allow LLMs to connect to tools have recently boosted "agentic" AI applications, which, powered by LLMs' planning capabilities, promise to solve complex tasks with the access of external tools and data sources. In this context, publicly available SPARQL endpoints offer a natural connection to combine various data sources through MCP by (a) implementing a standardised protocol and query language, (b) standardised metadata formats, and (c) the native capability to federate queries. In the present paper, we explore the potential of SPARQL-MCP-based intelligent agents to facilitate federated SPARQL querying: firstly, we discuss how to extend an existing Knowledge Graph Question Answering benchmark towards agentic federated Knowledge Graph Question Answering (FKGQA); secondly, we implement and evaluate the ability of integrating SPARQL federation with LLM agents via MCP (incl. endpoint discovery/source selection, schema exploration, and query formulation), comparing different architectural options against the extended benchmark. Our work complements and extends prior work on automated SPARQL query federation towards fruitful combinations with agentic AI.
Motivation & Objective
- Extend KGQA benchmarking to agentic federated KGQA (FKGQA).
- Develop a SPARQL-MCP server enabling endpoint discovery, schema exploration, and federation.
- Evaluate agentic SPARQL with state-of-the-art LLMs across architectural setups.
- Analyze model behavior, endpoint discovery patterns, and query efficiency in federated settings.
Proposed method
- Propose SPARQL-MCP extension for federated querying with dynamic endpoint exploration and VoID metadata handling.
- Integrate a proxy federation engine to manage multi-service SERVICE calls and address endpoint blocking.
- Extend Spider4SPARQL into a federated KGQA benchmark with vertical, class-based, and horizontal shard partitioning.
- Evaluate three agentic setups (baseline, high_level endpoint descriptions, void_tool VoID retrieval) using ReAct-style agents and MSP (MCP) tooling.
- Measure syntactic validity, pipeline accuracy, endpoint accuracy, and behavioral patterns across GPT-5.2 and Qwen3-8B.
Experimental results
Research questions
- RQ1Can agentic SPARQL agents autonomously discover endpoints, explore schemas, and formulate federated SPARQL queries from natural language questions?
- RQ2How do endpoint discovery and schema exploration strategies affect accuracy and efficiency in federated KGQA?
- RQ3What are the performance differences between a high-capacity model (GPT-5.2) and a smaller model (Qwen3-8B) in agentic SPARQL tasks?
- RQ4Does providing high-level endpoint descriptions improve source selection and reduce unnecessary federation?
Key findings
- GPT-5.2 achieved 42.1% baseline, 45.4% high_level, and 43.5% void_tool accuracy, comparable to state-of-the-art on Spider4SPARQL despite federation complexity.
- Qwen3-8B achieved 13.1% baseline, 13.2% high_level, and 13.8% void_tool accuracy, substantially lower than GPT-5.2.
- Syntactic success across all runs was 75.7% (29,431/38,886) with GPT-5.2 at 97.4–98.0% and Qwen at 41.5–61.1%.
- GPT-5.2 showed high endpoint consult rates in baseline (90.7%) and void_tool (91.7%), but much lower in high_level (25.8%), while Qwen-8B achieved 98.6% endpoint success in void_tool.
- A large majority of GPT-5.2 queries were trivial federations in baseline (90.2–91.7%), dropping to 11.0% in high_level; Qwen-8B remained highly trivial (68.5–98.6%).
- Realized federation touched an average of 4.84 shards with 24.49% of queries matching exactly one shard, and average fan-out across datasets was 6.48 shards (min 2, max 14).
- VoID retrieval calls were about 1.0–1.1 per run across setups, with overall end-to-end runtimes median around 16.3–31.9 seconds depending on model.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.