If there are only two dogs total and none are laying down.
return dogs ;return number of #1 ;return If #2 is  equal to two ;return #1 that is  laying down ;return number of #4 ;return If #5 is  equal to zero ;return If both  #3 and #6 are  true
['select', 'aggregate', 'boolean', 'filter', 'aggregate', 'boolean', 'boolean']