I have a query that works fine in a SQL editor:
UPDATE users mu JOIN (SELECT min.user_id as user_id, (max.total_followers - min.total_followers