Immanuel Kant said this quote

To know what questions may reasonably be asked is already a great and necessary proof of sagacity and insight. For if a question is absurd in itself and calls for unnecessary answers, it not only brings disgrace to the person raising it, but may prompt an incautious listener to give absurd answers, thus presenting, as the ancients said, the laughable spectacle of one person milking a he-goat, and another holding the sieve underneath.