If an image features one water buffalo with at least one rightward-facing waterbird standing atop it.
return water buffalo ;return waterbirds ;return #2 that are rightward-facing ;return #3 that are standing atop #1 ;return number of  #4 for each  #1 ;return #1 where  #5 is at least one ;return images of #6 ;return number of  #6 for each  #7 ;return #7 where  #8 is equal to  one ;return number of  #9 ;return if  #10 is equal to  one
['select', 'select', 'filter', 'filter', 'group', 'comparative', 'project', 'group', 'comparative', 'aggregate', 'boolean']