QUERY PLAN
GroupAggregate (cost=55.67..55.77 rows=6 width=12)
Group Key: parent_id
-> Sort (cost=55.67..55.68 rows=6 width=4)
Sort Key: parent_id
-> Seq Scan on tbl_tasks (cost=0.00..55.59 rows=6 width=4)
Filter: ((status = 1) AND (parent_id = ANY ('{1836,1835,1834,1831,1813}'::integer[])))