QUERY PLAN
Aggregate (cost=129.11..129.12 rows=1 width=32)
-> Seq Scan on tbl_purchase_contracts t (cost=0.00..129.08 rows=13 width=3)
Filter: ((NOT is_draft) AND (NOT is_refuse) AND is_chargeback AND (created_at < '2025-08-08 14:34:58+08'::timestamp with time zone) AND (cost_type = 1))