If the left image features one dog, which is facing rightward, and the right image features a reclining dog with its head upright and body facing forward.
return left image  ;return dog  in  #1 ;return number of  #2 ;return if  #3 is equal to  one ;return if  #2 is facing rightward ;return if  both  #4 and #5 are true ;return right image  ;return dog  in  #7 ;return #8 that is reclining ;return head of #9 ;return #9 where  #10 is upright ;return body of #11 ;return #11 where  #12 is facing forward ;return number of  #13 ;return if  #14 is at least one ;return if  both  #6 and #15 are true
['select', 'project', 'aggregate', 'boolean', 'boolean', 'boolean', 'select', 'project', 'filter', 'project', 'comparative', 'project', 'comparative', 'aggregate', 'boolean', 'boolean']