convent QuestionAnswers to output format