Question: what happens to a lease agreement when the property is sold?
Answer: Nothing will happen to your tenancy during the contractual term. Your landlord's interest will be sold subject to any existing leases, which means that the buyer will inherit you as a tenant and become your new landlord.