I found this use of the joke in the printed "Proceedings" of the American Pomological Society. This publication seems to cover meetings from 1933 to 1937, but this occurrence is early enough (p. 75) that I think it can be dated to 1933. I wondered if this was perhaps used as a jingle by an apple company, but I couldn't find evidence of this.
Whatever the origin of the first joke, its form must have certainly comecame from Macbeth: