sql most frequent value for each group, oozes pathfinder 2e