If left image shows side-by-side dogs, with at least one dog sitting upright.
return left image ;return dogs in  #1 ;return #2 that are side-by-side ;return number of  #3 ;return if  #4 is at least two ;return #2 that is sitting upright ;return number of  #6 ;return if  #7 is at least one ;return if  both  #5 and #8 are true
['select', 'project', 'filter', 'aggregate', 'boolean', 'filter', 'aggregate', 'boolean', 'boolean']