<s>[INST] Write a SQL code to identify the number of shops for each unique shop name.  [/INST] SELECT shop_name, COUNT(*) AS total_shops_per_name FROM order_transaction.transaction_detail_deprecated GROUP BY shop_name; </s>