Edit query to get released grades.