Virtually all of the advantage that wealthy students have over
poor students is the result of differences in the way privileged
kids learn while they are not in school.
Note that the verb of each subordinate clause agrees with its
subject (students have; kids learn; they are).