QUERY PLAN
GroupAggregate (cost=0.28..38.91 rows=1 width=20)
Group Key: project_id
-> Index Scan using tbl_work_logs_arrive_project_end_at_idx on tbl_work_logs (cost=0.28..38.88 rows=1 width=24)
Index Cond: (project_id = ANY ('{4024,4005,4149,4136,4133,4184,4182,4165,4163,4147}'::integer[]))