If the left image contains one pair of mittens displayed with the cuff end up, and the right image features a pair of half-finger gloves with a mitten flap.
return pair  of  mittens ;return cuff end of  #1 ;return #1 displayed with  #2 up ;return if  #3 are  in  the  left image ;return pair  of  half-finger gloves ;return mitten flap ;return #5 with  #6 ;return if  #7 are  in  the  right image ;return if  both  #4 and #8 are  true
['select', 'project', 'filter', 'boolean', 'select', 'select', 'filter', 'boolean', 'boolean']