QUERY PLAN
Aggregate (cost=83.42..83.43 rows=1 width=72)
-> Nested Loop (cost=8.87..83.40 rows=1 width=18)
-> Hash Join (cost=8.59..38.81 rows=60 width=8)
Hash Cond: (pa.engineer_id = u.id)
-> Seq Scan on tbl_project_architects pa (cost=0.00..26.34 rows=1434 width=12)
-> Hash (cost=8.52..8.52 rows=6 width=4)
-> Seq Scan on tbl_users u (cost=0.00..8.52 rows=6 width=4)
Filter: (id = ANY ('{5085,5248,1015,1022,5064,1023}'::integer[]))
-> Index Scan using tbl_projects_pkey on tbl_projects p (cost=0.28..0.74 rows=1 width=14)
Index Cond: (id = pa.project_id)
Filter: ((bargain_date >= '2026-01-01'::date) AND (bargain_date < '2027-01-01 00:00:00'::timestamp without time zone) AND (project_status = 3))