If the black dog on the left is wearing a leash and collar.
return dog ;return #1 that is black ;return #2 that is on the  left ;return leash ;return collar ;return if  #3 is wearing #4 ;return if  #3 is wearing #5 ;return if  both  #6 and #7 is true
['select', 'filter', 'filter', 'select', 'select', 'boolean', 'boolean', 'boolean']