(b) a student attending, or a teacher teaching at, an educational institution outside Canada that is a university, college or other educational institution providing courses at a post-secondary school level who had, in any previous year, ceased to be resident in the Province of Quebec in the course of or subsequent to moving to attend or to teach at, as the case may be, that institution,