(3) Treatment of trusts described in section 401(a) (A) Look-thru treatment (i) In general Except as provided in clause (ii), in determining whether the stock ownership requirement of section 542(a)(2) is met for purposes of paragraph (1)(A), any stock held by a qualified trust shall be treated as held directly by its beneficiaries in proportion to their actuarial interests in such trust and shall not be treated as held by such trust. (ii) Certain related trusts not eligible Clause (i) shall not apply to any qualified trust if one or more disqualified persons (as defined in section 4975(e)(2), without regard to subparagraphs (B) and (I) thereof) with respect to such qualified trust hold in the aggregate 5 percent or more in value of the interests in the real estate investment trust and such real estate investment trust has accumulated earnings and profits attributable to any period for which it did not qualify as a real estate investment trust. (B) Coordination with personal holding company rules If any entity qualifies as a real estate investment trust for any taxable year by reason of subparagraph (A), such entity shall not be treated as a personal holding company for such taxable year for purposes of part II of subchapter G of this chapter. (C) Treatment for purposes of unrelated business tax If any qualified trust holds more than 10 percent (by value) of the interests in any pension-held REIT at any time during a taxable year, the trust shall be treated as having for such taxable year gross income from an unrelated trade or business in an amount which bears the same ratio to the aggregate dividends paid (or treated as paid) by the REIT to the trust for the taxable year of the REIT with or within which the taxable year of the trust ends (the “REIT year”) as— (i) the gross income (less direct expenses related thereto) of the REIT for the REIT year from unrelated trades or businesses (determined as if the REIT were a qualified trust), bears to (ii) the gross income (less direct expenses related thereto) of the REIT for the REIT year. This subparagraph shall apply only if the ratio determined under the preceding sentence is at least 5 percent. (D) Pension-held REIT The purposes of subparagraph (C)— (i) In general A real estate investment trust is a pension-held REIT if such trust would not have qualified as a real estate investment trust but for the provisions of this paragraph and if such trust is predominantly held by qualified trusts. (ii) Predominantly held For purposes of clause (i), a real estate investment trust is predominantly held by qualified trusts if— (I) at least 1 qualified trust holds more than 25 percent (by value) of the interests in such real estate investment trust, or (II) 1 or more qualified trusts (each of whom own more than 10 percent by value of the interests in such real estate investment trust) hold in the aggregate more than 50 percent (by value) of the interests in such real estate investment trust. (E) Qualified trust For purposes of this paragraph, the term “qualified trust” means any trust described in section 401(a) and exempt from tax under section 501(a).