QIAN-ME/bird_schema_data huggingface dataset:
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 computer_student
【Schema】
# Table: taughtBy
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(p_id:INTEGER, Primary Key, Examples: [40, 180, 279])
]
# Table: person
[
(p_id:INTEGER, Primary Key, Examples: [3, 4, 5]),
(professor:INTEGER, Examples: [0, 1]),
(student:INTEGER, Examples: [1, 0]),
(hasPosition:TEXT, Examples: [0, Faculty, Faculty_adj]),
(inPhase:TEXT, Examples: [0, Post_Quals, Post_Generals]),
(yearsInProgram:TEXT, Examples: [0, Year_2, Year_5])
]
# Table: course
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(courseLevel:TEXT, Examples: [Level_500, Level_300, Level_400])
]
# Table: advisedBy
[
(p_id:INTEGER, Primary Key, Examples: [6, 9, 13]),
(p_id_dummy:INTEGER, Primary Key, Examples: [5, 7, 29])
]
【Foreign keys】
taughtBy.p_id=person.p_id
taughtBy.course_id=course.course_id
advisedBy.p_id=person.p_id
advisedBy.p_id_dummy=person.p_id

    【Question】
    What are the courses taught by the advisors who gave advice to student with ID 376? courses refers to course_id; advisors refers to p_id_dummy and taughtBy.p_id; student with ID 376 refers to advisedBy.p_id = 376

    【Evidence】
    courses refers to course_id; advisors refers to p_id_dummy and taughtBy.p_id; student with ID 376 refers to advisedBy.p_id = 376

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T3.course_id FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id INNER JOIN taughtBy AS T3 ON T2.p_id = T3.p_id WHERE T1.p_id = 141
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 computer_student
【Schema】
# Table: taughtBy
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(p_id:INTEGER, Primary Key, Examples: [40, 180, 279])
]
# Table: person
[
(p_id:INTEGER, Primary Key, Examples: [3, 4, 5]),
(professor:INTEGER, Examples: [0, 1]),
(student:INTEGER, Examples: [1, 0]),
(hasPosition:TEXT, Examples: [0, Faculty, Faculty_adj]),
(inPhase:TEXT, Examples: [0, Post_Quals, Post_Generals]),
(yearsInProgram:TEXT, Examples: [0, Year_2, Year_5])
]
# Table: course
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(courseLevel:TEXT, Examples: [Level_500, Level_300, Level_400])
]
# Table: advisedBy
[
(p_id:INTEGER, Primary Key, Examples: [6, 9, 13]),
(p_id_dummy:INTEGER, Primary Key, Examples: [5, 7, 29])
]
【Foreign keys】
taughtBy.p_id=person.p_id
taughtBy.course_id=course.course_id
advisedBy.p_id=person.p_id
advisedBy.p_id_dummy=person.p_id

    【Question】
    Name the advisors for students in Year 3 of the program. advisors refers to p_id_dummy; students in Year 3 of the program refers to yearsInProgram = 'Year_3'

    【Evidence】
    advisors refers to p_id_dummy; students in Year 3 of the program refers to yearsInProgram = 'Year_3'

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T1.p_id FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T2.yearsInProgram = 'Year_3'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 computer_student
【Schema】
# Table: taughtBy
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(p_id:INTEGER, Primary Key, Examples: [40, 180, 279])
]
# Table: person
[
(p_id:INTEGER, Primary Key, Examples: [3, 4, 5]),
(professor:INTEGER, Examples: [0, 1]),
(student:INTEGER, Examples: [1, 0]),
(hasPosition:TEXT, Examples: [0, Faculty, Faculty_adj]),
(inPhase:TEXT, Examples: [0, Post_Quals, Post_Generals]),
(yearsInProgram:TEXT, Examples: [0, Year_2, Year_5])
]
# Table: course
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(courseLevel:TEXT, Examples: [Level_500, Level_300, Level_400])
]
# Table: advisedBy
[
(p_id:INTEGER, Primary Key, Examples: [6, 9, 13]),
(p_id_dummy:INTEGER, Primary Key, Examples: [5, 7, 29])
]
【Foreign keys】
taughtBy.p_id=person.p_id
taughtBy.course_id=course.course_id
advisedBy.p_id=person.p_id
advisedBy.p_id_dummy=person.p_id

    【Question】
    Which level of courses is taught by professor ID 297? professor ID 297 refers to taughtBy.p_id = 297

    【Evidence】
    professor ID 297 refers to taughtBy.p_id = 297

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T1.courseLevel FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id WHERE T2.p_id = 297
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 computer_student
【Schema】
# Table: taughtBy
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(p_id:INTEGER, Primary Key, Examples: [40, 180, 279])
]
# Table: person
[
(p_id:INTEGER, Primary Key, Examples: [3, 4, 5]),
(professor:INTEGER, Examples: [0, 1]),
(student:INTEGER, Examples: [1, 0]),
(hasPosition:TEXT, Examples: [0, Faculty, Faculty_adj]),
(inPhase:TEXT, Examples: [0, Post_Quals, Post_Generals]),
(yearsInProgram:TEXT, Examples: [0, Year_2, Year_5])
]
# Table: course
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(courseLevel:TEXT, Examples: [Level_500, Level_300, Level_400])
]
# Table: advisedBy
[
(p_id:INTEGER, Primary Key, Examples: [6, 9, 13]),
(p_id_dummy:INTEGER, Primary Key, Examples: [5, 7, 29])
]
【Foreign keys】
taughtBy.p_id=person.p_id
taughtBy.course_id=course.course_id
advisedBy.p_id=person.p_id
advisedBy.p_id_dummy=person.p_id

    【Question】
    What level is course 165? List the professors who teach the course. course 165 refers to course_id = 165; professors refers to taughtBy.p_id

    【Evidence】
    course 165 refers to course_id = 165; professors refers to taughtBy.p_id

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T1.courseLevel, T2.p_id FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id WHERE T2.course_id = 165
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 computer_student
【Schema】
# Table: taughtBy
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(p_id:INTEGER, Primary Key, Examples: [40, 180, 279])
]
# Table: person
[
(p_id:INTEGER, Primary Key, Examples: [3, 4, 5]),
(professor:INTEGER, Examples: [0, 1]),
(student:INTEGER, Examples: [1, 0]),
(hasPosition:TEXT, Examples: [0, Faculty, Faculty_adj]),
(inPhase:TEXT, Examples: [0, Post_Quals, Post_Generals]),
(yearsInProgram:TEXT, Examples: [0, Year_2, Year_5])
]
# Table: course
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(courseLevel:TEXT, Examples: [Level_500, Level_300, Level_400])
]
# Table: advisedBy
[
(p_id:INTEGER, Primary Key, Examples: [6, 9, 13]),
(p_id_dummy:INTEGER, Primary Key, Examples: [5, 7, 29])
]
【Foreign keys】
taughtBy.p_id=person.p_id
taughtBy.course_id=course.course_id
advisedBy.p_id=person.p_id
advisedBy.p_id_dummy=person.p_id

    【Question】
    List the ID and years in program for students taught by advisor with ID 5. advisor with ID 5 refers to p_id_dummy = 5

    【Evidence】
    advisor with ID 5 refers to p_id_dummy = 5

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T1.p_id, T2.yearsInProgram FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T1.p_id_dummy = 5
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 computer_student
【Schema】
# Table: taughtBy
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(p_id:INTEGER, Primary Key, Examples: [40, 180, 279])
]
# Table: person
[
(p_id:INTEGER, Primary Key, Examples: [3, 4, 5]),
(professor:INTEGER, Examples: [0, 1]),
(student:INTEGER, Examples: [1, 0]),
(hasPosition:TEXT, Examples: [0, Faculty, Faculty_adj]),
(inPhase:TEXT, Examples: [0, Post_Quals, Post_Generals]),
(yearsInProgram:TEXT, Examples: [0, Year_2, Year_5])
]
# Table: course
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(courseLevel:TEXT, Examples: [Level_500, Level_300, Level_400])
]
# Table: advisedBy
[
(p_id:INTEGER, Primary Key, Examples: [6, 9, 13]),
(p_id_dummy:INTEGER, Primary Key, Examples: [5, 7, 29])
]
【Foreign keys】
taughtBy.p_id=person.p_id
taughtBy.course_id=course.course_id
advisedBy.p_id=person.p_id
advisedBy.p_id_dummy=person.p_id

    【Question】
    State the courses and level of courses by professors who are faculty employees. professors who are faculty employees refers to professor = 1; faculty employees refers to hasPosition = 'Faculty_eme'

    【Evidence】
    professors who are faculty employees refers to professor = 1; faculty employees refers to hasPosition = 'Faculty_eme'

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T3.course_id, T3.courseLevel FROM taughtBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id INNER JOIN course AS T3 ON T3.course_id = T1.course_id WHERE T2.hasPosition = 'Faculty_eme'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 computer_student
【Schema】
# Table: taughtBy
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(p_id:INTEGER, Primary Key, Examples: [40, 180, 279])
]
# Table: person
[
(p_id:INTEGER, Primary Key, Examples: [3, 4, 5]),
(professor:INTEGER, Examples: [0, 1]),
(student:INTEGER, Examples: [1, 0]),
(hasPosition:TEXT, Examples: [0, Faculty, Faculty_adj]),
(inPhase:TEXT, Examples: [0, Post_Quals, Post_Generals]),
(yearsInProgram:TEXT, Examples: [0, Year_2, Year_5])
]
# Table: course
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(courseLevel:TEXT, Examples: [Level_500, Level_300, Level_400])
]
# Table: advisedBy
[
(p_id:INTEGER, Primary Key, Examples: [6, 9, 13]),
(p_id_dummy:INTEGER, Primary Key, Examples: [5, 7, 29])
]
【Foreign keys】
taughtBy.p_id=person.p_id
taughtBy.course_id=course.course_id
advisedBy.p_id=person.p_id
advisedBy.p_id_dummy=person.p_id

    【Question】
    Find the ID of advisor of student ID 80 and state the level of courses taught by him/her. ID of advisor refers to p_id_dummy; student ID 80 refers to advisedBy.p_id = 80; level of courses refers to courseLevel

    【Evidence】
    ID of advisor refers to p_id_dummy; student ID 80 refers to advisedBy.p_id = 80; level of courses refers to courseLevel

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T1.p_id_dummy, T2.courseLevel FROM advisedBy AS T1 INNER JOIN course AS T2 ON T1.p_id = T2.course_id INNER JOIN taughtBy AS T3 ON T2.course_id = T3.course_id WHERE T1.p_id = 80
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 computer_student
【Schema】
# Table: taughtBy
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(p_id:INTEGER, Primary Key, Examples: [40, 180, 279])
]
# Table: person
[
(p_id:INTEGER, Primary Key, Examples: [3, 4, 5]),
(professor:INTEGER, Examples: [0, 1]),
(student:INTEGER, Examples: [1, 0]),
(hasPosition:TEXT, Examples: [0, Faculty, Faculty_adj]),
(inPhase:TEXT, Examples: [0, Post_Quals, Post_Generals]),
(yearsInProgram:TEXT, Examples: [0, Year_2, Year_5])
]
# Table: course
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(courseLevel:TEXT, Examples: [Level_500, Level_300, Level_400])
]
# Table: advisedBy
[
(p_id:INTEGER, Primary Key, Examples: [6, 9, 13]),
(p_id_dummy:INTEGER, Primary Key, Examples: [5, 7, 29])
]
【Foreign keys】
taughtBy.p_id=person.p_id
taughtBy.course_id=course.course_id
advisedBy.p_id=person.p_id
advisedBy.p_id_dummy=person.p_id

    【Question】
    Provide the ID of professors who teach in both harder undergraduate course and master/graduate courses. harder undergraduate course refers to courseLevel = 'Level_400'; master/graduate courses refers to courseLevel = 'Level_500'; ID of professors refers to taughtBy.p_id

    【Evidence】
    harder undergraduate course refers to courseLevel = 'Level_400'; master/graduate courses refers to courseLevel = 'Level_500'; ID of professors refers to taughtBy.p_id

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT DISTINCT T2.p_id FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id WHERE T1.courseLevel = 'Level_400' OR T1.courseLevel = 'Level_500'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 computer_student
【Schema】
# Table: taughtBy
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(p_id:INTEGER, Primary Key, Examples: [40, 180, 279])
]
# Table: person
[
(p_id:INTEGER, Primary Key, Examples: [3, 4, 5]),
(professor:INTEGER, Examples: [0, 1]),
(student:INTEGER, Examples: [1, 0]),
(hasPosition:TEXT, Examples: [0, Faculty, Faculty_adj]),
(inPhase:TEXT, Examples: [0, Post_Quals, Post_Generals]),
(yearsInProgram:TEXT, Examples: [0, Year_2, Year_5])
]
# Table: course
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(courseLevel:TEXT, Examples: [Level_500, Level_300, Level_400])
]
# Table: advisedBy
[
(p_id:INTEGER, Primary Key, Examples: [6, 9, 13]),
(p_id_dummy:INTEGER, Primary Key, Examples: [5, 7, 29])
]
【Foreign keys】
taughtBy.p_id=person.p_id
taughtBy.course_id=course.course_id
advisedBy.p_id=person.p_id
advisedBy.p_id_dummy=person.p_id

    【Question】
    Who are the professors who gave advice to students in the 12th years of program? professors refers to p_id_dummy; 12th years of program refers to yearsInProgram = 'Year_12'

    【Evidence】
    professors refers to p_id_dummy; 12th years of program refers to yearsInProgram = 'Year_12'

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T1.p_id_dummy FROM advisedBy AS T1 INNER JOIN person AS T2 ON T1.p_id = T2.p_id WHERE T2.yearsInProgram = 'Year_12'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 computer_student
【Schema】
# Table: taughtBy
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(p_id:INTEGER, Primary Key, Examples: [40, 180, 279])
]
# Table: person
[
(p_id:INTEGER, Primary Key, Examples: [3, 4, 5]),
(professor:INTEGER, Examples: [0, 1]),
(student:INTEGER, Examples: [1, 0]),
(hasPosition:TEXT, Examples: [0, Faculty, Faculty_adj]),
(inPhase:TEXT, Examples: [0, Post_Quals, Post_Generals]),
(yearsInProgram:TEXT, Examples: [0, Year_2, Year_5])
]
# Table: course
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(courseLevel:TEXT, Examples: [Level_500, Level_300, Level_400])
]
# Table: advisedBy
[
(p_id:INTEGER, Primary Key, Examples: [6, 9, 13]),
(p_id_dummy:INTEGER, Primary Key, Examples: [5, 7, 29])
]
【Foreign keys】
taughtBy.p_id=person.p_id
taughtBy.course_id=course.course_id
advisedBy.p_id=person.p_id
advisedBy.p_id_dummy=person.p_id

    【Question】
    Which are the courses with the most number of professors? State the course ID and the level of the course. courses refers taughtBy.course_id; most number of professors  refers to max(count(taughtBy.p_id)); level of the course refers to courseLevel

    【Evidence】
    courses refers taughtBy.course_id; most number of professors  refers to max(count(taughtBy.p_id)); level of the course refers to courseLevel

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT T1.course_id, T1.courseLevel FROM course AS T1 INNER JOIN taughtBy AS T2 ON T1.course_id = T2.course_id GROUP BY T1.course_id, T1.courseLevel ORDER BY COUNT(T1.course_id) DESC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 computer_student
【Schema】
# Table: taughtBy
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(p_id:INTEGER, Primary Key, Examples: [40, 180, 279])
]
# Table: person
[
(p_id:INTEGER, Primary Key, Examples: [3, 4, 5]),
(professor:INTEGER, Examples: [0, 1]),
(student:INTEGER, Examples: [1, 0]),
(hasPosition:TEXT, Examples: [0, Faculty, Faculty_adj]),
(inPhase:TEXT, Examples: [0, Post_Quals, Post_Generals]),
(yearsInProgram:TEXT, Examples: [0, Year_2, Year_5])
]
# Table: course
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(courseLevel:TEXT, Examples: [Level_500, Level_300, Level_400])
]
# Table: advisedBy
[
(p_id:INTEGER, Primary Key, Examples: [6, 9, 13]),
(p_id_dummy:INTEGER, Primary Key, Examples: [5, 7, 29])
]
【Foreign keys】
taughtBy.p_id=person.p_id
taughtBy.course_id=course.course_id
advisedBy.p_id=person.p_id
advisedBy.p_id_dummy=person.p_id

    【Question】
    How many basic and medium undergraduate courses are there? basic and medium undergraduate courses refers to courseLevel = 'Level_300' and courses refers to course.course_id

    【Evidence】
    basic and medium undergraduate courses refers to courseLevel = 'Level_300' and courses refers to course.course_id

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(*) FROM course WHERE courseLevel = 'Level_300'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 computer_student
【Schema】
# Table: taughtBy
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(p_id:INTEGER, Primary Key, Examples: [40, 180, 279])
]
# Table: person
[
(p_id:INTEGER, Primary Key, Examples: [3, 4, 5]),
(professor:INTEGER, Examples: [0, 1]),
(student:INTEGER, Examples: [1, 0]),
(hasPosition:TEXT, Examples: [0, Faculty, Faculty_adj]),
(inPhase:TEXT, Examples: [0, Post_Quals, Post_Generals]),
(yearsInProgram:TEXT, Examples: [0, Year_2, Year_5])
]
# Table: course
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(courseLevel:TEXT, Examples: [Level_500, Level_300, Level_400])
]
# Table: advisedBy
[
(p_id:INTEGER, Primary Key, Examples: [6, 9, 13]),
(p_id_dummy:INTEGER, Primary Key, Examples: [5, 7, 29])
]
【Foreign keys】
taughtBy.p_id=person.p_id
taughtBy.course_id=course.course_id
advisedBy.p_id=person.p_id
advisedBy.p_id_dummy=person.p_id

    【Question】
    How many people teaches course no.11? people refers to taughtBy.p_id; course no.11 refers to course_id = 11

    【Evidence】
    people refers to taughtBy.p_id; course no.11 refers to course_id = 11

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(*) FROM taughtBy WHERE course_id = 11
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 computer_student
【Schema】
# Table: taughtBy
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(p_id:INTEGER, Primary Key, Examples: [40, 180, 279])
]
# Table: person
[
(p_id:INTEGER, Primary Key, Examples: [3, 4, 5]),
(professor:INTEGER, Examples: [0, 1]),
(student:INTEGER, Examples: [1, 0]),
(hasPosition:TEXT, Examples: [0, Faculty, Faculty_adj]),
(inPhase:TEXT, Examples: [0, Post_Quals, Post_Generals]),
(yearsInProgram:TEXT, Examples: [0, Year_2, Year_5])
]
# Table: course
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(courseLevel:TEXT, Examples: [Level_500, Level_300, Level_400])
]
# Table: advisedBy
[
(p_id:INTEGER, Primary Key, Examples: [6, 9, 13]),
(p_id_dummy:INTEGER, Primary Key, Examples: [5, 7, 29])
]
【Foreign keys】
taughtBy.p_id=person.p_id
taughtBy.course_id=course.course_id
advisedBy.p_id=person.p_id
advisedBy.p_id_dummy=person.p_id

    【Question】
    Which course has more teachers, course no.16 or course no.18? teachers refers to taughtBy.p_id; course no.16 refers to course_id = 16; course no.18 refers to course_id = 18

    【Evidence】
    teachers refers to taughtBy.p_id; course no.16 refers to course_id = 16; course no.18 refers to course_id = 18

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT course_id FROM taughtBy WHERE course_id = 11 OR course_id = 18 GROUP BY course_id ORDER BY COUNT(course_id) DESC LIMIT 1
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 computer_student
【Schema】
# Table: taughtBy
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(p_id:INTEGER, Primary Key, Examples: [40, 180, 279])
]
# Table: person
[
(p_id:INTEGER, Primary Key, Examples: [3, 4, 5]),
(professor:INTEGER, Examples: [0, 1]),
(student:INTEGER, Examples: [1, 0]),
(hasPosition:TEXT, Examples: [0, Faculty, Faculty_adj]),
(inPhase:TEXT, Examples: [0, Post_Quals, Post_Generals]),
(yearsInProgram:TEXT, Examples: [0, Year_2, Year_5])
]
# Table: course
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(courseLevel:TEXT, Examples: [Level_500, Level_300, Level_400])
]
# Table: advisedBy
[
(p_id:INTEGER, Primary Key, Examples: [6, 9, 13]),
(p_id_dummy:INTEGER, Primary Key, Examples: [5, 7, 29])
]
【Foreign keys】
taughtBy.p_id=person.p_id
taughtBy.course_id=course.course_id
advisedBy.p_id=person.p_id
advisedBy.p_id_dummy=person.p_id

    【Question】
    How many teachers are faculty employees? teachers refers to professor = 1; faculty employees refers to hasPosition = 'Faculty_eme'

    【Evidence】
    teachers refers to professor = 1; faculty employees refers to hasPosition = 'Faculty_eme'

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT COUNT(*) FROM person WHERE hasPosition = 'Faculty_eme'
You are now a sqlite data analyst, and you are given a database schema as follows:

    【Schema】
    【DB_ID】 computer_student
