select floor(elo_rating / 50) * 50 as bucket, count(*) as count from {elo_schema}.ratings group by bucket order by bucket