If at least one image features only a black and white dog, with no livestock.
return dog ;return #1 that is black and white ;return images of #2 ;return livestock in  #3 ;return number of  #4 for each  #3 ;return #3 where  #5 is equal to  zero ;return number of  #6 ;return if  #7 is at least one
['select', 'filter', 'project', 'project', 'group', 'comparative', 'aggregate', 'boolean']