(A)#
has been entitled to benefits under this part under section 426(b) of this title , and
(B)#
(i) continues to have the disabling physical or mental impairment on the basis of which the individual was found to be under a disability or to be a disabled qualified railroad retirement beneficiary, or (ii) is blind (within the meaning of section 416(i)(1) of this title ), but
(B)(i)#
continues to have the disabling physical or mental impairment on the basis of which the individual was found to be under a disability or to be a disabled qualified railroad retirement beneficiary, or (ii) is blind (within the meaning of section 416(i)(1) of this title ), but
(C)#
whose entitlement under section 426(b) of this title ends due solely to the individual having earnings that exceed the substantial gainful activity amount (as defined in section 423(d)(4) of this title ); and