If the right image contains a red-orange dog with an upright head gazing straight ahead, and the left image contains a dog with its muzzle pointing rightward.
return dog ;return #1 that is red-orange ;return #2 that is gazing straight ahead ;return head of #3 ;return #3 where  #4 is upright ;return if  #5 is in  the  right image  ;return muzzle of #1 ;return #1 where  #7 is pointing rightward ;return if  #8 is in  the  left image  ;return if  both  #6 and #9 are true
['select', 'filter', 'filter', 'project', 'comparative', 'boolean', 'project', 'comparative', 'boolean', 'boolean']