Task: Text to Code
Input (English): Step 1: For each row in Student table, find the corresponding rows in Visits_Restaurant table.
Step 2: find Fname, LName of the results of step 1 whose Spent equals 600
Output (English): SELECT T1.Fname , T1.LName FROM Student AS T1 JOIN Visits_Restaurant AS T2 ON T1.StuID = T2.StuID WHERE T2.Spent = 600