If there are two or more layered desserts in each image, and at least one of them is topped with a whole cookie.
return images ;return desserts in  #1 ;return #2 that are layered ;return cookie in  #1 ;return #4 that is whole ;return #3 that are topped with #5 ;return number of  #3 for each  #1 ;return #1 where  #7 is at least two ;return number of  #1 ;return number of  #8 ;return if  #10 is equal to  #9 ;return number of  #6 ;return if  #12 is at least one ;return if  both  #11 and #13 are true
['select', 'project', 'filter', 'project', 'filter', 'filter', 'group', 'comparative', 'aggregate', 'aggregate', 'boolean', 'aggregate', 'boolean', 'boolean']