what is id of students who registered some courses but the least number of courses in these students?
CREATE TABLE student_course_registrations (student_id VARCHAR)
SELECT TOP 1 student_id FROM student_course_registrations GROUP BY student_id ORDER BY COUNT(*)
<s>[INST] Write mssql query to answer the following question given the database schema. Schema: CREATE TABLE student_course_registrations (student_id VARCHAR) Question: what is id of students who registered some courses but the least number of courses in these students? [/INST] SELECT TOP 1 student_id FROM student_course_registrations GROUP BY student_id ORDER BY COUNT(*) </s>