If one image shows loose pet food pellets and another image shows a bag of animal food.
return one image ;return pet food pellets in  #1 ;return #2 that are  loose ;return number of #3 ;return If #4 is  higher than one ;return another image ;return animal food in  #6 ;return bag of  #7 ;return number of #8 ;return If #9 is  at least one ;return If both  #5 and #10 are  true
['select', 'project', 'filter', 'aggregate', 'boolean', 'select', 'project', 'project', 'aggregate', 'boolean', 'boolean']