QUERY PLAN
Sort (cost=70.48..70.53 rows=21 width=21)
Sort Key: tbl_project_architects.contribution DESC, tbl_project_architects.engineer_id
-> Hash Left Join (cost=9.17..70.02 rows=21 width=21)
Hash Cond: (tbl_project_architects.engineer_id = u.id)
-> Seq Scan on tbl_project_architects (cost=0.00..60.79 rows=21 width=12)
Filter: (project_id = ANY ('{2939,3915,3914,3888,3864,3937,3939,3921,3931,3232,3461,3695,3778,3832,3849,3868,3923,3927,3938,3907}'::integer[]))
-> Hash (cost=7.41..7.41 rows=141 width=13)
-> Seq Scan on tbl_users u (cost=0.00..7.41 rows=141 width=13)