QUERY PLAN
HashAggregate (cost=93.11..93.20 rows=9 width=4)
Group Key: created_by
-> Seq Scan on tbl_purchase_contracts (cost=0.00..88.42 rows=1874 width=4)
Filter: (cost_type = 1)