has worked 40 qualifying quarters of coverage as defined under title II of the Social Security Act or can be credited with such qualifying quarters.
(b) has worked 40 qualifying quarters of coverage as defined under title II of the Social Security Act or can be credited with such qualifying quarters. In determining the number of qualifying quarters of coverage, an alien is credited with the following:
(1)all qualifying quarters of coverage worked by the alien;#
(1) all qualifying quarters of coverage worked by the alien;
(2)all qualifying quarters of coverage worked by a parent of such alien while the alien was under age 18; and#
(2) all qualifying quarters of coverage worked by a parent of such alien while the alien was under age 18; and
(3)all qualifying quarters worked by the spouse of such alien during their marriage and the alien remains married to such spouse or such spouse is deceased; and#
(3) all qualifying quarters worked by the spouse of such alien during their marriage and the alien remains married to such spouse or such spouse is deceased; and For purposes of clause ( b ) of this subparagraph, no qualifying quarters of coverage provided for in subclause ( 1 ) of this clause for any period beginning after December 31, 1996 may be credited to an alien if such alien, for purposes of item ( i ) or the parents or spouse of such alien, for purposes of items ( ii ) and ( iii ) respectively, received any Federal means-tested public benefit during the period for which such qualifying quarter of coverage is credited.