Add spec for select with both where and group by clauses