If one of the dog has its chin on a surface.
return dogs ;return chin of  #1 ;return surface ;return #1 where #2 is  on #3 ;return number of #4 ;return if  #5 is  equal to one
['select', 'project', 'select', 'comparative', 'aggregate', 'boolean']