<s>[INST] Write a SQL code to determine the average time taken by riders to arrive at the customer's location during deliveries.  [/INST] SELECT AVG(rider_arrivedatcustlocationtime) AS average_time_to_customer_location FROM order_transaction.transaction_detail_deprecated; </s>