QUERY PLAN
Aggregate (cost=72.95..72.96 rows=1 width=32)
-> Seq Scan on tbl_sales_contracts (cost=0.00..72.83 rows=49 width=3)
Filter: (build_by_project AND (erp_un_settle_amount > '0'::numeric))