QUERY PLAN
GroupAggregate (cost=0.00..2.17 rows=1 width=12)
Group Key: sales_goal_id
-> Seq Scan on tbl_sales_goal_rels (cost=0.00..2.15 rows=1 width=4)
Filter: ((sales_goal_id = 15) AND (user_id = ANY ('{5332,1001,5087,5467,5300,5311,5295,1013,5476,1004,1005,5449}'::integer[])))