If each image shows a single crab shell-side-up on the beach, and the right image features a crab mostly covered in sand.
return crabs ;return #1 that are shell-side-up ;return beach ;return #2 that are on #3 ;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 right image  ;return crab in  #11 ;return sand in  #11 ;return #12 that is mostly covered in  #13 ;return number of  #14 ;return if  #15 is at least one ;return if  both  #10 and #16 are true
['select', 'filter', 'select', 'filter', 'select', 'group', 'comparative', 'aggregate', 'aggregate', 'boolean', 'select', 'project', 'project', 'filter', 'aggregate', 'boolean', 'boolean']