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 ('{3805,3814,3811,3798,3695,3232,3813,3812,3810,3809,3808,3807,3804,3806,3461,3787,3778,3803,3702,3797}'::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)