Add method to generate query from color list