I think the nature of human laughter deals with surprise as the main element.
ALL comedy, written or verbal, has to do with deception (setting up the joke) and surprise (the punchline). GOOD comedy requires timing and assessing your audience (they have to get the joke).
"A rabbi, a priest and...