If one image contains three small dogs, and the other image contains four small dogs.
return dogs ;return #1 that are  small  ;return #2 in  one image ;return #2 in  the  other image ;return number of #3 ;return number of #4 ;return if  #5 is  equal to three ;return if  #6 is  equal to four ;return if  both  #7 and #8 are  true
['select', 'filter', 'filter', 'filter', 'aggregate', 'aggregate', 'boolean', 'boolean', 'boolean']