Meta Interview Question

In python, word count and sql queries involving aggregations