What are the names and ids of every course with less than 2 sections?
SELECT T1.course_name ,  T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_id HAVING count(*)  <=  2
SELECT T1.course_name ,  T1.course_id FROM Courses AS T1 JOIN Sections AS T2 ON T1.course_id  =  T2.course_id GROUP BY T1.course_id HAVING count(*)  <=  2
[{'course_name': 'ds', 'course_id': 1}, {'course_name': 'math', 'course_id': 2}, {'course_name': 'en', 'course_id': 4}, {'course_name': 'fr', 'course_id': 5}, {'course_name': 'la', 'course_id': 6}, {'course_name': 'cal', 'course_id': 7}, {'course_name': 'nlp', 'course_id': 8}, {'course_name': 'dl', 'course_id': 9}, {'course_name': 'ml', 'course_id': 10}, {'course_name': 'db', 'course_id': 12}, {'course_name': 'pl', 'course_id': 14}]