If each images shows just one stingray in the foreground.
return stingrays ;return the  foreground ;return #1 in  #2 ;return images of  #3 ;return number of #3 for each #4 ;return #4 where #5 is  equal to one ;return number of #6 ;return number of #4 ;return If #7 is  equal to #8
['select', 'select', 'filter', 'project', 'group', 'comparative', 'aggregate', 'aggregate', 'boolean']