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

### Instruction:
What is the total End term with a Title of prince regent of bavaria?

### Inputs:
table_name: table, columns: ['Name', 'Title', 'Start term', 'End term', 'House']

### Response:
SELECT SUM End term FROM table WHERE Title = prince regent of bavaria