question: If the dog on the left has something held in its mouth, and the dog on the right is standing on green grass with its tail extended.
#1 return dog  
#2 return #1 on   the  left 
#3 return something 
#4 return mouth of #2 
#5 return if  #2 has #3 held in  #4 
#6 return #1 on   the  right 
#7 return grass 
#8 return #7 that is green 
#9 return tail of #6 
#10 return #6 where  #9 is extended 
#11 return if  #10 is standing on   #8 
#12 return if  both  #5 and #11 is true