fixed getUpcomingExams query