Break query into multiple queries; H2 support