ter June 17, 1987 under an agreement in writing entered into before that date,(i) in the year the property was disposed of by the individual, the property was used principally in the course of carrying on the business of farming in Canada by(A) the individual, or a spouse, common-law partner, child or parent of the individual,(B) a beneficiary referred to in subparagraph (a)(ii) of the definition