QUERY PLAN
GroupAggregate (cost=0.28..42.91 rows=2 width=20)
Group Key: project_id
-> Index Scan using tbl_work_logs_arrive_project_end_at_idx on tbl_work_logs (cost=0.28..42.86 rows=2 width=24)
Index Cond: (project_id = ANY ('{1018,2290,4024,4176,3880,3878,2282,3713,3980,2684}'::integer[]))