Implemented reset query state for all query types.