Add case AUTO to QueryView class for using construct query method.