QUERY PLAN
Sort (cost=58.97..58.99 rows=9 width=21)
Sort Key: tbl_project_architects.contribution DESC, tbl_project_architects.engineer_id
-> Hash Left Join (cost=18.24..58.82 rows=9 width=21)
Hash Cond: (tbl_project_architects.engineer_id = u.id)
-> Seq Scan on tbl_project_architects (cost=0.00..40.56 rows=9 width=12)
Filter: (project_id = ANY ('{4167,4166,4161,4164,4155,4158,1018,1111}'::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)