DecodeQuery