If one image shows multiple dogs posed sitting upright, and the other image shows a single large-breed dog.
return one image  ;return dogs in  #1 ;return #2 that are posed sitting upright ;return number of  #3 ;return if  #4 is at least two ;return other image  ;return dog in  #6 ;return #7 that is large-breed ;return number of  #8 ;return if  #9 is equal to  one ;return if  both  #5 and #10 are true
['select', 'project', 'filter', 'aggregate', 'boolean', 'select', 'project', 'filter', 'aggregate', 'boolean', 'boolean']