If young collies are posed sitting upright side-by-side in one image, and the other image shows one collie reclining with its head upright.
return one image  ;return collies in  #1 ;return #2 that are young ;return #3 that are sitting upright ;return if  #4 are posed side-by-side ;return the  other image  ;return collies in  #6 ;return #7 that are reclining ;return head of #8 ;return #8 where  #9 is upright ;return number of  #10 ;return if  #11 is equal to  one ;return if  both  #5 and #12 are true
['select', 'project', 'filter', 'filter', 'boolean', 'select', 'project', 'filter', 'project', 'comparative', 'aggregate', 'boolean', 'boolean']