if a person is subject to the
Canada Pension Plan or to the comprehensive pension plan of a province of Canada during any period of presence or residence in the Republic of Latvia, that period shall be considered
as a period of residence in Canada for that person
as well
as for his or her spouse or common-law partner and dependants who reside with him or her in the Republic of Latvia, and who are not subject to the legislation of the Republic of Latvia by reason of employment or self-employment;