KSH query output