get the max race id for the given event