If only the right image shows mittens with a diamond pattern.
return mittens ;return right image ;return patterns of #1 ;return #1 where  #3 is diamond ;return #4 that are in  #2 ;return number of  #4 ;return number of  #5 ;return if  #6 is equal to  #7
['select', 'select', 'project', 'comparative', 'filter', 'aggregate', 'aggregate', 'boolean']