I think the queries for getting ungraded are overly complicated and can be simplified later but they work now for all but the grade all patients group