QUERY PLAN
GroupAggregate (cost=0.28..57.78 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..57.76 rows=1 width=24)
Index Cond: (project_id = ANY ('{4184,4182,4186,4185,4183,4181,4174,4173,4172,4171,4170,4169,4168,4167,4166,4144,4161,4164,4151,4157}'::integer[]))