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

### Instruction:
What is the sum of caps for players with less than 9 goals ranked below 8?

### Inputs:
table_name: table, columns: ['Rank', 'Player', 'Nation', 'Caps', 'Goals', 'Years']

### Response:
SELECT SUM Caps FROM table WHERE Goals < 9 AND Rank > 8