question: Are any of the objects that are the same color also the same shape?
#1 return objects 
#2 return colors of #1 
#3 return #1 where #2 are the   same 
#4 return the   shapes of #3 
#5 return #3 where #4 are the   same 
#6 return the   number of  #5 
#7 return if  #6 is  at least one