global query output