If each image contains one red-orange dog, each dog has short hair and a closed mouth, and one image shows a dog with an upright head facing forward.
return images ;return dogs in  #1 ;return #2 that are red-orange ;return number of  #3 for each  #1 ;return #1 where  #4 is equal to  one ;return number of  #5 ;return number of  #1 ;return if  #6 is equal to  #7 ;return hair of #2 ;return #2 where  #9 is short ;return mouth of #10 ;return #10 where  #11 is closed ;return number of  #12 ;return number of  #2 ;return if  #13 is equal to  #14 ;return dog  ;return #16 that is facing forward ;return head of #17 ;return #17 where  #18 is upright ;return if  #19 is in  one image  ;return if  both  #8 and #15 are true ;return if  both  #21 and #20 are true
['select', 'project', 'filter', 'group', 'comparative', 'aggregate', 'aggregate', 'boolean', 'project', 'comparative', 'project', 'comparative', 'aggregate', 'aggregate', 'boolean', 'select', 'filter', 'project', 'comparative', 'boolean', 'boolean', 'boolean']