QUERY PLAN
Aggregate (cost=98.03..98.04 rows=1 width=72)
-> Nested Loop (cost=9.20..97.95 rows=4 width=18)
-> Hash Join (cost=8.92..38.85 rows=80 width=8)
Hash Cond: (pa.engineer_id = u.id)
-> Seq Scan on tbl_project_architects pa (cost=0.00..26.11 rows=1411 width=12)
-> Hash (cost=8.82..8.82 rows=8 width=4)
-> Seq Scan on tbl_users u (cost=0.00..8.82 rows=8 width=4)
Filter: (id = ANY ('{1017,5085,1001,5248,1015,1022,5296,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 >= '2025-01-01'::date) AND (bargain_date < '2026-01-01 00:00:00'::timestamp without time zone) AND (project_status = 3))