<s>[INST] Write a SQL code to determine the number of orders handled by each unique rider.  [/INST] SELECT rider_riderid, COUNT(*) AS total_orders_handled FROM order_transaction.transaction_detail_deprecated GROUP BY rider_riderid; </s>