text: Below is an context that describes a sql query, paired with an question that provides further information. Write an answer that appropriately completes the request.  # noqa: E501
  ### Context:
  CREATE TABLE table_name_16 (rides VARCHAR, bonus_pts VARCHAR, total_points VARCHAR, rider VARCHAR)
  ### Question:
  How many rides did it take Ray Day to get 274 points in total with less than 3 bonus points?
  ### Answer:
  SELECT COUNT(rides) FROM table_name_16 WHERE total_points < 274 AND rider = "ray day" AND bonus_pts > 3