985.0.1. For the purposes of subparagraphs f and g of the first paragraph of section 985, income of a corporation, commission or association from activities carried on outside the geographical boundaries of the territory of a municipality or of a municipal or public body does not include income from an activity carried on by(a) the corporation, commission or association, as the case may be, within the geographical boundaries of Canada under an agreement in writing entered into with Her Majesty in right of Canada or a corporation controlled by Her Majesty in right of Canada and to which any of subparagraphs a to g of the first paragraph of section 985 applies;
(b) the corporation, commission or association, as the case may be, within the geographical boundaries of a province under an agreement in writing entered into with the State or Her Majesty in right of that province, other than Québec, or a corporation controlled by the State or Her Majesty in right of that province, other than Québec, and to which any of subparagraphs a to g of the first paragraph of section 985 applies;
(c) the corporation, commission or association, as the case may be, within the geographical boundaries of the territory of a municipality in Canada under an agreement in writing entered into with that municipality or a corporation controlled by that municipality and to which any of subparagraphs a to g of the first paragraph of section 985 applies;
(c.1) the corporation, commission or association, as the case may be, within the geographical boundaries described in section 985.0.3 of a municipal or public body performing a function of government in Canada under an agreement in writing entered into with the body or with a corporation controlled by the body and to which any of subparagraphs a to g of the first paragraph of section 985 applies; or
(d) the corporation, commission or association, as the case may be, in a province as a producer of electrical energy or natural gas or as a distributor of electrical energy, heat, natural gas or water, where the activity is regulated under the laws of the province.