If each image shows one open-mouthed, fang-baring monkey, and one image shows a monkey with an upturned snout and open mouth.
return images ;return monkeys in  #1 ;return #2 that are open-mouthed ;return #3 that are fang-baring ;return number of  #4 for each  #1 ;return #1 where  #5 is equal to  one ;return number of  #6 ;return number of  #1 ;return if  #7 is equal to  #8 ;return monkey  ;return snout of #10 ;return #10 where  #11 is upturned ;return mouth of #12 ;return #12 where  #13 is open ;return if  #14 is in  one image  ;return if  both  #9 and #15 are true
['select', 'project', 'filter', 'filter', 'group', 'comparative', 'aggregate', 'aggregate', 'boolean', 'select', 'project', 'comparative', 'project', 'comparative', 'boolean', 'boolean']