We use analytics and advertising cookies to understand how the site is used and whether our ads on Facebook and Instagram work. They are set only if you accept. See our Privacy Policy for details.
Use a CTE listing the distinct user ids that have a 'purchase' event, then return each 'country' and how many distinct purchasers it has as 'purchasers'. Join the CTE back to 'users'.