Task: Text to Code
Input (English): What is the id of the student who most recently registered course 301?
Output (English): SELECT student_id FROM student_course_attendance WHERE course_id = 301 ORDER BY date_of_attendance DESC LIMIT 1