Database: codebase_community
Question: How many users are awarded with more than 5 badges?
SQL: SELECT COUNT(UserId) FROM ( SELECT UserId, COUNT(Name) AS num FROM badges GROUP BY UserId ) T WHERE T.num > 5