QUERY PLAN
HashAggregate (cost=8.80..8.89 rows=9 width=4)
Group Key: id
-> Seq Scan on tbl_users (cost=0.00..8.78 rows=9 width=4)
Filter: ((user_status = '1'::type_global_user_status) AND (department_id = ANY ('{3,7,9,10,6,8}'::integer[])))