If the dog on the left wears a collar and stands on all fours, and the dog on the right is in a grassy spot and has black-and-white coloring.
return dog  ;return #1 on   the  left ;return collar ;return if  #2 wears #3 ;return if  #2 stands on   all fours ;return if  both  #4 and   #5 are true ;return #1 on   the  right ;return grassy spot ;return if  #7 is in  #8 ;return coloring of #7 ;return if  #10 is black-and-white ;return if  both  #9 and   #11 are true ;return if  both  #6 and   #12 are true
['select', 'filter', 'select', 'boolean', 'boolean', 'boolean', 'filter', 'select', 'boolean', 'project', 'boolean', 'boolean', 'boolean']