Pgsql Where Having Group By Sql Interview