If one image shows side-by-side dobermans with at least one having erect ears, and the other image shows one rightward-turned doberman with docked tail and erect pointy ears.
return one   image  ;return dobermans in  #1 ;return #2 that are side-by-side ;return #3 with erect  ears ;return number of  #4 ;return if  #5 is at least one   ;return other image  ;return doberman in  #7 ;return #8 that is rightward-turned ;return docked tail ;return pointy ears ;return #11 that are erect  ;return #9 with #12 ;return number of  #13 ;return if  #14 is one   ;return if  both  #6 and #15 are true
['select', 'project', 'filter', 'filter', 'aggregate', 'boolean', 'select', 'project', 'filter', 'select', 'select', 'filter', 'filter', 'aggregate', 'boolean', 'boolean']