<s>[INST] Write a SQL code to calculate the average time taken by riders to deliver food orders.  [/INST] SELECT AVG(rider_fooddeliveredtime) AS average_food_delivery_time FROM order_transaction.transaction_detail_deprecated; </s>