YOU SAID:
James while John had had had had had had had had had a better effect on the teacher.
INTO JAPANESE
ジョンがいた間、ジェームズは先生により良い影響を与えました。
BACK INTO ENGLISH
James had a better influence on his teacher while John was there.
INTO JAPANESE
ジョンがそこにいた間、ジェームズは彼の先生により良い影響を与えました。
BACK INTO ENGLISH
James had a better influence on his teacher while John was there.
That didn't even make that much sense in English.