If only one person can be seen with each of two teams of dogs.
return people ;return teams of dogs ;return #1 seen with #2 ;return number of  #3 for each  #2 ;return #2 where  #4 is equal to  one ;return number of  #5 ;return if  #6 is equal to  two
['select', 'select', 'filter', 'group', 'comparative', 'aggregate', 'boolean']