makes restaurantHasViolationsByName functions for each resturant has violations by name