If there's a whole head of garlic and at least one tomato next to the pizza in one of the pictures.
return head of garlic ;return #1 that is whole ;return tomato ;return pizza ;return #1 that is next to  #4 ;return #3 that is next to  #5 ;return pictures ;return number of  #6 for each  #7 ;return #7 where  #8 is at least one ;return number of  #9 ;return if  #9 is at least one
['select', 'filter', 'select', 'select', 'filter', 'filter', 'select', 'group', 'comparative', 'aggregate', 'boolean']