QUERY PLAN
Aggregate (cost=122.61..122.62 rows=1 width=32)
-> Seq Scan on tbl_sales_contracts t (cost=0.00..122.56 rows=16 width=3)
Filter: (build_by_project AND (NOT need_analysis) AND (created_at < '2025-08-08 14:34:58+08'::timestamp with time zone))