Citi interview question

group by in python was asked where and clause in sql