If the dogs in each of the images are situated outside.
return dogs ;return #1 that are situated outside ;return images ;return number of  #1 for each  #3 ;return number of  #2 for each  #3 ;return #3 where  #4 is equal to  #5 ;return number of  #3 ;return number of  #6 ;return if  #7 is equal to  #8
['select', 'filter', 'select', 'group', 'group', 'comparative', 'aggregate', 'aggregate', 'boolean']