exceptions.

A. Exempted from the gross receipts tax are the receipts of organizations that demonstrate to the department that they have been granted exemption from the federal income tax by the United States commissioner of internal revenue as organizations described in Section 501(c)(3) of the United States Internal Revenue Code of 1986, as that section may be amended or renumbered, except for receipts of a hospital licensed by the department of health.

B. Exempted from the gross receipts tax are the receipts from carrying on chamber of commerce, visitor bureau and convention bureau functions of organizations that demonstrate to the department that they have been granted exemption from the federal income tax by the United States commissioner of internal revenue as organizations described in Section 501(c)(6) of the United States Internal Revenue Code of 1986, as that section may be amended or renumbered.

C. This section does not apply to:

(1)     receipts derived from an unrelated trade or business as defined in section 513 of the United States Internal Revenue Code of 1986, as that section may be amended or renumbered;

(2)     receipts of a prime contractor that are derived from operating a facility in New Mexico designated as a national laboratory by an act of congress; or

(3)     receipts of a prime contractor that are derived from operating a research facility in New Mexico that is owned by the state.