QUERY PLAN
GroupAggregate (cost=79.55..79.83 rows=14 width=12)
Group Key: parent_id
-> Sort (cost=79.55..79.60 rows=18 width=4)
Sort Key: parent_id
-> Seq Scan on tbl_tasks (cost=0.00..79.17 rows=18 width=4)
Filter: ((status = 1) AND (parent_id = ANY ('{9,17,23,10,34,12,11,52,15,58,62,57,63,61,54,48,74,76,75,71}'::integer[])))