Isn't this setting queryAll to run N times where N is number of trends? That doesn't seem right.