If all marmots shown are standing up on their hind legs, and one image shows a single marmot facing forward.
return marmots ;return #1 that are standing up ;return hind legs of #2 ;return #2 that are on #3 ;return number of  #1 ;return number of  #4 ;return if  #5 is equal to  #6 ;return #1 that is facing forward ;return images ;return number of  #1 for each  #9 ;return #9 where  #10 is equal to  one ;return number of  #8 for each  #11 ;return #11 where  #12 is equal to  one ;return number of  #13 ;return if  #14 is equal to  one ;return if  both  #7 and #15 are true
['select', 'filter', 'project', 'filter', 'aggregate', 'aggregate', 'boolean', 'filter', 'select', 'group', 'comparative', 'group', 'comparative', 'aggregate', 'boolean', 'boolean']