Task: Text to Code
Input (English): SQL: SELECT DISTINCT Name FROM Physician
Feedback: Replace physician physician with patient patient , need to make sure they made an appointment appointment .
Output (English): SELECT name FROM appointment AS T1 JOIN patient AS T2 ON T1.patient  =  T2.ssn