Change query output format