Chinastark/bird_dataset huggingface dataset:
Database: cs_semester
Question: What is the average GPA of the students with the highest research capability and high salary? List the full names of the students.
Evidence: the highest research capability refers to capability = 5; high salary refers to salary = 'high'; prof_id refers to professor’s ID; GPA is an abbreviated name of Grade Point Average where average GPA refers to AVG(gpa);
SQL: SELECT AVG(T2.gpa), T2.f_name, T2.l_name FROM RA AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id WHERE T1.salary = 'high' AND T1.capability = 5 GROUP BY T2.student_id
Database: cs_semester
Question: List the professors' IDs and students' IDs with the lowest research ability.
Evidence: the lowest research ability refers to MIN(capability); professor’s ID refers to prof_id;
SQL: SELECT prof_id, student_id FROM RA WHERE capability = ( SELECT MIN(capability) FROM RA )
Database: cs_semester
Question: Name the professor who got graduation from the University of Boston.
Evidence: Name the professor refers to full name which includes f_name and l_name;
SQL: SELECT first_name, last_name FROM prof WHERE graduate_from = 'University of Boston'
Database: cs_semester
Question: List the courses' IDs and students' IDs who failed to pass the course.
Evidence: If grade is null or empty, it means that this student fails to pass the course;
SQL: SELECT course_id, student_id FROM registration WHERE grade IS NULL OR grade = ''
Database: cs_semester
Question: What is the male and female ratio among the professors?
Evidence: DIVIDE(COUNT(prof_id where gender = 'Male'), COUNT(prof_id where gender = 'Female'));
SQL: SELECT CAST(SUM(CASE WHEN gender = 'Male' THEN 1 ELSE 0 END) AS REAL) / SUM(CASE WHEN gender = 'Female' THEN 1 ELSE 0 END) FROM prof
Database: cs_semester
Question: Describe the names and credits of the least difficult courses.
Evidence: diff refers to difficulty; the least difficult courses refer to MIN(diff);
SQL: SELECT name, credit FROM course WHERE diff = ( SELECT MIN(diff) FROM course )
Database: cs_semester
Question: Describe the students' full names and GPAs under the supervision of the most popular professor.
Evidence: student's full names = f_name, l_name; most popular refers to MAX(popularity);
SQL: SELECT T3.f_name, T3.l_name, T3.gpa FROM prof AS T1 INNER JOIN RA AS T2 ON T1.prof_id = T2.prof_id INNER JOIN student AS T3 ON T2.student_id = T3.student_id ORDER BY T1.popularity DESC LIMIT 1
Database: cs_semester
Question: Provide the full names and emails of unpaid research assistants.
Evidence: full names = f_name, l_name; research assistant refers to the student who serves for research where the abbreviation is RA; unpaid research assistant refers to salary = 'free';
SQL: SELECT T2.f_name, T2.l_name, T2.email FROM RA AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id WHERE T1.salary = 'free'
Database: cs_semester
Question: List the research assistants' full names, capabilities and GPAs who were under the supervision of Merwyn Conkay.
Evidence: research assistant refers to the student who serves for research where the abbreviation is RA; full names = f_name, l_name;
SQL: SELECT T3.f_name, T3.l_name, T2.capability, T3.gpa FROM prof AS T1 INNER JOIN RA AS T2 ON T1.prof_id = T2.prof_id INNER JOIN student AS T3 ON T2.student_id = T3.student_id WHERE T1.first_name = 'Merwyn' AND T1.last_name = 'Conkay'
Database: cs_semester
Question: Describe the students' full names and grades in Intro to BlockChain course.
Evidence: student's full names = f_name, l_name;
SQL: SELECT T1.f_name, T1.l_name, T2.grade FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.name = 'Intro to BlockChain'
Database: cs_semester
Question: Among students registered for the most difficult course, list the students' full names who got grade A.
Evidence: difficulty refers to diff; most difficult course refers to MAX(diff); student's full names = f_name, l_name;
SQL: SELECT T1.f_name, T1.l_name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T2.grade = 'A' ORDER BY T3.diff DESC LIMIT 1
Database: cs_semester
Question: Describe the full names and graduated universities of the professors who advised Olia Rabier.
Evidence: full names of the professors = first_name, last_name; graduated universities of the professors refers to graduate_from;
SQL: SELECT T1.first_name, T1.last_name, T1.graduate_from FROM prof AS T1 INNER JOIN RA AS T2 ON T1.prof_id = T2.prof_id INNER JOIN student AS T3 ON T2.student_id = T3.student_id WHERE T3.f_name = 'Olia' AND T3.l_name = 'Rabier'
Database: cs_semester
Question: Name the students of the Advanced Database Systems course with the highest satisfaction.
Evidence: full the students = f_name, l_name; course refers to name; satisfaction refers to sat; highest satisfaction refers to MAX(sat);
SQL: SELECT T1.f_name, T1.l_name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.name = 'Advanced Database Systems' ORDER BY T2.sat DESC LIMIT 1
Database: cs_semester
Question: Calculate the GPA of the semester for Laughton Antonio.
Evidence: GPA of the semester = DIVIDE(SUM(MULTIPLY(credit, grade)), SUM(credit)); grade 'A' refers to gpa = 4; grade 'B' refers to gpa = 3; grade 'C' refers to gpa = 2; grade 'D' refers to gpa = 1;
SQL: SELECT CAST(SUM(T3.credit * CASE T1.grade WHEN 'A' THEN 4 WHEN 'B' THEN 3 WHEN 'C' THEN 2 WHEN 'D' THEN 1 ELSE 1 END) AS REAL) / COUNT(T3.credit) FROM registration AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T1.course_id = T3.course_id WHERE T2.f_name = 'Laughton' AND T2.l_name = 'Antonio'
Database: cs_semester
Question: Provide the registered courses' names by undergraduate students with GPA of 3.7 and above.
Evidence: Undergraduate students refers to type = 'UG'; GPA of 3.7 and above refers to gpa > 3.7;
SQL: SELECT DISTINCT T1.f_name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T1.type = 'UG' AND T1.gpa > 3.7
Database: cs_semester
Question: Describe the names and capability of the students who were advised by professors from the University of Washington.
Evidence: names of the students = f_name, l_name;
SQL: SELECT T3.f_name, T3.l_name, T2.capability FROM prof AS T1 INNER JOIN RA AS T2 ON T1.prof_id = T2.prof_id INNER JOIN student AS T3 ON T2.student_id = T3.student_id WHERE T1.graduate_from = 'University of Washington'
Database: cs_semester
Question: Describe the full names, emails and intelligence of the students with the highest capability and salary.
Evidence: full names of the students = f_name; l_name; highest capability refers to MAX(capability); highest salary refers to salary = 'high';
SQL: SELECT f_name, l_name, email, intelligence FROM student WHERE student_id IN ( SELECT student_id FROM RA WHERE salary = 'high' AND capability = ( SELECT MAX(capability) FROM RA ) )
Database: cs_semester
Question: Mention the names and credits of course registered by the students who were under the supervision of female professor with the highest teaching ability.
Evidence: female refers to gender = 'Female'; highest teaching ability refers to MAX(teachingability);
SQL: SELECT T5.name, T5.credit FROM RA AS T1 INNER JOIN prof AS T2 ON T1.prof_id = T2.prof_id INNER JOIN student AS T3 ON T1.student_id = T3.student_id INNER JOIN registration AS T4 ON T3.student_id = T4.student_id INNER JOIN course AS T5 ON T4.course_id = T5.course_id WHERE T2.gender = 'Female' ORDER BY T2.teachingability DESC LIMIT 1
Database: cs_semester
Question: How many of the professors are female?
Evidence: female refers to gender = 'Female';
SQL: SELECT COUNT(prof_id) FROM prof WHERE gender = 'Female'
Database: cs_semester
Question: What is the name of the most difficult course?
Evidence: difficulty of a course refers to diff; most difficult course refers to MAX(diff);
SQL: SELECT name FROM course WHERE diff = ( SELECT MAX(diff) FROM course )
Database: cs_semester
Question: Among the students with a gpa of 3.1 to 3.7, how many of them are undergraduate students?
Evidence: gpa of 3.1 to 3.7 refers to gpa BETWEEN 3.1 AND 3.7; undergraduate students refers to type = 'UG';
SQL: SELECT COUNT(student_id) FROM student WHERE gpa BETWEEN 3.1 AND 3.7 AND type = 'UG'
Database: cs_semester
Question: Give the student's ID of students with 2.5 GPA and enrolled in C for Programmers.
SQL: SELECT T2.student_id FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.name = 'C for Programmers' AND T1.gpa = 2.5
Database: cs_semester
Question: Give the student's last name that gave the highest student satisfaction for the course "Intro to Database 2".
Evidence: student's last name refers to l_name; satisfaction refers to sat; highest satisfaction refers to MAX(sat);
SQL: SELECT T1.l_name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.name = 'Intro to Database 2' ORDER BY T2.sat DESC LIMIT 1
Database: cs_semester
Question: Among the students with high salary, what is total number of students with a GPA higher than 3?
Evidence: high salary refers to salary = 'high'; GPA higher than 3 refers to gpa > 3;
SQL: SELECT COUNT(T1.student_id) FROM RA AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id WHERE T1.salary = 'high' AND T2.gpa > 3
Database: cs_semester
Question: Among undergraduate students, list the name of the course with the highest student satisfaction.
Evidence: Undergraduate students refers to type = 'UG'; satisfaction refers to sat; highest satisfaction refers to MAX(sat);
SQL: SELECT T3.name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T1.type = 'UG' ORDER BY T2.sat DESC LIMIT 1
Database: cs_semester
Question: List the capability of research postgraduate students with an intellegence level of 4 and above.
Evidence: research postgraduate students refers to type = 'RPG'; intelligence level of 4 and above refers to intelligence > = 4;
SQL: SELECT T1.capability FROM RA AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id WHERE T2.type = 'RPG' AND T2.intelligence >= 4
Database: cs_semester
Question: In students with a grade of B, how many of them have an intellegence level of 3?
SQL: SELECT COUNT(T1.student_id) FROM registration AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id WHERE T1.grade = 'B' AND T2.intelligence = 3
Database: cs_semester
Question: What is the difficulty of the course in which a student with level of intellengence of 5 got an A grade?
Evidence: difficulty of the course refers to diff;
SQL: SELECT T3.diff FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T2.grade = 'A' AND T1.intelligence = 5
Database: cs_semester
Question: Among professors with the highest popularity, how many of their students have research capability of 5?
Evidence: highest popularity refers to MAX(popularity); research capability refers to capability; capability = 5;
SQL: SELECT COUNT(T1.student_id) FROM RA AS T1 INNER JOIN prof AS T2 ON T1.prof_id = T2.prof_id WHERE T1.capability = 5 ORDER BY T2.popularity DESC LIMIT 1
Database: cs_semester
Question: List the course's name where students acquired a grade of D.
SQL: SELECT T1.name FROM course AS T1 INNER JOIN registration AS T2 ON T1.course_id = T2.course_id WHERE T2.grade = 'D'
Database: cs_semester
Question: What is the capability on research of the student named Alvera McQuillin?
Evidence: capability on research refers to capability;
SQL: SELECT T2.capability FROM student AS T1 INNER JOIN RA AS T2 ON T1.student_id = T2.student_id WHERE T1.f_name = 'Alvera' AND T1.l_name = 'McQuillin'
Database: cs_semester
Question: Of courses with 3 credit, how many students have GPA of 3.2?
SQL: SELECT COUNT(T1.student_id) FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.credit = 3 AND T1.gpa = 3.2
Database: cs_semester
Question: Among students with low salary, how many of them have a gpa of 3.5?
Evidence: low salary refers to salary = 'low';
SQL: SELECT COUNT(T1.student_id) FROM RA AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id WHERE T2.gpa = 3.5 AND T1.salary = 'low'
Database: cs_semester
Question: List the student's email with grade of B in a course with difficulty greater than the 80% of average difficulty of all courses.
Evidence: difficulty refers to diff; course with difficulty greater than the 80% of average difficulty refers to diff > MULTIPLY(AVG(diff), 80%);
SQL: SELECT T2.email FROM registration AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T1.course_id = T3.course_id WHERE T1.grade = 'B' GROUP BY T3.diff HAVING T3.diff > AVG(T3.diff) * 0.8
Database: cs_semester
Question: Among the professors with a teachability of 3 and below, what is the percentage of their student advisees with a low salary?
Evidence: teachability < = 3; percentage = MULTIPLY(DIVIDE(COUNT(salary = 'low'), COUNT(salary)), 1.0);
SQL: SELECT CAST(SUM(CASE WHEN T1.salary = 'low' THEN 1 ELSE 0 END) AS REAL) * 100 / COUNT(T1.salary) FROM RA AS T1 INNER JOIN prof AS T2 ON T1.prof_id = T2.prof_id WHERE T2.teachingability < 3
Database: cs_semester
Question: Find the most important and most difficult courses.
Evidence: most important refers to MAX(credit); most difficult refers to MAX(diff);
SQL: SELECT name FROM course WHERE credit = ( SELECT MAX(credit) FROM course ) AND diff = ( SELECT MAX(diff) FROM course )
Database: cs_semester
Question: What is the average teaching ability of the most popular professors?
Evidence: average = AVG(teachingability); most popular professor refers to MAX(popularity);
SQL: SELECT CAST(SUM(teachingability) AS REAL) / COUNT(prof_id) FROM prof WHERE popularity = ( SELECT MAX(popularity) FROM prof )
Database: cs_semester
Question: Calculate the average satisfaction of the good students with their courses.
Evidence: average satisfaction = DIVIDE(SUM(sat), COUNT(course_id)); satisfaction refers to sat; good student refers to grade = 'B';
SQL: SELECT CAST(SUM(sat) AS REAL) / COUNT(course_id) FROM registration WHERE grade = 'B'
Database: cs_semester
Question: Among the students with less than four intelligence, list the full name and phone number of students with a greater than 3 GPA.
Evidence: intelligence < 4; full name = f_name, l_name; gpa > 3;
SQL: SELECT f_name, l_name, phone_number FROM student WHERE gpa > 3 AND intelligence < 4
Database: cs_semester
Question: Name the students with above-average capability.
Evidence: name of the students = f_name, l_name; above average-capability refers to capability > AVG(capability);
SQL: SELECT T1.f_name, T1.l_name FROM student AS T1 INNER JOIN RA AS T2 ON T1.student_id = T2.student_id WHERE T2.capability > ( SELECT AVG(capability) FROM RA )
Database: cs_semester
Question: For the students with an intelligence of 5, list the full name and courses taken by them who have less than a 3 GPA.
Evidence: full name of the students = f_name, l_name; gpa < 3;
SQL: SELECT T1.f_name, T1.l_name, T3.name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T1.intelligence = 5 AND T1.gpa < 3
Database: cs_semester
Question: What is the average capability of students with less than a 2.5 GPA?
Evidence: average capability = AVG(capability); gpa < 2.5;
SQL: SELECT CAST(SUM(T1.capability) AS REAL) / COUNT(T1.student_id) FROM RA AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id WHERE T2.gpa < 2.5
Database: cs_semester
Question: List the full name of the professors who advised students with intelligence 1.
Evidence: full name of the professors = first_name, last_name;
SQL: SELECT T1.first_name, T1.last_name FROM prof AS T1 INNER JOIN RA AS T2 ON T1.prof_id = T2.prof_id INNER JOIN student AS T3 ON T2.student_id = T3.student_id WHERE T3.intelligence = 1
Database: cs_semester
Question: What is the difference in the average GPA of students who took the hardest and easiest courses?
Evidence: difference in the average gpa = SUBTRACT(AVG(gpa WHERE MAX(diff)), AVG(gpa where min(diff))); difficulty of the course refers to diff; hardest course refers to MAX(diff); easiest course refers to MIN(diff);
SQL: SELECT AVG(T1.gpa) FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.diff IN (2, 1) GROUP BY T3.diff
Database: cs_semester
Question: Give the full name and capability of students who failed in any courses.
Evidence: full name of students = f_name, l_name; failed refers to grade IS NULL;
SQL: SELECT T2.f_name, T2.l_name, T1.capability FROM RA AS T1 INNER JOIN student AS T2 ON T2.student_id = T1.student_id INNER JOIN registration AS T3 ON T2.student_id = T3.student_id WHERE T3.grade IS NULL OR T3.grade = ''
Database: cs_semester
Question: Of the students with high salaries, how many took the computer vision course?
Evidence: high salaries refers to salary = 'High';
SQL: SELECT COUNT(T1.student_id) FROM RA AS T1 INNER JOIN registration AS T2 ON T2.student_id = T1.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T1.salary = 'high' AND T3.name = 'Computer Vision'
Database: cs_semester
Question: Find the full name and popularity of the professor who advises the most number of students.
Evidence: full name of the professor = first_name, last_name; most number of students refers to MAX(COUNT(student_id));
SQL: SELECT T1.first_name, T1.last_name, T1.popularity FROM prof AS T1 INNER JOIN RA AS T2 ON T1.prof_id = T2.prof_id GROUP BY T1.prof_id ORDER BY COUNT(T2.student_id) DESC LIMIT 1
Database: cs_semester
Question: Please give the name of the course in which most numbers of the students got an A. Also, list the full name of the students who got an A in this course.
Evidence: most number of students got an A refers MAX(COUNT(student_id WHERE grade = 'A')); full name = f_name, l_name; got an A refers to grade = 'A';
SQL: SELECT T3.name, T2.f_name, T2.l_name FROM registration AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T1.course_id = T3.course_id WHERE T1.grade = 'A' GROUP BY T3.name ORDER BY COUNT(T1.student_id) DESC LIMIT 1
Database: cs_semester
Question: Calculate the difference between the average satisfaction of the students with high salaries and no salary.
Evidence: average satisfaction difference = SUBTRACT(AVG(sat where salary = 'high')), (AVG(sat where salary = 'free')); satisfaction refers to sat; no salary refers to salary = 'free';
SQL: SELECT AVG(T2.sat) - ( SELECT AVG(T2.sat) FROM RA AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id WHERE T1.salary = 'free' ) AS diff FROM RA AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id WHERE T1.salary = 'high'
Database: cs_semester
Question: Find the university from which the professor who advised most undergraduate students graduated.
Evidence: university from which the professor graduated refers to graduate_from; undergraduate students refers to type = 'UG';
SQL: SELECT T1.graduate_from FROM prof AS T1 INNER JOIN RA AS T2 ON T1.prof_id = T2.prof_id INNER JOIN student AS T3 ON T2.student_id = T3.student_id WHERE T3.type = 'UG' GROUP BY T1.prof_id ORDER BY COUNT(T2.student_id) DESC LIMIT 1
Database: cs_semester
Question: Among the professors with more than average teaching ability, list the full name and email address of the professors who advise two or more students.
Evidence: more than average teaching ability refers to teachingability > AVG(teachingability); full_name of the professor = first_name, last_name; email address of the professor refers to email; advises two or more students refers to COUNT(student_id) > = 2;

