QUERY PLAN
Seq Scan on tbl_task_group_head_of_relationships (cost=0.00..5.86 rows=5 width=12)
Filter: ((user_id = 1001) AND (task_group_id = ANY ('{87,85,83,79,78,74}'::integer[])))