Split the large SQL to smaller bits.