QUERY PLAN
Aggregate (cost=8.07..8.08 rows=1 width=8)
-> Sort (cost=7.36..7.48 rows=47 width=253)
Sort Key: s.created_at DESC
-> HashAggregate (cost=5.59..6.06 rows=47 width=253)
Group Key: s.id
-> Seq Scan on tbl_operation_tasks s (cost=0.00..5.47 rows=47 width=12)