If the boat in the left image has a red flag hanging from its rear.
return left image ;return boat in  #1 ;return rear of #2 ;return flag in  #1 ;return #4 that is red ;return #5 that is hanging from  #3 ;return if  #2 has #6
['select', 'project', 'project', 'project', 'filter', 'filter', 'boolean']