If one image contains fewer than 3 pugs, and all pugs are on a leash.
return pugs ;return leash ;return #1 that are on #2 ;return images ;return the  number of  #1 for each  #4 ;return #4 where  #5 is lower than 3 ;return the  number of  #6 ;return if  #7 is equal to  one ;return the  number of  #1 ;return the  number of  #3 ;return if  #9 is equal to  #10 ;return if  both  #8 and #11 is true
['select', 'select', 'filter', 'select', 'group', 'comparative', 'aggregate', 'boolean', 'aggregate', 'aggregate', 'boolean', 'boolean']