QUERY PLAN
Aggregate (cost=82.91..82.92 rows=1 width=96)
-> Seq Scan on tbl_sales_contracts (cost=0.00..69.66 rows=1766 width=15)