If the left image shows a dog in some kind of reclining pose on a sofa, and the right image includes a husky dog outdoors on snow-covered ground.
return dog  ;return #1 in  some kind of reclining pose ;return sofa ;return #2 on #3 ;return if  #4 is in  the  left image  ;return #1 that is a   husky ;return #6 that is outdoors ;return ground ;return #8 that is snow-covered ;return #7 on #9 ;return if  #10 is in  the  right image  ;return if  both  #5 and #11 are true
['select', 'filter', 'select', 'filter', 'boolean', 'filter', 'filter', 'select', 'filter', 'filter', 'boolean', 'boolean']