QUERY PLAN
HashAggregate (cost=1.08..1.10 rows=2 width=4)
Group Key: created_by
-> Seq Scan on tbl_purchase_contracts (cost=0.00..1.07 rows=4 width=4)
Filter: (cost_type = 1)