add segment query exam.