Split batch sql into single ones