Build up queryAll results on iteration