QUERY PLAN
Aggregate (cost=224.90..224.91 rows=1 width=8)
-> Nested Loop (cost=0.00..224.90 rows=1 width=4)
Join Filter: (otc.operation_task_id = ot.id)
-> Seq Scan on tbl_operation_task_contacts otc (cost=0.00..219.30 rows=1 width=8)
Filter: ((complete_at >= '2025-01-01 00:00:00+08'::timestamp with time zone) AND (complete_at <= '2025-12-31 23:59:59+08'::timestamp with time zone))
-> Seq Scan on tbl_operation_tasks ot (cost=0.00..5.59 rows=1 width=4)
Filter: (head_of = 1001)