QUERY PLAN
HashAggregate (cost=75.21..75.28 rows=7 width=4)
Group Key: created_by
-> Seq Scan on tbl_purchase_contracts (cost=0.00..69.85 rows=2143 width=4)
Filter: (cost_type = 1)