If there is a beagle facing the left in one image and a beagle in a red collar in the other image.
return one image  ;return beagle  in   #1 ;return if  #2 is facing the  left ;return the  other image  ;return beagle  in   #4 ;return collar of #5 ;return if  #6 is red ;return if  both  #3 and #7 are true
['select', 'project', 'boolean', 'select', 'project', 'project', 'boolean', 'boolean']