SQL: SELECT T2.first_name, T2.last_name, T2.email FROM RA AS T1 INNER JOIN prof AS T2 ON T1.prof_id = T2.prof_id WHERE T2.teachingability > ( SELECT AVG(teachingability) FROM prof ) GROUP BY T2.prof_id HAVING COUNT(T1.student_id) >= 2
Database: cs_semester
Question: What percentage of students are highly satisfied with the Intro to Database 2 course?
Evidence: percentage = MULTIPLY(DIVIDE(COUNT(MAX(sat)), (COUNT(student_id))), 1.0); highly satisfied refers to MAX(sat);
SQL: SELECT CAST(( SELECT COUNT(*) FROM course WHERE name = 'Intro to Database 2' AND course_id IN ( SELECT course_id FROM registration WHERE sat = ( SELECT MAX(sat) FROM registration ) ) ) AS REAL) * 100  / COUNT(T1.student_id) FROM registration AS T1 INNER JOIN course AS T2 ON T1.course_id = T2.course_id WHERE T2.name = 'Intro to Database 2'
Database: cs_semester
Question: What is the first and last name of students with highest gpa?
Evidence: first name refers of students refers to f_name; last name of students refers to l_name; highest gpa refers to MAX(gpa);
SQL: SELECT f_name, l_name FROM student WHERE gpa = ( SELECT MAX(gpa) FROM student )
Database: cs_semester
Question: Among professors with the highest teachability, how many of their students have high salary?
Evidence: highest teachability refers to MAX(teachability); high salary refers to salary = 'high';
SQL: SELECT COUNT(T1.student_id) FROM RA AS T1 INNER JOIN prof AS T2 ON T1.prof_id = T2.prof_id WHERE T1.salary = 'high' ORDER BY T2.teachingability DESC LIMIT 1
Database: cs_semester
Question: What is the salary range of the student with an email of grosellg@hku.hk?
Evidence: salary range refers to salary;
SQL: SELECT T1.salary FROM RA AS T1 INNER JOIN student AS T2 ON T1.student_id = T2.student_id WHERE T2.email = 'grosellg@hku.hk'
Database: cs_semester
Question: Among students that gave satisfaction of value 4 for the course named "Statistical Learning", how many of them have a gpa of 3.8?
Evidence: satisfaction refers to sat;

