If in one image containing exactly two baboons, the monkey on the right is grooming the one on the left.
return baboons ;return images ;return the  number of  #1 for each  #2 ;return #2 where  #3 is equal to  two ;return the  number of  #4 ;return if  #5 is equal to  one ;return monkey ;return #7 that is on the  right ;return #7 that is on the  left ;return if  #8 is grooming #9 ;return if  both  #6 and #10 is true
['select', 'select', 'group', 'comparative', 'aggregate', 'boolean', 'select', 'filter', 'filter', 'boolean', 'boolean']