QUERY PLAN
HashAggregate (cost=56.40..56.47 rows=7 width=4)
Group Key: created_by
-> Seq Scan on tbl_purchase_contracts (cost=0.00..51.72 rows=1872 width=4)