Query Structure Modeling for Inductive Logical Reasoning Over Knowledge Graphs