Indeed, most of the X, Y, and Z triples, when used in the context of this joke, will not be considered funny.
the main challenge in this work is to "fill in" the slots in the joke template in a way that the whole phrase is considered funny.