QUERY PLAN
Sort (cost=71.95..72.00 rows=21 width=21)
Sort Key: tbl_project_architects.contribution DESC, tbl_project_architects.engineer_id
-> Hash Left Join (cost=9.24..71.49 rows=21 width=21)
Hash Cond: (tbl_project_architects.engineer_id = u.id)
-> Seq Scan on tbl_project_architects (cost=0.00..62.19 rows=21 width=12)
Filter: (project_id = ANY ('{4184,4182,4166,3991,4079,4078,3950,3899,3886,3855,3760,3590,3576,1983,1963,1938,1929,1925,1460,1240}'::integer[]))
-> Hash (cost=7.44..7.44 rows=144 width=13)
-> Seq Scan on tbl_users u (cost=0.00..7.44 rows=144 width=13)