If one animal is in a hole, one animal is not, and there is not a third animal.
return animals ;return number of  #1 ;return if  #2 is   equal to  two ;return hole ;return #1 that is   in  #4 ;return #1 besides  #5 ;return number of  #5 ;return number of  #6 ;return if  #7 is   equal to  one ;return if  #8 is   equal to  one ;return if  both  #9 and #10 are true ;return if  both  #11 and #3 are true
['select', 'aggregate', 'boolean', 'select', 'filter', 'discard', 'aggregate', 'aggregate', 'boolean', 'boolean', 'boolean', 'boolean']