If the left image features a doberman in a collar with its head in profile facing right, and the right image features a dock-tailed doberman standing on all fours with body angled leftward.
return doberman  ;return collar ;return #1 in  #2 ;return head of #3 ;return #3 where  #4 is in  profile ;return #5 that is facing right  ;return if  #6 is in  the  left image  ;return #1 that is dock-tailed ;return #8 that is standing on all fours ;return body of #9 ;return #9 where  #10 is angled leftward ;return if  #11 is in  the  right  image  ;return if  both  #7 and #12 are true
['select', 'select', 'filter', 'project', 'comparative', 'filter', 'boolean', 'filter', 'filter', 'project', 'comparative', 'boolean', 'boolean']