Fix default flag value, prevents the builder of building an empty string.
* removed unused QueryType