【Schema】
# Table: taughtBy
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(p_id:INTEGER, Primary Key, Examples: [40, 180, 279])
]
# Table: person
[
(p_id:INTEGER, Primary Key, Examples: [3, 4, 5]),
(professor:INTEGER, Examples: [0, 1]),
(student:INTEGER, Examples: [1, 0]),
(hasPosition:TEXT, Examples: [0, Faculty, Faculty_adj]),
(inPhase:TEXT, Examples: [0, Post_Quals, Post_Generals]),
(yearsInProgram:TEXT, Examples: [0, Year_2, Year_5])
]
# Table: course
[
(course_id:INTEGER, Primary Key, Examples: [0, 1, 2]),
(courseLevel:TEXT, Examples: [Level_500, Level_300, Level_400])
]
# Table: advisedBy
[
(p_id:INTEGER, Primary Key, Examples: [6, 9, 13]),
(p_id_dummy:INTEGER, Primary Key, Examples: [5, 7, 29])
]
【Foreign keys】
taughtBy.p_id=person.p_id
taughtBy.course_id=course.course_id
advisedBy.p_id=person.p_id
advisedBy.p_id_dummy=person.p_id

    【Question】
    Please list the IDs of the teachers who have advised more than 4 others to teach. teachers refers to p_id_dummy; have advised more than 4 others refers to count(advisedBy.p_id) > 4

    【Evidence】
    teachers refers to p_id_dummy; have advised more than 4 others refers to count(advisedBy.p_id) > 4

    Please read and understand the database schema carefully, and generate an executable SQL based on the user's question and evidence. 

SQL: SELECT p_id_dummy FROM advisedBy GROUP BY p_id_dummy HAVING COUNT(p_id_dummy) > 4