If each image shows a predominantly orange-red train, and no train has its front aimed leftward.
return train ;return #1 that is predominantly orange-red ;return images of #2 ;return images ;return number of  #3 ;return number of  #4 ;return if  #5 is equal to  #6 ;return trains in  #4 ;return front of #8 ;return #8 where  #9 is aimed leftward ;return number of  #10 ;return if  #11 is equal to  zero ;return if  both  #7 and #12 are true
['select', 'filter', 'project', 'select', 'aggregate', 'aggregate', 'boolean', 'project', 'project', 'comparative', 'aggregate', 'boolean', 'boolean']