QUERY PLAN
HashAggregate (cost=70.18..70.25 rows=7 width=4)
Group Key: created_by
-> Seq Scan on tbl_purchase_contracts (cost=0.00..65.16 rows=2009 width=4)
Filter: (cost_type = 1)