If each image features one adult doberman with erect ears and upright head, and the dog on the left wears something spiky around its neck.
return images ;return doberman in  #1 ;return #2 that are adults ;return ears of #3 ;return #3 where  #4 are erect ;return head of #5 ;return #5 where  #6 is upright ;return number of  #7 for each  #1 ;return #1 where  #8 is equal to  one ;return number of  #9 ;return number of  #1 ;return if  #10 is equal to  #11 ;return dog ;return #13 on the  left ;return neck of #14 ;return something spiky ;return if  #14 wears #16 around #15 ;return if  both  #12 and #17 are true
['select', 'project', 'filter', 'project', 'comparative', 'project', 'comparative', 'group', 'comparative', 'aggregate', 'aggregate', 'boolean', 'select', 'filter', 'project', 'select', 'boolean', 'boolean']