The phrase "James while John had had had had had had had had had had had a better effect on the teacher" is a classic example of a linguistically complex sentence that plays with phrasing and punctuation to create an interesting scenario concerning the use of the word "had.