this design is odd, because it delegates to an "Environment" to do the actual query execution... unexpected, so the QueryEnvironment class is either poorly named. I would have put the iteration over the queries here in this body.