If an image features a horizontal row of at least four perched blue-headed parrots.
return images ;return parrots in  #1 ;return #2 that are blue-headed ;return #3 that are perched ;return #4 that are in  a  horizontal row ;return number of  #5 for each  #1 ;return #1 where  #6 is at least four ;return number of  #7 ;return if  #8 is equal to  one
['select', 'project', 'filter', 'filter', 'filter', 'group', 'comparative', 'aggregate', 'boolean']