sat = 4; gpa = 3.8 
SQL: SELECT COUNT(T1.student_id) FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.name = 'Statistical learning' AND T2.sat = 4 AND T1.gpa = 3.8
Database: cs_semester
Question: Among courses with difficulty of 3, how many students have intellegence level of 2?
Evidence: difficulty of 3 refers to diff = 3; intelligence = 2
SQL: SELECT COUNT(T1.student_id) FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.diff = 3 AND T1.intelligence = 2
Database: cs_semester
Question: List the student's first and last name that got a C in the course named "Applied Deep Learning".
Evidence: student's first name refers to f_name; student's last name refers to l_name; got a C refers to grade = 'C';
SQL: SELECT T1.f_name, T1.l_name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T3.name = 'Applied Deep Learning ' AND T2.grade = 'C'
Database: cs_semester
Question: Among research postgraduate students, give the name of the course with the student satisfaction value of 1.
Evidence: research postgraduate students refers to type = 'RPG'; name of the course refers to name; satisfaction refers to sat; sat = 1;
SQL: SELECT T3.name FROM student AS T1 INNER JOIN registration AS T2 ON T1.student_id = T2.student_id INNER JOIN course AS T3 ON T2.course_id = T3.course_id WHERE T2.sat = 1 AND T1.type = 'RPG'