QUERY PLAN
Aggregate (cost=3.65..3.66 rows=1 width=8)
-> Seq Scan on tbl_punch_leaves (cost=0.00..3.65 rows=1 width=0)
Filter: ((leave_start <= '2025-03-13'::date) AND (leave_end >= '2025-03-13'::date) AND (created_by = 1000))