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