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

### Instruction:
Which deputy prime minister left office in 2004 and was in the 7th legislature?

### Inputs:
table_name: table, columns: ['Deputy Prime Minister', 'Took office', 'Left office', 'Prime Minister', 'Term', 'Party']

### Response:
SELECT Deputy Prime Minister FROM table WHERE Term = 7th legislature AND Left office = 2004