Home > Published Issues > 2026 > Volume 17, No. 9, 2026 >
JAIT 2026 Vol.17(9): 1798-1809
doi: 10.12720/jait.17.9.1798-1809

StruQTO: Structure-aware Query Tree Optimization for Complex Logical Query over Knowledge Graphs

Yuyin Chen 1 and Guanfeng Li 1,2,*
1. School of Information Engineering, Ningxia University, Yinchuan, Ningxia, China
2. Ningxia Key Laboratory of Artificial Intelligence and Information Security for Channeling Computing Resources from the East to the West, Yinchuan, Ningxia, China
Email: 12023131985@stu.nxu.edu.cn (Y.C.); Ligf@nxu.edu.cn (G.L.)
*Corresponding author

Manuscript received March 25, 2026; revised May 19, 2026; accepted July 3, 2026; published September 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
 
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. doi: 10.12720/jait.17.9.1798-1809

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).

Article Metrics in Dimensions