SELECT Partition(o.freight,1, 500, 50) AS Χ,
Count(o.Freight) AS  FROM [Orders$] o
GROUP BY Partition(o.freight,1,500,50)