Complex sentence: The term "passing the hat" comes from the practice of having the hat passed before the final trick is performed, as opposed to "bottling" the audience at the end of the performance.
Split into simpler sentences: The term "passing the hat" comes from the practice of having the hat passed before the final trick. As opposed to "bottling" the audience at the end of the performance.