<s>[INST] Write a SQL code to count the number of shops in each unique subdistrict in Thai (Thailand).  [/INST] SELECT shop_subdistrict_th, COUNT(*) AS total_shops_per_subdistrict_th FROM order_transaction.transaction_detail_deprecated GROUP BY shop_subdistrict_th; </s>