In order_items each row is a product bought on an order. Return product_id and units_sold (the sum of quantity) for the five products with the most units sold. Sort by units_sold from high to low, then by product_id.
Hint 1
Group by product_id and sum quantity.
Hint 2
COUNT(*) would count lines, not units.
Reference solution
SELECT product_id, SUM(quantity) AS units_sold
FROM order_items
GROUP BY product_id
ORDER BY units_sold DESC, product_id
LIMIT 5;
One order line can hold several units (quantity = 3). To measure volume you add up the quantities with SUM(quantity); counting the lines measures how many times the product appeared in an order. Always ask which of the two the question means.