If the left image shows a doberman wearing a collar, and the right image shows a doberman sitting upright without a collar on.
return doberman  ;return collar  ;return #1 wearing #2 ;return if  #3 is in  the  left image  ;return #1 that is sitting upright ;return #5 without #2 ;return if  #6 is in  the  right image  ;return if  both  #4 and #7 are true
['select', 'select', 'filter', 'boolean', 'filter', 'filter', 'boolean', 'boolean']