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

### Instruction:
What years played did the player with a rank under 10, more than 271 matches, and 152 goals have?

### Inputs:
table_name: table, columns: ['Rank', 'Name', 'Years', 'Matches', 'Goals']

### Response:
SELECT Years FROM table WHERE Rank < 10 AND Matches > 271 AND Goals = 152