If all pelicans are on the water, one image contains exactly two pelicans, and each image contains no more than three pelicans.
return images ;return pelicans   in  #1 ;return the  water in  #1 ;return #2 on #3 ;return number of  #4 ;return number of  #2 ;return if  #5 is equal to  #6 ;return number of  #2 for each  #1 ;return #1 where  #8 is equal to  two ;return number of  #9 ;return if  #10 is equal to  one ;return #1 where  #8 is at most three ;return number of  #12 ;return number of  #1 ;return if  #13 is equal to  #14 ;return if  both  #7 and #11 are true ;return if  both  #16 and #15 are true
['select', 'project', 'project', 'filter', 'aggregate', 'aggregate', 'boolean', 'group', 'comparative', 'aggregate', 'boolean', 'comparative', 'aggregate', 'aggregate', 'boolean', 'boolean', 'boolean']