QUERY PLAN
Aggregate (cost=83.92..83.93 rows=1 width=72)
-> Nested Loop (cost=9.33..83.89 rows=1 width=18)
-> Hash Join (cost=9.05..39.19 rows=60 width=8)
Hash Cond: (pa.engineer_id = u.id)
-> Seq Scan on tbl_project_architects pa (cost=0.00..26.28 rows=1428 width=12)
-> Hash (cost=8.97..8.97 rows=6 width=4)
-> Index Only Scan using tbl_users_pkey on tbl_users u (cost=0.14..8.97 rows=6 width=4)
Index Cond: (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))