Fix columns assignment return-inside-block error.
Symbolize keys in filters.
Tidy up grouping sql.