question: How many metallic cylinders are to the right of the purple ball?
#1 return cylinders 
#2 return #1 that  are metallic 
#3 return balls 
#4 return #3 that  is  purple 
#5 return #2 that  are to  the  right of #4 
#6 return number of  #5