SQL
-- Return item, amount, and each order's rank by amount, highest first, as `rank`.
SELECT item, amount FROM orders;