question: If there is one dog touching another dog with their face in one of the images.
#1 return dogs 
#2 return face of #1 
#3 return #2 that is touching #1 
#4 return #1 that has #3 
#5 return images 
#6 return number of  #4 for each  #5 
#7 return #5 where  #6 is equal to  one 
#8 return number of  #7 
#9 return if  #8 is equal to  one