Multiple Database Queries

def queries(self, request):
        '''Multiple Database Queries'''
        queries = self.get_queries(request)
        worlds = []
        with self.mapper.begin() as session:
            for _ in range(queries):
                world = session.query(World).get(randint(1, MAXINT))
                worlds.append(self.get_json(world))
        return Json(worlds).http_response(request)