Implemented query students' grades