Task: Text to Code
Input (English): Step 1: find the number of rows of each value of course_id in Courses table.
Step 2: find course_name, course_id in Courses table whose corresponding value in step 1 is less than 2
Output (English): SELECT course_name , course_id FROM Courses GROUP BY course_id HAVING Count ( * ) < 2