This chapter shall not apply to:
(1) The cost of or charges made for labor and services performed in respect to the mining, sorting, crushing, screening, washing, hauling, and stockpiling of sand, gravel, and rock, when such sand, gravel, or rock is taken from a pit or quarry which is owned by or leased to a county or city and such sand, gravel, or rock is either stockpiled in said pit or quarry for placement or is placed on the street, road, place, or highway of the county or city by the county or city itself; or
(2) The cost of or charges for such labor and services if any such sand, gravel, or rock is sold by the county or city to a county, or a city at actual cost for placement on a publicly owned street, road, place, or highway.
The exemption provided for in this section shall not apply to the cost of or charges for such labor and services if the sand, gravel, or rock is used for other than public road purposes or is sold otherwise than as provided for in this section.