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 ('{3810,3809,3808,3807,3801,3786,3767,3764,3760,3751,3752,3744,3723,3714,3679,3653,3686,3661,3660,3652}'::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)