QUERY PLAN
Aggregate (cost=122.71..122.72 rows=1 width=32)
-> Seq Scan on tbl_sales_contracts (cost=0.00..122.56 rows=59 width=3)
Filter: (build_by_project AND (erp_un_settle_amount > '0'::numeric))