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