Change query for students in a given course