Select on type or class