2026
doi: 10.12720/jait.17.9.1798-1809
StruQTO: Structure-aware Query Tree Optimization for Complex Logical Query over Knowledge Graphs
- 1School of Information Engineering, Ningxia University, Yinchuan, Ningxia, China
- 2Ningxia Key Laboratory of Artificial Intelligence and Information Security for Channeling Computing Resources from the East to the West, Yinchuan, Ningxia, China
- Manuscript receivedMarch 25, 2026
- revisedMay 19, 2026
- acceptedJuly 3, 2026
- publishedSeptember 24, 2026
Abstract
Existing methods for complex logical query answering over knowledge graphs fall into two categories. The first category relies on explicitly engineered logical operators, which suffer from pronounced error accumulation when handling complex query structures. The second category directly delegates reasoning to Large Language Models (LLMs), often leading to disorganized reasoning trajectories and logical hallucinations. To address these issues, we propose Structure-aware Query Tree Optimization (StruQTO), a structure-centric approach that foregrounds query-structure dependencies for complex logical querying. StruQTO parses a First-Order Logic (FOL) query into a Query Computation Tree (QCT) and conducts local-independence analysis among substructures based on variable-dependency patterns, thereby constructing a Structured Chain-of-Thought (SCoT) that is strictly aligned with the original logical expression. The method explicitly distinguishes weakly coupled and strongly coupled substructures, guiding the LLM to execute reasoning in the query’s true logical order while tightly constraining variable binding and set-theoretic operations throughout inference. Experiments on two public benchmarks, FB15K-237 and NELL-995, show that StruQTO achieves competitive or superior performance across a wide range of complex query patterns, with particularly notable improvements on structurally complex and negation-related queries. Ablation studies further validate the contributions of QCT construction and local-independence analysis to the overall performance gains.
Keywords
- knowledge graphs
- complex logical query
- Large Language Models (LLMs)
- query computation trees
How to Cite
Yuyin Chen and Guanfeng Li, "StruQTO: Structure-aware Query Tree Optimization for Complex Logical Query over Knowledge Graphs," Journal of Advances in Information Technology, vol. 17, no. 9, pp. 1798-1809, 2026. https://doi.org/10.12720/jait.17.9.1798-1809
Copyright & License
Copyright © 2026 by the authors. This is an open access article distributed under the Creative Commons Attribution License which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited (CC BY 4.0).






