QUERY PLAN
Sort (cost=80.74..80.79 rows=21 width=21)
Sort Key: tbl_project_architects.contribution DESC, tbl_project_architects.engineer_id
-> Hash Left Join (cost=18.24..80.28 rows=21 width=21)
Hash Cond: (tbl_project_architects.engineer_id = u.id)
-> Seq Scan on tbl_project_architects (cost=0.00..61.98 rows=21 width=12)
Filter: (project_id = ANY ('{4024,4002,4144,4099,4151,4081,4154,4037,3993,3992,3986,3580,4092,4095,4049,4041,4020,4001,3997,3996}'::integer[]))
-> Hash (cost=16.44..16.44 rows=144 width=13)
-> Seq Scan on tbl_users u (cost=0.00..16.44 rows=144 width=13)