Enabled appending groupBy after where clause