If the right image has a dog with it's from feet propped on stone while looking at the camera
return right image ;return dog in  #1 ;return feet of #2 ;return stone in  #1 ;return #3 that is propped on #4 ;return #2 that has #5 ;return #6 that is looking at the  camera ;return number of  #7 ;return if  #8 is at least one
['select', 'project', 'project', 'project', 'filter', 'filter', 'filter', 'aggregate', 'boolean']