Split queries into multiple