<s>[INST] Write a SQL code to find the average time taken by riders to arrive at the merchant's location.  [/INST] SELECT AVG(rider_arrivedatmerchanttime) AS average_time_to_merchant FROM order_transaction.transaction_detail_deprecated; </s>