Task: Text to Code
Input (English): Step 1: For each row in Patient table, find the corresponding rows in Appointment table.
Step 2: find the number of rows of each value of Physician in the results of step 1.
Step 3: find Name, Phone in the results of step 1 whose corresponding value in step 2 is greater than 1
Output (English): SELECT T1.Name , T1.Phone FROM Patient AS T1 JOIN Appointment AS T2 ON T1.SSN = T2.Patient GROUP BY T2.Physician HAVING Count ( * ) > 1