If flowers of some type are behind a dog in at least one image, and at least one image includes a beagle puppy.
return flowers of some type ;return dog ;return #1 that are behind #2 ;return if  #3 is in  at least one image  ;return beagle puppy ;return if  #5 is in  at least one image  ;return if  both  #4 and #6 are true
['select', 'select', 'filter', 'boolean', 'select', 'boolean', 'boolean']