QUERY PLAN
GroupAggregate (cost=71.45..71.67 rows=10 width=12)
Group Key: parent_id
-> Sort (cost=71.45..71.49 rows=16 width=4)
Sort Key: parent_id
-> Seq Scan on tbl_tasks (cost=0.00..71.13 rows=16 width=4)
Filter: ((status = 1) AND (parent_id = ANY ('{233,81,347,346,850,796,1537,1536,1550,1664,1658,1660,1666,413,355,234,93}'::integer[])))