QUERY PLAN
Sort (cost=69.28..69.33 rows=21 width=21)
Sort Key: tbl_project_architects.contribution DESC, tbl_project_architects.engineer_id
-> Hash Left Join (cost=9.13..68.82 rows=21 width=21)
Hash Cond: (tbl_project_architects.engineer_id = u.id)
-> Seq Scan on tbl_project_architects (cost=0.00..59.64 rows=21 width=12)
Filter: (project_id = ANY ('{3758,3689,3594,3580,3452,3796,3801,3665,3784,3781,3727,3725,3703,3256,2777,3488,3800,3793,3794,3792}'::integer[]))
-> Hash (cost=7.39..7.39 rows=139 width=13)
-> Seq Scan on tbl_users u (cost=0.00..7.39 rows=139 width=13)