If no image contains more than one beagle dog, and at least one dog looks directly at the camera.
return images ;return beagles in  #1 ;return number of  #2 for each  #1 ;return #1 where  #3 is higher than one ;return number of  #4 ;return if  #5 is equal to  zero ;return dogs in  #1 ;return #7 that look directly at the  camera ;return number of  #8 ;return if  #9 is at least one ;return if  both  #6 and #10 are true
['select', 'project', 'group', 'comparative', 'aggregate', 'boolean', 'project', 'filter', 'aggregate', 'boolean', 'boolean']