QUERY PLAN
HashAggregate (cost=216.10..216.17 rows=7 width=4)
Group Key: created_by
-> Seq Scan on tbl_purchase_contracts (cost=0.00..211.09 rows=2004 width=4)
Filter: (cost_type = 1)