QUERY PLAN
Aggregate (cost=67.89..67.90 rows=1 width=32)
-> Seq Scan on tbl_sales_contracts (cost=0.00..63.71 rows=1671 width=3)