Task: Text to Code
Input (English): SQL: SELECT LastName FROM list WHERE Grade = 5
Feedback: Take teachers table instead of list table .
Output (English): SELECT DISTINCT T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE grade  =  5