If in one image, all the dogs are moving away from the camera and all the dogs are basset hounds.
return dogs ;return #1 that are moving away from  the  camera ;return #2 that are basset hounds ;return images ;return number of  #1 for each  #4 ;return number of  #3 for each  #4 ;return #4 where  #5 is equal to  #6 ;return number of  #7 ;return if  #8 is equal to  one
['select', 'filter', 'filter', 'select', 'group', 'group', 'comparative', 'aggregate', 'boolean']