DDC-2390: Remove Query dependency in SqlWalker and Parser

To prevent future problems with illegal Query parameter access and also to decouple the namespaces by removing bidirectional dependency.