If an image shows one forward facing dog wearing a red collar.
return dog ;return #1 that is forward facing ;return collar ;return #3 that is red ;return #2 wearing #4 ;return images ;return the  number of  #5 for each  #6 ;return #6 where  #7 is equal to  one ;return the  number of  #8 ;return if  #9 is at least one
['select', 'filter', 'select', 'filter', 'filter', 'select', 'group', 'comparative', 'aggregate', 'boolean']