<s>[INST] Write a SQL code to find the total number of shops for each unique branch code.  [/INST] SELECT shop_branch_code, COUNT(*) AS total_shops_per_branch_code FROM order_transaction.transaction_detail_deprecated GROUP BY shop_branch_code; </s>