QUERY PLAN
Group (cost=71.53..71.56 rows=4 width=4)
Group Key: created_by
-> Sort (cost=71.53..71.55 rows=5 width=4)
Sort Key: created_by
-> Seq Scan on tbl_purchase_contracts (cost=0.00..71.47 rows=5 width=4)
Filter: (cost_type = 2)