Add support for chunked query response