Expanding query operations on collections