If the left image contains a dog that is standing up and turned forward, and the right image features a dog wearing a blue collar with its head and gaze raised.
return left image  ;return dog  in  #1 ;return #2 that is standing up ;return #3 that is turned forward ;return number of  #4 ;return if  #5 is at least one ;return right image  ;return dog  in  #7 ;return collar of #8 ;return #8 where  #9 is blue ;return head of #10 ;return #10 where  #11 is raised ;return gaze of #12 ;return #12 where  #13 is raised ;return number of  #14 ;return if  #15 is at least one ;return if  both  #6 and   #16 are true
['select', 'project', 'filter', 'filter', 'aggregate', 'boolean', 'select', 'project', 'project', 'comparative', 'project', 'comparative', 'project', 'comparative', 'aggregate', 'boolean', 'boolean']