Database: codebase_community (difficulty: simple)
Question: How long did it take the user, known by his or her display name 'Ben Smiley' to get the badge? Count from the date the user's account was created.
SQL: SELECT T1.Date - T2.CreationDate FROM badges AS T1 INNER JOIN users AS T2 ON T1.UserId = T2.Id WHERE T2.DisplayName = 'Ben Smiley'