aherntech/spider-syn huggingface dataset:
Database: college_1
Question: What are the first names and date of birth of professors teaching course ACCT-211?
Paraphrased question: What are the forename and birthday of professors teaching course ACCT-211?
SQL: SELECT DISTINCT T1.EMP_FNAME ,  T1.EMP_DOB FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM  =  T2.PROF_NUM WHERE CRS_CODE  =  "ACCT-211"
Database: college_1
Question: What are the first names and birthdates of the professors in charge of ACCT-211?
Paraphrased question: What are the forename and birthdates of the professors in charge of ACCT-211?
SQL: SELECT DISTINCT T1.EMP_FNAME ,  T1.EMP_DOB FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM  =  T2.PROF_NUM WHERE CRS_CODE  =  "ACCT-211"
Database: college_1
Question: How many classes are professor whose last name is Graztevski has?
Paraphrased question: How many classes are professor whose last name is Graztevski has?
SQL: SELECT count(*) FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM  =  T2.PROF_NUM WHERE T1.EMP_LNAME  =  'Graztevski'
Database: college_1
Question: How many classes does the professor whose last name is Graztevski teach?
Paraphrased question: How many classes does the professor whose last name is Graztevski teach?
SQL: SELECT count(*) FROM employee AS T1 JOIN CLASS AS T2 ON T1.EMP_NUM  =  T2.PROF_NUM WHERE T1.EMP_LNAME  =  'Graztevski'
Database: college_1
Question: What is the code of the school where the accounting department belongs to?
Paraphrased question: What is the code of the school where the accounting department belongs to?
SQL: SELECT school_code FROM department WHERE dept_name  =  "Accounting"
Database: college_1
Question: What is the school code of the accounting department?
Paraphrased question: What is the school code of the accounting department?
SQL: SELECT school_code FROM department WHERE dept_name  =  "Accounting"
Database: college_1
Question: How many credits does course CIS-220 have, and what its description?
Paraphrased question: How many credits does course CIS-220 have, and what its describing content?
SQL: SELECT crs_credit ,  crs_description FROM course WHERE crs_code  =  'CIS-220'
Database: college_1
Question: What is the description for the CIS-220 and how many credits does it have?
Paraphrased question: What is the describing content for the CIS-220 and how many credits does it have?
SQL: SELECT crs_credit ,  crs_description FROM course WHERE crs_code  =  'CIS-220'
Database: college_1
Question: what is the address of history department?
Paraphrased question: what is the location of history department?
SQL: SELECT dept_address FROM department WHERE dept_name  =  'History'
Database: college_1
Question: Where is the history department?
Paraphrased question: Where is the history department?
SQL: SELECT dept_address FROM department WHERE dept_name  =  'History'
Database: college_1
Question: How many different locations does the school with code BUS has?
Paraphrased question: How many different locations does the school with code BUS has?
SQL: SELECT count(DISTINCT dept_address) FROM department WHERE school_code  =  'BUS'
Database: college_1
Question: What are the different locations of the school with the code BUS?
Paraphrased question: What are the different locations of the school with the code BUS?
SQL: SELECT count(DISTINCT dept_address) FROM department WHERE school_code  =  'BUS'
Database: college_1
Question: How many different locations does each school have?
Paraphrased question: How many different locations does each school have?
SQL: SELECT count(DISTINCT dept_address) ,  school_code FROM department GROUP BY school_code
Database: college_1
Question: Count different addresses of each school.
Paraphrased question: Count different locations of each school.
SQL: SELECT count(DISTINCT dept_address) ,  school_code FROM department GROUP BY school_code
Database: college_1
Question: Find the description and credit for the course QM-261?
Paraphrased question: Find the describing content and credit for the course QM-261?
SQL: SELECT crs_credit ,  crs_description FROM course WHERE crs_code  =  'QM-261'
Database: college_1
Question: What is the course description and number of credits for QM-261?
Paraphrased question: What is the course describing content and number of credits for QM-261?
SQL: SELECT crs_credit ,  crs_description FROM course WHERE crs_code  =  'QM-261'
Database: college_1
Question: Find the number of departments in each school.
Paraphrased question: Find the number of departments in each school.
SQL: SELECT count(DISTINCT dept_name) ,  school_code FROM department GROUP BY school_code
Database: college_1
Question: How many departments are in each school?
Paraphrased question: How many departments are in each school?
SQL: SELECT count(DISTINCT dept_name) ,  school_code FROM department GROUP BY school_code
Database: college_1
Question: Find the number of different departments in each school whose number of different departments is less than 5.
Paraphrased question: Find the number of different departments in each school whose number of different departments is less than 5.
SQL: SELECT count(DISTINCT dept_name) ,  school_code FROM department GROUP BY school_code HAVING count(DISTINCT dept_name)  <  5
Database: college_1
Question: How many different departments are there in each school that has less than 5 apartments?
Paraphrased question: How many different departments are there in each school that has less than 5 apartments?
SQL: SELECT count(DISTINCT dept_name) ,  school_code FROM department GROUP BY school_code HAVING count(DISTINCT dept_name)  <  5
Database: college_1
Question: How many sections does each course has?
Paraphrased question: How many parts does each course has?
SQL: SELECT count(*) ,  crs_code FROM CLASS GROUP BY crs_code
Database: college_1
Question: How many sections does each course have?
Paraphrased question: How many parts does each course have?
SQL: SELECT count(*) ,  crs_code FROM CLASS GROUP BY crs_code
Database: college_1
Question: What is the total credit does each department offer?
Paraphrased question: What is the total credit does each department offer?
SQL: SELECT sum(crs_credit) ,  dept_code FROM course GROUP BY dept_code
Database: college_1
Question: How many credits does the department offer?
Paraphrased question: How many credits does the department offer?
SQL: SELECT sum(crs_credit) ,  dept_code FROM course GROUP BY dept_code
Database: college_1
Question: Find the number of classes offered for all class rooms that held at least 2 classes.
Paraphrased question: Find the number of classes offered for all classrooms that held at least 2 classes.
SQL: SELECT count(*) ,  class_room FROM CLASS GROUP BY class_room HAVING count(*)  >=  2
Database: college_1
Question: For each classroom with at least 2 classes, how many classes are offered?
Paraphrased question: For each classroom with at least 2 classes, how many classes are offered?
SQL: SELECT count(*) ,  class_room FROM CLASS GROUP BY class_room HAVING count(*)  >=  2
Database: college_1
Question: Find the number of classes in each department.
Paraphrased question: Find the number of classes in each department.
SQL: SELECT count(*) ,  dept_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code  =  T2.crs_code GROUP BY dept_code
Database: college_1
Question: How many classes are held in each department?
Paraphrased question: How many classes are held in each department?
SQL: SELECT count(*) ,  dept_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code  =  T2.crs_code GROUP BY dept_code
Database: college_1
Question: Find the number of classes in each school.
Paraphrased question: Find the number of classes in each school.
SQL: SELECT count(*) ,  T3.school_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code  =  T2.crs_code JOIN department AS T3 ON T2.dept_code  =  T3.dept_code GROUP BY T3.school_code
Database: college_1
Question: How many classes exist for each school?
Paraphrased question: How many classes exist for each school?
SQL: SELECT count(*) ,  T3.school_code FROM CLASS AS T1 JOIN course AS T2 ON T1.crs_code  =  T2.crs_code JOIN department AS T3 ON T2.dept_code  =  T3.dept_code GROUP BY T3.school_code
Database: college_1
Question: What is the number of professors for different school?
Paraphrased question: What is the number of professors for different school?
SQL: SELECT count(*) ,  T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.school_code
Database: college_1
Question: How many different professors are there for the different schools?
Paraphrased question: How many different professors are there for the different schools?
SQL: SELECT count(*) ,  T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.school_code
Database: college_1
Question: Find the count and code of the job has most employees.
Paraphrased question: Find the count and code of the job has most staffs.
SQL: SELECT emp_jobcode ,  count(*) FROM employee GROUP BY emp_jobcode ORDER BY count(*) DESC LIMIT 1
Database: college_1
Question: What is the count and code of the job with the most employee?
Paraphrased question: What is the count and code of the job with the most staff?
SQL: SELECT emp_jobcode ,  count(*) FROM employee GROUP BY emp_jobcode ORDER BY count(*) DESC LIMIT 1
Database: college_1
Question: Which school has the smallest amount of professors?
Paraphrased question: Which school has the smallest amount of professors?
SQL: SELECT T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.school_code ORDER BY count(*) LIMIT 1
Database: college_1
Question: Which school has the fewest professors?
Paraphrased question: Which school has the fewest professors?
SQL: SELECT T1.school_code FROM department AS T1 JOIN professor AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.school_code ORDER BY count(*) LIMIT 1
Database: college_1
Question: Find the number of professors with a Ph.D. degree in each department.
Paraphrased question: Find the number of professors with a Ph.D. degree in each department.
SQL: SELECT count(*) ,  dept_code FROM professor WHERE prof_high_degree  =  'Ph.D.' GROUP BY dept_code
Database: college_1
Question: How many professors have a Ph.D. in each department?
Paraphrased question: How many professors have a Ph.D. in each department?
SQL: SELECT count(*) ,  dept_code FROM professor WHERE prof_high_degree  =  'Ph.D.' GROUP BY dept_code
Database: college_1
Question: Find the number of students for each department.
Paraphrased question: Find the number of students for each department.
SQL: SELECT count(*) ,  dept_code FROM student GROUP BY dept_code
Database: college_1
Question: How many students are in each department?
Paraphrased question: How many students are in each department?
SQL: SELECT count(*) ,  dept_code FROM student GROUP BY dept_code
Database: college_1
Question: Find the total number of hours have done for all students in each department.
Paraphrased question: Find the total number of hours have done for all students in each department.
SQL: SELECT sum(stu_hrs) ,  dept_code FROM student GROUP BY dept_code
Database: college_1
Question: How many hours do the students spend studying in each department?
Paraphrased question: How many hours do the students spend studying in each department?
SQL: SELECT sum(stu_hrs) ,  dept_code FROM student GROUP BY dept_code
Database: college_1
Question: Find the max, average, and minimum gpa of all students in each department.
Paraphrased question: Find the max, average, and minimum gpa of all students in each department.
SQL: SELECT max(stu_gpa) ,  avg(stu_gpa) ,  min(stu_gpa) ,  dept_code FROM student GROUP BY dept_code
Database: college_1
Question: What is the highest, lowest, and average student GPA for every department?
Paraphrased question: What is the highest, lowest, and average student GPA for every department?
SQL: SELECT max(stu_gpa) ,  avg(stu_gpa) ,  min(stu_gpa) ,  dept_code FROM student GROUP BY dept_code
Database: college_1
Question: What is the name and the average gpa of department whose students have the highest average gpa?
Paraphrased question: What is the name and the average gpa of department whose students have the highest average gpa?
SQL: SELECT T2.dept_name ,  avg(T1.stu_gpa) FROM student AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.dept_code ORDER BY avg(T1.stu_gpa) DESC LIMIT 1
Database: college_1
Question: Which department has the highest average student GPA, and what is the average gpa?
Paraphrased question: Which department has the highest average student GPA, and what is the average gpa?
SQL: SELECT T2.dept_name ,  avg(T1.stu_gpa) FROM student AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.dept_code ORDER BY avg(T1.stu_gpa) DESC LIMIT 1
Database: college_1
Question: how many schools exist in total?
Paraphrased question: how many schools exist in total?
SQL: SELECT count(DISTINCT school_code) FROM department
Database: college_1
Question: How many schools are there in the department?
Paraphrased question: How many schools are there in the department?
SQL: SELECT count(DISTINCT school_code) FROM department
Database: college_1
Question: How many different classes are there?
Paraphrased question: How many different classes are there?
SQL: SELECT count(DISTINCT class_code) FROM CLASS
Database: college_1
Question: How many unique classes are offered?
Paraphrased question: How many unique classes are offered?
SQL: SELECT count(DISTINCT class_code) FROM CLASS
Database: college_1
Question: How many courses are offered?
Paraphrased question: How many curriculum are offered?
SQL: SELECT count(DISTINCT crs_code) FROM CLASS
Database: college_1
Question: What are the number of different course codes?
Paraphrased question: What are the number of different curriculum codes?
SQL: SELECT count(DISTINCT crs_code) FROM CLASS
Database: college_1
Question: How many departments does the college has?
Paraphrased question: How many departments does the college has?
SQL: SELECT count(DISTINCT dept_name) FROM department
Database: college_1
Question: How many different departments are there?
Paraphrased question: How many different departments are there?
SQL: SELECT count(DISTINCT dept_name) FROM department
Database: college_1
Question: How many courses are offered by the Computer Info. Systems department?
Paraphrased question: How many curriculum are offered by the Computer Info. Systems department?
SQL: SELECT count(*) FROM department AS T1 JOIN course AS T2 ON T1.dept_code  =  T2.dept_code WHERE dept_name  =  "Computer Info. Systems"
Database: college_1
Question: How many courses does the department of Computer Information Systmes offer?
Paraphrased question: How many curriculum does the division of Computer Information Systmes offer?
SQL: SELECT count(*) FROM department AS T1 JOIN course AS T2 ON T1.dept_code  =  T2.dept_code WHERE dept_name  =  "Computer Info. Systems"
Database: college_1
Question: How many sections does course ACCT-211 has?
Paraphrased question: How many parts does course ACCT-211 has?
SQL: SELECT count(DISTINCT class_section) FROM CLASS WHERE crs_code  =  'ACCT-211'
Database: college_1
Question: What is the number of different class sections offered in the course ACCT-211?
Paraphrased question: What is the number of different class sections offered in the curriculum ACCT-211?
SQL: SELECT count(DISTINCT class_section) FROM CLASS WHERE crs_code  =  'ACCT-211'
Database: college_1
Question: Find the total credits of all classes offered by each department.
Paraphrased question: Find the total credits of all classes offered by each department.
SQL: SELECT sum(T1.crs_credit) ,  T1.dept_code FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code  =  T2.crs_code GROUP BY T1.dept_code
Database: college_1
Question: What are the total number of credits offered by each department?
Paraphrased question: What are the total number of credits offered by each division?
SQL: SELECT sum(T1.crs_credit) ,  T1.dept_code FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code  =  T2.crs_code GROUP BY T1.dept_code
Database: college_1
Question: Find the name of the department that offers the largest number of credits of all classes.
Paraphrased question: Find the name of the division that offers the largest number of credits of all classes.
SQL: SELECT T3.dept_name FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code  =  T2.crs_code JOIN department AS T3 ON T1.dept_code  =  T3.dept_code GROUP BY T1.dept_code ORDER BY sum(T1.crs_credit) DESC LIMIT 1
Database: college_1
Question: Which department offers the most credits all together?
Paraphrased question: Which division offers the most credits all together?
SQL: SELECT T3.dept_name FROM course AS T1 JOIN CLASS AS T2 ON T1.crs_code  =  T2.crs_code JOIN department AS T3 ON T1.dept_code  =  T3.dept_code GROUP BY T1.dept_code ORDER BY sum(T1.crs_credit) DESC LIMIT 1
Database: college_1
Question: How many students enrolled in class ACCT-211?
Paraphrased question: How many students are registered in class ACCT-211?
SQL: SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code WHERE T1.crs_code  =  'ACCT-211'
Database: college_1
Question: What are the total number of students enrolled in ACCT-211?
Paraphrased question: What are the total number of students are registered in ACCT-211?
SQL: SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code WHERE T1.crs_code  =  'ACCT-211'
Database: college_1
Question: What is the first name of each student enrolled in class ACCT-211?
Paraphrased question: What is the forename of each student are registered in class ACCT-211?
SQL: SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN student AS T3 ON T2.stu_num  =  T3.stu_num WHERE T1.crs_code  =  'ACCT-211'
Database: college_1
Question: What are the first names of all students in course ACCT-211?
Paraphrased question: What are the forename of all students in course ACCT-211?
SQL: SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN student AS T3 ON T2.stu_num  =  T3.stu_num WHERE T1.crs_code  =  'ACCT-211'
Database: college_1
Question: What is the first name of students enrolled in class ACCT-211 and got grade C?
Paraphrased question: What is the forename of students enrolled in class ACCT-211 and got grade C?
SQL: SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN student AS T3 ON T2.stu_num  =  T3.stu_num WHERE T1.crs_code  =  'ACCT-211' AND T2.enroll_grade  =  'C'
Database: college_1
Question: What are the first names of all students who took ACCT-211 and received a C?
Paraphrased question: What are the forename of all students who took ACCT-211 and received a C?
SQL: SELECT T3.stu_fname FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN student AS T3 ON T2.stu_num  =  T3.stu_num WHERE T1.crs_code  =  'ACCT-211' AND T2.enroll_grade  =  'C'
Database: college_1
Question: Find the total number of employees.
Paraphrased question: Find the total number of staffs.
SQL: SELECT count(*) FROM employee
Database: college_1
Question: How many employees are there all together?
Paraphrased question: How many staffs are there all together?
SQL: SELECT count(*) FROM employee
Database: college_1
Question: How many professors do have a Ph.D. degree?
Paraphrased question: How many professors do have a Ph.D. degree?
SQL: SELECT count(*) FROM professor WHERE prof_high_degree  =  'Ph.D.'
Database: college_1
Question: What is the total number of professors with a Ph.D. ?
Paraphrased question: What is the total number of professors with a Ph.D. ?
SQL: SELECT count(*) FROM professor WHERE prof_high_degree  =  'Ph.D.'
Database: college_1
Question: How many students are enrolled in the class taught by some professor from the accounting department?
Paraphrased question: How many students are registered in the class taught by some professor from the accounting department?
SQL: SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN course AS T3 ON T1.crs_code  =  T3.crs_code JOIN department AS T4 ON T3.dept_code  =  T4.dept_code WHERE T4.dept_name  =  'Accounting'
Database: college_1
Question: How many students are enrolled in some classes that are taught by an accounting professor?
Paraphrased question: How many students are registered in some classes that are taught by an accounting professor?
SQL: SELECT count(*) FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN course AS T3 ON T1.crs_code  =  T3.crs_code JOIN department AS T4 ON T3.dept_code  =  T4.dept_code WHERE T4.dept_name  =  'Accounting'
Database: college_1
Question: What is the name of the department that has the largest number of students enrolled?
Paraphrased question: What is the name of the division that has the largest number of students enrolled?
SQL: SELECT T4.dept_name FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN course AS T3 ON T1.crs_code  =  T3.crs_code JOIN department AS T4 ON T3.dept_code  =  T4.dept_code GROUP BY T3.dept_code ORDER BY count(*) DESC LIMIT 1
Database: college_1
Question: What is the name of the department with the most students enrolled?
Paraphrased question: What is the name of the division with the most students registered?
SQL: SELECT T4.dept_name FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN course AS T3 ON T1.crs_code  =  T3.crs_code JOIN department AS T4 ON T3.dept_code  =  T4.dept_code GROUP BY T3.dept_code ORDER BY count(*) DESC LIMIT 1
Database: college_1
Question: list names of all departments ordered by their names.
Paraphrased question: list names of all divisions ordered by their names.
SQL: SELECT dept_name FROM department ORDER BY dept_name
Database: college_1
Question: What are the names of all departments in alphabetical order?
Paraphrased question: What are the names of all divisions in alphabetical order?
SQL: SELECT dept_name FROM department ORDER BY dept_name
Database: college_1
Question: List the codes of all courses that take place in room KLR209.
Paraphrased question: List the codes of all courses that take place in room KLR209.
SQL: SELECT class_code FROM CLASS WHERE class_room  =  'KLR209'
Database: college_1
Question: What are the codes of all the courses that are located in room KLR209?
Paraphrased question: What are the codes of all the courses that are located in room KLR209?
SQL: SELECT class_code FROM CLASS WHERE class_room  =  'KLR209'
Database: college_1
Question: List the first name of all employees with job code PROF ordered by their date of birth.
Paraphrased question: List the forename of all staff with job code PROF ordered by their date of birth.
SQL: SELECT emp_fname FROM employee WHERE emp_jobcode  =  'PROF' ORDER BY emp_dob
Database: college_1
Question: What are the first names of all employees that are professors ordered by date of birth?
Paraphrased question: What are the forename of all staff that are professors ordered by date of birth?
SQL: SELECT emp_fname FROM employee WHERE emp_jobcode  =  'PROF' ORDER BY emp_dob
Database: college_1
Question: Find the first names and offices of all professors sorted by alphabetical order of their first name.
Paraphrased question: Find the forename and offices of all professors sorted by alphabetical order of their forename.
SQL: SELECT T2.emp_fname ,  T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num  =  T2.emp_num ORDER BY T2.emp_fname
Database: college_1
Question: What are the first names and office locations for all professors sorted alphabetically by first name?
Paraphrased question: What are the forename and office locations for all professors sorted alphabetically by forename?
SQL: SELECT T2.emp_fname ,  T1.prof_office FROM professor AS T1 JOIN employee AS T2 ON T1.emp_num  =  T2.emp_num ORDER BY T2.emp_fname
Database: college_1
Question: What is the first and last name of the oldest employee?
Paraphrased question: What is the full name of the oldest employee?
SQL: SELECT emp_fname ,  emp_lname FROM employee ORDER BY emp_dob LIMIT 1
Database: college_1
Question: What are the first and last names of the employee with the earliest date of birth?
Paraphrased question: What are the forename and surname of the staff with the earliest date of birth?
SQL: SELECT emp_fname ,  emp_lname FROM employee ORDER BY emp_dob LIMIT 1
Database: college_1
Question: What is the first, last name, gpa of the youngest one among students whose GPA is above 3?
Paraphrased question: What is the forename, surname, gpa of the youngest one among students whose GPA is above 3?
SQL: SELECT stu_fname ,  stu_lname ,  stu_gpa FROM student WHERE stu_gpa  >  3 ORDER BY stu_dob DESC LIMIT 1
Database: college_1
Question: What is the first and last name of the youngest student with a GPA above 3, and what is their GPA?
Paraphrased question: What is the forename and family name of the youngest student with a GPA above 3, and what is their GPA?
SQL: SELECT stu_fname ,  stu_lname ,  stu_gpa FROM student WHERE stu_gpa  >  3 ORDER BY stu_dob DESC LIMIT 1
Database: college_1
Question: What is the first name of students who got grade C in any class?
Paraphrased question: What is the forename of students who got grade C in any class?
SQL: SELECT DISTINCT stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num WHERE enroll_grade  =  'C'
Database: college_1
Question: What are the first names of all students who got a grade C in a class?
Paraphrased question: What are the forename of all students who got a grade C in a class?
SQL: SELECT DISTINCT stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num WHERE enroll_grade  =  'C'
Database: college_1
Question: What is the name of department where has the smallest number of professors?
Paraphrased question: What is the name of division where has the smallest number of professors?
SQL: SELECT T2.dept_name FROM professor AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) LIMIT 1
Database: college_1
Question: What is the name of the department with the fewest professors?
Paraphrased question: What is the name of the division with the fewest professors?
SQL: SELECT T2.dept_name FROM professor AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) LIMIT 1
Database: college_1
Question: What is the name of department where has the largest number of professors with a Ph.D. degree?
Paraphrased question: What is the name of division where has the largest number of professors with a Ph.D. degree?
SQL: SELECT T2.dept_name ,  T1.dept_code FROM professor AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code WHERE T1.prof_high_degree  =  'Ph.D.' GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 1
Database: college_1
Question: Which department has the most professors with a Ph.D.?
Paraphrased question: Which division has the most professors with a Ph.D.?
SQL: SELECT T2.dept_name ,  T1.dept_code FROM professor AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code WHERE T1.prof_high_degree  =  'Ph.D.' GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 1
Database: college_1
Question: What are the first names of the professors who do not teach a class.
Paraphrased question: What are the forename of the professors who do not teach a class.
SQL: SELECT emp_fname FROM employee WHERE emp_jobcode  =  'PROF' EXCEPT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num  =  T2.prof_num
Database: college_1
Question: What are the first names of all professors not teaching any classes?
Paraphrased question: What are the forename of all professors not teaching any classes?
SQL: SELECT emp_fname FROM employee WHERE emp_jobcode  =  'PROF' EXCEPT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num  =  T2.prof_num
Database: college_1
Question: What is the first names of the professors from the history department who do not teach a class.
Paraphrased question: What is the forename of the professors from the history department who do not teach a class.
SQL: SELECT T1.emp_fname FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num  =  T2.emp_num JOIN department AS T3 ON T2.dept_code  =  T3.dept_code WHERE T3.dept_name  =  'History' EXCEPT SELECT T4.emp_fname FROM employee AS T4 JOIN CLASS AS T5 ON T4.emp_num  =  T5.prof_num
Database: college_1
Question: What are the first names of all history professors who do not teach?
Paraphrased question: What are the forename of all history professors who do not teach?
SQL: SELECT T1.emp_fname FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num  =  T2.emp_num JOIN department AS T3 ON T2.dept_code  =  T3.dept_code WHERE T3.dept_name  =  'History' EXCEPT SELECT T4.emp_fname FROM employee AS T4 JOIN CLASS AS T5 ON T4.emp_num  =  T5.prof_num
Database: college_1
Question: What is the last name and office of the professor from the history department?
Paraphrased question: What is the surname and office of the professor from the history department?
SQL: SELECT T1.emp_lname ,  T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num  =  T2.emp_num JOIN department AS T3 ON T2.dept_code  =  T3.dept_code WHERE T3.dept_name  =  'History'
Database: college_1
Question: What are the last name and office of all history professors?
Paraphrased question: What are the family name and office of all history professors?
SQL: SELECT T1.emp_lname ,  T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num  =  T2.emp_num JOIN department AS T3 ON T2.dept_code  =  T3.dept_code WHERE T3.dept_name  =  'History'
Database: college_1
Question: What is department name and office for the professor whose last name is Heffington?
Paraphrased question: What is division name and office for the professor whose surname is Heffington?
SQL: SELECT T3.dept_name  ,  T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num  =  T2.emp_num JOIN department AS T3 ON T2.dept_code  =  T3.dept_code WHERE T1.emp_lname  =  'Heffington'
Database: college_1
Question: What is the name of the department and office location for the professor with the last name of Heffington?
Paraphrased question: What is the name of the division and office location for the professor with the last name of Heffington?
SQL: SELECT T3.dept_name  ,  T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num  =  T2.emp_num JOIN department AS T3 ON T2.dept_code  =  T3.dept_code WHERE T1.emp_lname  =  'Heffington'
Database: college_1
Question: Find the last name and hire date of the professor who is in office DRE 102.
Paraphrased question: Find the family name and hire day of the professor who is in office DRE 102.
SQL: SELECT T1.emp_lname ,  T1.emp_hiredate FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num  =  T2.emp_num WHERE T2.prof_office  =  'DRE 102'
Database: college_1
Question: What is the last name of the professor whose office is located in DRE 102, and when were they hired?
Paraphrased question: What is the surname of the professor whose office is located in DRE 102, and when were they hired?
SQL: SELECT T1.emp_lname ,  T1.emp_hiredate FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num  =  T2.emp_num WHERE T2.prof_office  =  'DRE 102'
Database: college_1
Question: What is the code of the course which the student whose last name is Smithson took?
Paraphrased question: What is the code of the course which the student whose family name is Smithson took?
SQL: SELECT T1.crs_code FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN student AS T3 ON T3.stu_num  =  T2.stu_num WHERE T3.stu_lname  =  'Smithson'
Database: college_1
Question: What are the course codes for every class that the student with the last name Smithson took?
Paraphrased question: What are the course codes for every class that the student with the surname Smithson took?
SQL: SELECT T1.crs_code FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN student AS T3 ON T3.stu_num  =  T2.stu_num WHERE T3.stu_lname  =  'Smithson'
Database: college_1
Question: What are the description and credit of the course which the student whose last name is Smithson took?
Paraphrased question: What are the describing content and credit of the course which the student whose last name is Smithson took?
SQL: SELECT T4.crs_description ,  T4.crs_credit FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN student AS T3 ON T3.stu_num  =  T2.stu_num JOIN course AS T4 ON T4.crs_code  =  T1.crs_code WHERE T3.stu_lname  =  'Smithson'
Database: college_1
Question: How many credits is the course that the student with the last name Smithson took, and what is its description?
Paraphrased question: How many credits is the course that the student with the last name Smithson took, and what is its describing content?
SQL: SELECT T4.crs_description ,  T4.crs_credit FROM CLASS AS T1 JOIN enroll AS T2 ON T1.class_code  =  T2.class_code JOIN student AS T3 ON T3.stu_num  =  T2.stu_num JOIN course AS T4 ON T4.crs_code  =  T1.crs_code WHERE T3.stu_lname  =  'Smithson'
Database: college_1
Question: How many professors who has a either Ph.D. or MA degree?
Paraphrased question: How many professors who has a either Ph.D. or MA degree?
SQL: SELECT count(*) FROM professor WHERE prof_high_degree  =  'Ph.D.' OR prof_high_degree  =  'MA'
Database: college_1
Question: How many professors attained either Ph.D. or Masters degrees?
Paraphrased question: How many professors attained either Ph.D. or Masters degrees?
SQL: SELECT count(*) FROM professor WHERE prof_high_degree  =  'Ph.D.' OR prof_high_degree  =  'MA'
Database: college_1
Question: How many professors who are from either Accounting or Biology department?
Paraphrased question: How many professors who are from either Accounting or Biology department?
SQL: SELECT count(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code WHERE T2.dept_name  =  'Accounting' OR T2.dept_name  =  'Biology'
Database: college_1
Question: What is the number of professors who are in the Accounting or Biology departments?
Paraphrased question: What is the number of professors who are in the Accounting or Biology departments?
SQL: SELECT count(*) FROM professor AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code WHERE T2.dept_name  =  'Accounting' OR T2.dept_name  =  'Biology'
Database: college_1
Question: Find the first name of the professor who is teaching two courses with code CIS-220 and QM-261.
Paraphrased question: Find the forename of the professor who is teaching two courses with code CIS-220 and QM-261.
SQL: SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num  =  T2.prof_num WHERE crs_code  =  'CIS-220' INTERSECT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num  =  T2.prof_num WHERE crs_code  =  'QM-261'
Database: college_1
Question: What is the first name of the professor who is teaching CIS-220 and QM-261?
Paraphrased question: What is the forename of the professor who is teaching CIS-220 and QM-261?
SQL: SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num  =  T2.prof_num WHERE crs_code  =  'CIS-220' INTERSECT SELECT T1.emp_fname FROM employee AS T1 JOIN CLASS AS T2 ON T1.emp_num  =  T2.prof_num WHERE crs_code  =  'QM-261'
Database: college_1
Question: Find the first name of student who is taking classes from accounting and Computer Info. Systems departments
Paraphrased question: Find the forename of student who is taking classes from accounting and Computer Info. Systems departments
SQL: SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num JOIN CLASS AS T3 ON T2.class_code  =  T3.class_code JOIN course AS T4 ON T3.crs_code  =  T4.crs_code JOIN department AS T5 ON T5.dept_code  =  T4.dept_code WHERE T5.dept_name  =  'Accounting' INTERSECT SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num JOIN CLASS AS T3 ON T2.class_code  =  T3.class_code JOIN course AS T4 ON T3.crs_code  =  T4.crs_code JOIN department AS T5 ON T5.dept_code  =  T4.dept_code WHERE T5.dept_name  =  'Computer Info. Systems'
Database: college_1
Question: What are the first names of all students taking accoutning and Computer Information Systems classes?
Paraphrased question: What are the forename of all students taking accoutning and Computer Information Systems classes?
SQL: SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num JOIN CLASS AS T3 ON T2.class_code  =  T3.class_code JOIN course AS T4 ON T3.crs_code  =  T4.crs_code JOIN department AS T5 ON T5.dept_code  =  T4.dept_code WHERE T5.dept_name  =  'Accounting' INTERSECT SELECT T1.stu_fname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num JOIN CLASS AS T3 ON T2.class_code  =  T3.class_code JOIN course AS T4 ON T3.crs_code  =  T4.crs_code JOIN department AS T5 ON T5.dept_code  =  T4.dept_code WHERE T5.dept_name  =  'Computer Info. Systems'
Database: college_1
Question: What is the average gpa of the students enrolled in the course with code ACCT-211?
Paraphrased question: What is the average gpa of the students registered in the course with code ACCT-211?
SQL: SELECT avg(T2.stu_gpa) FROM enroll AS T1 JOIN student AS T2 ON T1.stu_num  =  T2.stu_num JOIN CLASS AS T3 ON T1.class_code  =  T3.class_code WHERE T3.crs_code  =  'ACCT-211'
Database: college_1
Question: What is the average GPA of students taking ACCT-211?
Paraphrased question: What is the average GPA of students taking ACCT-211?
SQL: SELECT avg(T2.stu_gpa) FROM enroll AS T1 JOIN student AS T2 ON T1.stu_num  =  T2.stu_num JOIN CLASS AS T3 ON T1.class_code  =  T3.class_code WHERE T3.crs_code  =  'ACCT-211'
Database: college_1
Question: What is the first name, gpa and phone number of the top 5 students with highest gpa?
Paraphrased question: What is the forename, gpa and telephone number of the top 5 students with highest gpa?
SQL: SELECT stu_gpa ,  stu_phone ,  stu_fname FROM student ORDER BY stu_gpa DESC LIMIT 5
Database: college_1
Question: What is the first name, GPA, and phone number of the students with the top 5 GPAs?
Paraphrased question: What is the forename, GPA, and telephone number of the students with the top 5 GPAs?
SQL: SELECT stu_gpa ,  stu_phone ,  stu_fname FROM student ORDER BY stu_gpa DESC LIMIT 5
Database: college_1
Question: What is the department name of the students with lowest gpa belongs to?
Paraphrased question: What is the division name of the students with lowest gpa belongs to?
SQL: SELECT T2.dept_name FROM student AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code ORDER BY stu_gpa LIMIT 1
Database: college_1
Question: What is the name of the department with the student that has the lowest GPA?
Paraphrased question: What is the name of the division with the student that has the lowest GPA?
SQL: SELECT T2.dept_name FROM student AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code ORDER BY stu_gpa LIMIT 1
Database: college_1
Question: Find the first name and gpa of the students whose gpa is lower than the average gpa of all students.
Paraphrased question: Find the forename and gpa of the students whose gpa is lower than the average gpa of all students.
SQL: SELECT stu_fname ,  stu_gpa FROM student WHERE stu_gpa  <  (SELECT avg(stu_gpa) FROM student)
Database: college_1
Question: What is the first name and GPA of every student that has a GPA lower than average?
Paraphrased question: What is the forename and GPA of every student that has a GPA lower than average?
SQL: SELECT stu_fname ,  stu_gpa FROM student WHERE stu_gpa  <  (SELECT avg(stu_gpa) FROM student)
Database: college_1
Question: Find the name and address of the department that has the highest number of students.
Paraphrased question: Find the name and location of the department that has the highest number of students.
SQL: SELECT T2.dept_name ,  T2.dept_address FROM student AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 1
Database: college_1
Question: What is the name and address of the department with the most students?
Paraphrased question: What is the name and location of the department with the most students?
SQL: SELECT T2.dept_name ,  T2.dept_address FROM student AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 1
Database: college_1
Question: Find the name, address, number of students in the departments that have the top 3 highest number of students.
Paraphrased question: Find the name, location, number of students in the departments that have the top 3 highest number of students.
SQL: SELECT T2.dept_name ,  T2.dept_address ,  count(*) FROM student AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 3
Database: college_1
Question: What is the name, address, and number of students in the departments that have the 3 most students?
Paraphrased question: What is the name, location, and number of students in the departments that have the 3 most students?
SQL: SELECT T2.dept_name ,  T2.dept_address ,  count(*) FROM student AS T1 JOIN department AS T2 ON T1.dept_code  =  T2.dept_code GROUP BY T1.dept_code ORDER BY count(*) DESC LIMIT 3
Database: college_1
Question: Find the first name and office of the professor who is in the history department and has a Ph.D. degree.
Paraphrased question: Find the forename and office of the professor who is in the history department and has a Ph.D. degree.
SQL: SELECT T1.emp_fname ,  T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num  =  T2.emp_num JOIN department AS T3 ON T3.dept_code  =  T2.dept_code WHERE T3.dept_name  =  'History' AND T2.prof_high_degree  =  'Ph.D.'
Database: college_1
Question: What are the first names and office of the professors who are in the history department and have a Ph.D?
Paraphrased question: What are the forename and office of the professors who are in the history department and have a Ph.D?
SQL: SELECT T1.emp_fname ,  T2.prof_office FROM employee AS T1 JOIN professor AS T2 ON T1.emp_num  =  T2.emp_num JOIN department AS T3 ON T3.dept_code  =  T2.dept_code WHERE T3.dept_name  =  'History' AND T2.prof_high_degree  =  'Ph.D.'
Database: college_1
Question: Find the first names of all instructors who have taught some course and the course code.
Paraphrased question: Find the forename of all instructors who have taught some course and the course code.
SQL: SELECT T2.emp_fname ,  T1.crs_code FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num
Database: college_1
Question: What are the first names of all teachers who have taught a course and the corresponding course codes?
Paraphrased question: What are the forename of all teachers who have taught a course and the corresponding course codes?
SQL: SELECT T2.emp_fname ,  T1.crs_code FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num
Database: college_1
Question: Find the first names of all instructors who have taught some course and the course description.
Paraphrased question: Find the forename of all instructors who have taught some course and the course describing content.
SQL: SELECT T2.emp_fname ,  T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN course AS T3 ON T1.crs_code  =  T3.crs_code
Database: college_1
Question: What are the first names of all teachers who have taught a course and the corresponding descriptions?
Paraphrased question: What are the forename of all teachers who have taught a course and the corresponding descriptions?
SQL: SELECT T2.emp_fname ,  T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN course AS T3 ON T1.crs_code  =  T3.crs_code
Database: college_1
Question: Find the first names and offices of all instructors who have taught some course and also find the course description.
Paraphrased question: Find the forename and offices of all instructors who have taught some course and also find the course describing content.
SQL: SELECT T2.emp_fname ,  T4.prof_office ,  T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN course AS T3 ON T1.crs_code  =  T3.crs_code JOIN professor AS T4 ON T2.emp_num  =  T4.emp_num
Database: college_1
Question: What are the first names, office locations of all lecturers who have taught some course?
Paraphrased question: What are the forename, office locations of all lecturers who have taught some course?
SQL: SELECT T2.emp_fname ,  T4.prof_office ,  T3.crs_description FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN course AS T3 ON T1.crs_code  =  T3.crs_code JOIN professor AS T4 ON T2.emp_num  =  T4.emp_num
Database: college_1
Question: Find the first names and offices of all instructors who have taught some course and the course description and the department name.
Paraphrased question: Find the forename and offices of all instructors who have taught some course and the course description and the department name.
SQL: SELECT T2.emp_fname ,  T4.prof_office ,  T3.crs_description ,  T5.dept_name FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN course AS T3 ON T1.crs_code  =  T3.crs_code JOIN professor AS T4 ON T2.emp_num  =  T4.emp_num JOIN department AS T5 ON T4.dept_code  =  T5.dept_code
Database: college_1
Question: What are the first names, office locations, and departments of all instructors, and also what are the descriptions of the courses they teach?
Paraphrased question: What are the forename, office locations, and departments of all instructors, and also what are the descriptions of the courses they teach?
SQL: SELECT T2.emp_fname ,  T4.prof_office ,  T3.crs_description ,  T5.dept_name FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN course AS T3 ON T1.crs_code  =  T3.crs_code JOIN professor AS T4 ON T2.emp_num  =  T4.emp_num JOIN department AS T5 ON T4.dept_code  =  T5.dept_code
Database: college_1
Question: Find names of all students who took some course and the course description.
Paraphrased question: Find names of all students who took some course and the course description.
SQL: SELECT T1.stu_fname ,  T1.stu_lname ,  T4.crs_description FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num JOIN CLASS AS T3 ON T2.class_code  =  T3.class_code JOIN course AS T4 ON T3.crs_code  =  T4.crs_code
Database: college_1
Question: What are the names of all students who took a class and the corresponding course descriptions?
Paraphrased question: What are the names of all students who took a class and the corresponding course descriptions?
SQL: SELECT T1.stu_fname ,  T1.stu_lname ,  T4.crs_description FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num JOIN CLASS AS T3 ON T2.class_code  =  T3.class_code JOIN course AS T4 ON T3.crs_code  =  T4.crs_code
Database: college_1
Question: Find names of all students who took some course and got A or C.
Paraphrased question: Find names of all students who took some course and got A or C.
SQL: SELECT T1.stu_fname ,  T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num WHERE T2.enroll_grade  =  'C' OR T2.enroll_grade  =  'A'
Database: college_1
Question: What are the names of all students taking a course who received an A or C?
Paraphrased question: What are the names of all students taking a course who received an A or C?
SQL: SELECT T1.stu_fname ,  T1.stu_lname FROM student AS T1 JOIN enroll AS T2 ON T1.stu_num  =  T2.stu_num WHERE T2.enroll_grade  =  'C' OR T2.enroll_grade  =  'A'
Database: college_1
Question: Find the first names of all professors in the Accounting department who is teaching some course and the class room.
Paraphrased question: Find the forename of all professors in the Accounting department who is teaching some course and the class room.
SQL: SELECT T2.emp_fname ,  T1.class_room FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN professor AS T3 ON T2.emp_num  =  T3.emp_num JOIN department AS T4 ON T4.dept_code  =  T3.dept_code WHERE T4.dept_name  =  'Accounting'
Database: college_1
Question: What are the first names of all Accounting professors who teach and what are the classrooms of the courses they teach?
Paraphrased question: What are the forename of all Accounting professors who teach and what are the classrooms of the courses they teach?
SQL: SELECT T2.emp_fname ,  T1.class_room FROM CLASS AS T1 JOIN employee AS T2 ON T1.prof_num  =  T2.emp_num JOIN professor AS T3 ON T2.emp_num  =  T3.emp_num JOIN department AS T4 ON T4.dept_code  =  T3.dept_code WHERE T4.dept_name  =  'Accounting'