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