Edit the sentence to correct any errors.
John, who had went there before.
John, who had gone there before.
Complete the following task based on the instruction and optional input provided.### Instruction:
Edit the sentence to correct any errors.

### Input:
John, who had went there before.

### Output:
John, who had gone there before.