I explain the task of sequential pattern mining.
If you want to try sequential pattern mining, you may check out my open-source SPMF data mining lirary ( http://philippe-fournier-viger.com/spmf/ ), which offers code and datasets of over 200 pattern mining algorihtms.