ratings schema group by examples