Improving Multi-hop Logical Reasoning in Knowledge Graphs with Context-Aware Query Representation Learning