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

### Instruction:
when was the loan ended when the country is ghana?

### Inputs:
table_name: table, columns: ['Name', 'Country', 'Loan Club', 'Started', 'Ended', 'Start Source', 'End Source']

### Response:
SELECT Ended FROM table WHERE Country = ghana