If there is one dog only with no leash in the right pic
return right pic ;return dog of #1 ;return leash ;return #2 with #3 ;return #2 besides  #4 ;return the  number of  #5 ;return if  #6 is equal to  one
['select', 'project', 'select', 'filter', 'discard', 'aggregate', 'boolean']