Fix bug in SQL statement error

PG::GroupingError: ERROR:  column "workloads.start_at" must appear
in the GROUP BY clause or be used in an aggregate function