QUERY PLAN
GroupAggregate (cost=400.87..400.98 rows=4 width=20)
Group Key: project_id
-> Sort (cost=400.87..400.88 rows=4 width=24)
Sort Key: project_id
-> Bitmap Heap Scan on tbl_work_logs (cost=43.80..400.83 rows=4 width=24)
Recheck Cond: (project_id = ANY ('{1111,4187,4184,4139,4174,3796,3854,1018,4186,4126}'::integer[]))
Filter: ((NOT is_draft) AND (scenario_id = 2))
-> Bitmap Index Scan on tbl_work_logs_project_end_at_idx (cost=0.00..43.80 rows=117 width=0)
Index Cond: (project_id = ANY ('{1111,4187,4184,4139,4174,3796,3854,1018,4186,4126}'::integer[]))