(4) Disqualified person For purposes of this subsection— (A) In general The term “disqualified person” means any person if— (i) the aggregate number of deemed-owned shares of such person and the members of such person’s family is at least 20 percent of the number of deemed-owned shares of stock in the S corporation, or (ii) in the case of a person not described in clause (i), the number of deemed-owned shares of such person is at least 10 percent of the number of deemed-owned shares of stock in such corporation. (B) Treatment of family members In the case of a disqualified person described in subparagraph (A)(i), any member of such person’s family with deemed-owned shares shall be treated as a disqualified person if not otherwise treated as a disqualified person under subparagraph (A). (C) Deemed-owned shares (i) In general The term “deemed-owned shares” means, with respect to any person— (I) the stock in the S corporation constituting employer securities of an employee stock ownership plan which is allocated to such person under the plan, and (II) such person’s share of the stock in such corporation which is held by such plan but which is not allocated under the plan to participants. (ii) Person’s share of unallocated stock For purposes of clause (i)(II), a person’s share of unallocated S corporation stock held by such plan is the amount of the unallocated stock which would be allocated to such person if the unallocated stock were allocated to all participants in the same proportions as the most recent stock allocation under the plan. (D) Member of family For purposes of this paragraph, the term “member of the family” means, with respect to any individual— (i) the spouse of the individual, (ii) an ancestor or lineal descendant of the individual or the individual’s spouse, (iii) a brother or sister of the individual or the individual’s spouse and any lineal descendant of the brother or sister, and (iv) the spouse of any individual described in clause (ii) or (iii). A spouse of an individual who is legally separated from such individual under a decree of divorce or separate maintenance shall not be treated as such individual’s spouse for purposes of this subparagraph.