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

### Instruction:
What's the series number of the episode with a season number 5, written by Bernie Ancheta?

### Inputs:
table_name: table, columns: ['No. in series', 'No. in season', 'Title', 'Directed by', 'Written by', 'Original air date', 'Prod. code', 'U.S. Viewers (in millions)']

### Response:
SELECT MIN No. in series FROM table WHERE Written by = Bernie Ancheta AND No. in season = 5