Find the total number of shops for each unique provider id.

SELECT shop_provider_id, COUNT(*) AS total_shops_per_provider_id
FROM order_transaction.transaction_detail_deprecated
GROUP BY shop_provider_id;