If an open pencil case contains at least one stick-shaped item with a cartoony face shape on the end.
return pencil case ;return #1 that is open ;return items ;return #3 that are stick-shaped ;return cartoony face shape ;return end of #4 ;return #4 where  #6 has #5 on ;return #7 in  #2 ;return number of  #8 ;return if  #9 is at least one
['select', 'filter', 'select', 'filter', 'select', 'project', 'comparative', 'filter', 'aggregate', 'boolean']