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

### Instruction:
Tell me the week for result of l 31-27, and an Attendance smaller than 85,865

### Inputs:
table_name: table, columns: ['Week', 'Date', 'Opponent', 'Result', 'Attendance']

### Response:
SELECT AVG Week FROM table WHERE Result = l 31-27 AND Attendance < 85,865