QUERY PLAN
HashAggregate (cost=74.76..74.84 rows=8 width=4)
Group Key: created_by
-> Seq Scan on tbl_purchase_contracts (cost=0.00..69.65 rows=2045 width=4)
Filter: (cost_type = 1)