If all water buffalo are in mud that reaches at least to their chest, and no image contains more than three water buffalo.
return water buffalo  ;return mud ;return chest of #1 ;return #2 that reaches at least to  #3 ;return #1 that are in  #4 ;return number of  #1 ;return number of  #5 ;return if  #6 is equal to  #7 ;return images ;return number of  #1 for each  #9 ;return #9 where  #10 is higher than three ;return number of  #11 ;return if  #12 is equal to  zero ;return if  both  #8 and #13 are true
['select', 'select', 'project', 'filter', 'filter', 'aggregate', 'aggregate', 'boolean', 'select', 'group', 'comparative', 'aggregate', 'boolean', 'boolean']