impl query output logic for education field