<s>[INST] Write a SQL code to determine the average time taken by riders to pick up meals for delivery.  [/INST] SELECT AVG(rider_mealpickeduptime) AS average_time_to_pickup_meals FROM order_transaction.transaction_detail_deprecated; </s>