If there is at most 1 young corgi laying on it right side, sleeping.
return corgi ;return #1 that is young ;return right side of #2 ;return #2 laying on #3 ;return #4 that is sleeping ;return the  number of  #5 ;return if  #6 is at most one
['select', 'filter', 'project', 'filter', 'filter', 'aggregate', 'boolean']