QUERY PLAN
HashAggregate (cost=33.10..35.10 rows=200 width=4)
Group Key: department_id
-> Seq Scan on tbl_punch_strategy_resource_rels (cost=0.00..28.50 rows=1841 width=4)
Filter: (department_id IS NOT NULL)