Generalized query to determine the table a query or a view's columns come from?

Original text of this message