question: If a dog is sitting in one picture and in the other picture ta dog is lying down and asleep.
#1 return one picture 
#2 return dog  in  #1 
#3 return if  #2 is sitting 
#4 return the  other picture 
#5 return dog  in  #4 
#6 return if  #5 is lying down 
#7 return if  #5 is asleep 
#8 return if  both  #6 and #7 are true 
#9 return if  both  #3 and #8 are true