QUERY PLAN
Aggregate (cost=11.87..11.88 rows=1 width=8)
-> Seq Scan on tbl_punch_leaves (cost=0.00..11.87 rows=1 width=8)
Filter: ((leave_start >= '2026-01-01'::date) AND (leave_start <= '2026-12-31'::date) AND (created_by = 5064) AND (leave_type = 6) AND (status = ANY ('{1,2,5}'::integer[])))