If each image contains just one bird, and the wires of a cage are behind the bird in one image.
return birds ;return images ;return number of  #1 for each  #2 ;return #2 where  #3 is equal to  one ;return number of  #2 ;return number of  #4 ;return if  #5 is equal to  #6 ;return cage ;return wires of #8 ;return #9 that is behind #1 ;return if  #10 is in  one image  ;return if  both  #7 and #11 are true
['select', 'select', 'group', 'comparative', 'aggregate', 'aggregate', 'boolean', 'select', 'project', 'filter', 'boolean', 'boolean']