scan_id is the primary key. Each row records the measured weight of one parcel processed by a sorting hub.
Find the heaviest parcel recorded at each hub.
Return hub_id and the maximum weight as max_weight_grams. Order the results by max_weight_grams from highest to lowest. When multiple hubs have the same maximum weight, order them by hub_id from lowest to highest. Return no rows when the table is empty.
Output
+------------------+---------+
| Column Name | Type |
+------------------+---------+
| hub_id | integer |
| max_weight_grams | integer |
+------------------+---------+
+------------------+---------+
| Column Name | Type |
+------------------+---------+
| hub_id | integer |
| max_weight_grams | integer |
+------------------+---------+
Explanation: Hub 101 receives parcels weighing 1500 and 359 grams, so its maximum is 1500. Hub 202 has a maximum of 5512, while hub 303 has one parcel weighing 133. The rows are ordered by each hub's maximum weight.