If each image has two zebras and in only one of the images are they looking in the same direction.
return zebras ;return images ;return number of #1 for each #2 ;return #2 where #3 is  equal to two ;return number of #2 ;return number of #4 ;return If #5 is  equal to #6 ;return #1 that are  looking in  the  same direction ;return images of  #8 ;return number of #9 ;return If #10 is  equal to one ;return If both  #7 and #11 are  true
['select', 'select', 'group', 'comparative', 'aggregate', 'aggregate', 'boolean', 'filter', 'project', 'aggregate', 'boolean', 'boolean']