If each image shows one sleeping dog, and each dog is sleeping with its head facing the camera and rightside-up.
return dogs ;return #1 that is sleeping ;return #2 that has its head facing the  camera ;return #3 that is rightside-up ;return images of #4 ;return the  number of  #4 for each  #5 ;return #5 where  #6 is equal to  one ;return the  number of  #5 ;return the  number of  #7 ;return if  #8 is equal to  #9
['select', 'filter', 'filter', 'filter', 'project', 'group', 'comparative', 'aggregate', 'aggregate', 'boolean']