QUERY PLAN
Sort (cost=240.45..248.49 rows=3218 width=8)
Sort Key: user_id, sales_id
-> Seq Scan on tbl_user_resource_relationships (cost=0.00..52.97 rows=3218 width=8)
Filter: (sales_id IS NOT NULL)