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