Task: Question Decomposition
Input (English): question: If each train is headed in the same direction.
Output (English): #1 return trains 
#2 return direction headed in  of #1 
#3 return if  #2 are the  same