QUERY PLAN
Aggregate (cost=1.74..1.75 rows=1 width=8)
-> Sort (cost=1.73..1.73 rows=1 width=612)
Sort Key: s.created_by DESC, s.created_at DESC
-> Group (cost=1.71..1.72 rows=1 width=612)
Group Key: s.id
-> Sort (cost=1.71..1.72 rows=1 width=16)
Sort Key: s.id
-> Seq Scan on tbl_task_files s (cost=0.00..1.70 rows=1 width=16)
Filter: (task_group_id = 194)