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

### Instruction:
What was the ranking for the episode number before 24 that had a rating of 25.7?

### Inputs:
table_name: table, columns: ['Season', 'Ep #', 'Season Premiere', 'Season Finale', 'Ranking', 'Viewers (Households in millions)', 'Rating']

### Response:
SELECT Ranking FROM table WHERE Ep # < 24 AND Rating = 25.7