If each image contains one beagle standing on all fours with its tail up, and the beagle on the right wears a red collar.
return beagle ;return #1 that is standing on all fours ;return tail of #2 ;return #2 where  #3 is up ;return images ;return number of  #4 for each  #5 ;return #5 where  #6 is equal to  one ;return number of  #5 ;return number of  #7 ;return if  #8 is equal to  #9 ;return #1 that is on the  right ;return collar of #11 ;return if  #12 is red ;return if  both  #10 and #13 are true
['select', 'filter', 'project', 'comparative', 'select', 'group', 'comparative', 'aggregate', 'aggregate', 'boolean', 'filter', 'project', 'boolean', 'boolean']