<s>[INST] Write a SQL code to count the number of shops for each unique user role code associated with the shop.  [/INST] SELECT shop_user_role_code, COUNT(*) AS total_shops_per_user_role_code FROM order_transaction.transaction_detail_deprecated GROUP BY shop_user_role_code; </s>