If all of the animals are dogs and at least one is playing with a toy.
return animals ;return dogs ;return toys ;return #2 playing with #3 ;return number of  #1 ;return number of  #2 ;return number of  #4 ;return if  #6 is equal to  #5 ;return if  #7 is at least one ;return if  both  #8 and #9 are true
['select', 'select', 'select', 'filter', 'aggregate', 'aggregate', 'aggregate', 'boolean', 'boolean', 'boolean']