How many rides did it take to get less than 3 bonus pts in no more than 7 matches?
CREATE TABLE "1965_season_finished_5th_39pts_out_of_18" (
  "rider" text,
  "matches" real,
  "rides" real,
  "bonus_pts" real,
  "total_points" real
);
SELECT MIN("rides") FROM "1965_season_finished_5th_39pts_out_of_18" WHERE "bonus_pts"<3 AND "matches"<7;