Meta interview question

Produce a histogram using a SQL query.