pagination support for domain queries