If two spaniels are next to each other on a sofa in one image, and the other image shows one puppy in the foreground.
return one image  ;return spaniels in  #1 ;return a  sofa ;return #2 on #3 ;return #4 that are next to  each other ;return number of  #5 ;return if  #6 is equal to  two ;return the  other image  ;return puppies in  #8 ;return #9 in  the  foreground ;return number of  #10 ;return if  #11 is equal to  one ;return if  both  #7 and #12 are true
['select', 'project', 'select', 'filter', 'filter', 'aggregate', 'boolean', 'select', 'project', 'filter', 'aggregate', 'boolean', 'boolean']