<s>[INST] Write a SQL code to determine the total number of shops for each unique merchant status reason.  [/INST] SELECT shop_merchant_status_reason, COUNT(*) AS total_shops_per_merchant_status_reason FROM order_transaction.transaction_detail_deprecated GROUP BY shop_merchant_status_reason; </s>