Added group by to docs