QUERY PLAN
Aggregate (cost=74.25..74.26 rows=1 width=32)
-> Seq Scan on tbl_sales_contracts (cost=0.00..74.08 rows=67 width=3)
Filter: (build_by_project AND (erp_un_settle_amount > '0'::numeric))