split into multiple queries