SELECT COUNT(customer_id), country
FROM customers
GROUP BY country
HAVING COUNT(customer_id) > 5;
count | country -------+--------- 13 | USA 11 | France 9 | Brazil 7 | UK 11 | Germany (5 rows)
categories customers products orders order_details testproducts