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 ('{1111,4187,4184,4139,4174,3796,3854,1018,4186,4126}'::integer[]))