Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
How many rides did it take to get less than 3 bonus pts in no more than 7 matches?

### Inputs:
table_name: table, columns: ['Rider', 'Matches', 'Rides', 'Bonus Pts', 'Total Points']

### Response:
SELECT MIN Rides FROM table WHERE Bonus Pts < 3 AND Matches < 7