How to get the SQL expression for a collection?

See also: