[ADD] query to find type of selected collection