Meta Interview Question

Produce a histogram using a SQL query.