<s>[INST] Write a SQL code to find the average distance traveled by riders to reach the merchant's location.  [/INST] SELECT AVG(rider_distancetomerchant) AS average_distance_to_merchant FROM order_transaction.transaction_detail_deprecated; </s>