interaction_utterance
sequencelengths
0
6
interaction_query
sequencelengths
0
6
final_utterance
stringlengths
19
224
final_query
stringlengths
22
577
db_id
stringclasses
140 values
[ "What are the id for the employee whose first name is Payam?", "Which employees' manager is him?", "What are their ids and salaries?" ]
[ "SELECT employee_id FROM employees WHERE first_name = 'Payam'", "SELECT * FROM employees WHERE manager_id = (SELECT employee_id FROM employees WHERE first_name = 'Payam' )", "SELECT employee_id , salary FROM employees WHERE manager_id = (SELECT employee_id FROM employees WHERE first_name = 'Payam' )" ]
What are the employee ids of employees who report to Payam, and what are their salaries?
SELECT employee_id , salary FROM employees WHERE manager_id = (SELECT employee_id FROM employees WHERE first_name = 'Payam' )
hr_1
[ "Find the name of all departments.", "What about those that have at least one employee." ]
[ "SELECT DISTINCT department_name FROM departments", "SELECT DISTINCT department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id" ]
What are the names of departments that have at least one employee.
SELECT DISTINCT T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id
hr_1
[ "What are all the manager ids of the different departments?", "What is all the employee information regarding these managers?" ]
[ "SELECT manager_id FROM departments", "SELECT DISTINCT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T1.employee_id = T2.manager_id" ]
What is all the information regarding employees who are managers?
SELECT DISTINCT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T1.employee_id = T2.manager_id
hr_1
[ "What is all the information about all the departments?", "Of these, what information pertains to the Marketing department?" ]
[ "SELECT * FROM departments", "SELECT * FROM departments WHERE department_name = 'Marketing'" ]
What is all the information about the Marketing department?
SELECT * FROM departments WHERE department_name = 'Marketing'
hr_1
[ "What are the ids of employees who have job history available?", "Which of them have held two or more jobs?" ]
[ "SELECT employee_id FROM job_history", "SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*) >= 2" ]
What are the employee ids for those who had two or more jobs.
SELECT employee_id FROM job_history GROUP BY employee_id HAVING COUNT(*) >= 2
hr_1
[ "What are the manager ids for managers who are in charge of 4 or more employees?", "What are the distinct department ids for the departments they belong to?" ]
[ "SELECT manager_id FROM employees GROUP BY manager_id HAVING COUNT(employee_id) >= 4", "SELECT DISTINCT department_id FROM employees GROUP BY department_id , manager_id HAVING COUNT(employee_id) >= 4" ]
Give the distinct department ids of departments in which a manager is in charge of 4 or more employees?
SELECT DISTINCT department_id FROM employees GROUP BY department_id , manager_id HAVING COUNT(employee_id) >= 4
hr_1
[ "What is the average salary for each job?", "What are the job ids for jobs that average more than 8000?" ]
[ "SELECT avg(salary) FROM employees GROUP BY job_id", "SELECT job_id FROM employees GROUP BY job_id HAVING AVG(salary) > 8000" ]
What are the job ids corresponding to jobs with average salary above 8000?
SELECT job_id FROM employees GROUP BY job_id HAVING AVG(salary) > 8000
hr_1
[ "What are the employee ids for employees in department 80?", "Also, what are their job titles?" ]
[ "SELECT employee_id FROM employees WHERE department_id = 80", "SELECT T1.employee_id , T2.job_title FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T1.department_id = 80" ]
what are the employee ids and job titles for employees in department 80?
SELECT T1.employee_id , T2.job_title FROM employees AS T1 JOIN jobs AS T2 ON T1.job_id = T2.job_id WHERE T1.department_id = 80
hr_1
[ "Who are the employees working in the Finance department?", "What are their first names and job ids?" ]
[ "SELECT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T2.department_name = 'Finance'", "SELECT T1.first_name , T1.job_id FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T2.department_name = 'Finance'" ]
Give the first name and job id for all employees in the Finance department.
SELECT T1.first_name , T1.job_id FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id WHERE T2.department_name = 'Finance'
hr_1
[ "What is the lowest salary across all employees?", "Which employees make more than that?", "Of those, which make less than 2500?" ]
[ "SELECT MIN(salary) FROM employees", "SELECT * FROM employees WHERE salary > (SELECT MIN(salary) FROM employees)", "SELECT * FROM employees WHERE salary BETWEEN (SELECT MIN(salary) FROM employees) AND 2500" ]
What is all the information regarding employees with salaries above the minimum and under 2500?
SELECT * FROM employees WHERE salary BETWEEN (SELECT MIN(salary) FROM employees) AND 2500
hr_1
[ "What are the department ids with managers who have ids between 100 and 200?", "What is all the information about employees who do not work in those departments?" ]
[ "SELECT department_id FROM departments WHERE manager_id BETWEEN 100 AND 200", "SELECT * FROM employees WHERE department_id NOT IN (SELECT department_id FROM departments WHERE manager_id BETWEEN 100 AND 200)" ]
What are the ids for employees who do not work in departments with managers that have ids between 100 and 200?
SELECT * FROM employees WHERE department_id NOT IN (SELECT department_id FROM departments WHERE manager_id BETWEEN 100 AND 200)
hr_1
[ "What are the department ids for departments that have someone with the first name Clara?", "What is all the information about employees in those departments?", "What are the full names and hire dates of those employees?" ]
[ "SELECT department_id FROM employees WHERE first_name = \"Clara\"", "SELECT * FROM employees WHERE department_id = (SELECT department_id FROM employees WHERE first_name = \"Clara\")", "SELECT first_name , last_name , hire_date FROM employees WHERE department_id = (SELECT department_id FROM employees WHERE first_name = \"Clara\")" ]
What are the full names and hire dates for employees in the same department as someone with the first name Clara?
SELECT first_name , last_name , hire_date FROM employees WHERE department_id = (SELECT department_id FROM employees WHERE first_name = "Clara")
hr_1
[ "What are the department ids for departments that have someone with the first name Clara?", "What is all the information about employees in those departments?", "What are the full names and hire dates of those employees?", "Of those, who does not have the first name Clara?" ]
[ "SELECT department_id FROM employees WHERE first_name = \"Clara\"", "SELECT * FROM employees WHERE department_id = ( SELECT department_id FROM employees WHERE first_name = \"Clara\")", "SELECT first_name , last_name , hire_date FROM employees WHERE department_id = ( SELECT department_id FROM employees WHERE first_name = \"Clara\")", "SELECT first_name , last_name , hire_date FROM employees WHERE department_id = ( SELECT department_id FROM employees WHERE first_name = \"Clara\") AND first_name ! = \"Clara\"" ]
What are the full names and hire dates for employees in the same department as someone with the first name Clara, not including Clara?
SELECT first_name , last_name , hire_date FROM employees WHERE department_id = ( SELECT department_id FROM employees WHERE first_name = "Clara") AND first_name ! = "Clara"
hr_1
[ "What are the department ids for departments with employees who have the letter T in their first name?", "Who are the employees in those departments?", "What are their ids and full names?" ]
[ "SELECT department_id FROM employees WHERE first_name LIKE '%T%'", "SELECT * FROM employees WHERE department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%T%' )", "SELECT employee_id , first_name , last_name FROM employees WHERE department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%T%' )" ]
What are the ids and full names for employees who work in a department that has someone with a first name that contains the letter T?
SELECT employee_id , first_name , last_name FROM employees WHERE department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%T%' )
hr_1
[ "What is the average salary across all employees?", "Which employees make more than that?", "Of those, which work in departments with employees who have the letter J in their first name?", "What are their ids, full names and salaries?" ]
[ "SELECT AVG (salary) FROM employees", "SELECT * FROM employees WHERE salary > ( SELECT AVG (salary) FROM employees )", "SELECT * FROM employees WHERE salary > ( SELECT AVG (salary) FROM employees ) AND department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%J%')", "SELECT employee_id , first_name , last_name , salary FROM employees WHERE salary > ( SELECT AVG (salary) FROM employees ) AND department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%J%')" ]
What are the ids, full names, and salaries for employees making more than average and who work in a department with employees who have the letter J in their first name?
SELECT employee_id , first_name , last_name , salary FROM employees WHERE salary > ( SELECT AVG (salary) FROM employees ) AND department_id IN ( SELECT department_id FROM employees WHERE first_name LIKE '%J%')
hr_1
[ "What is the lowest salary for someone with the title MK_MAN?", "Which employees make less than that?", "What are their employee ids and job ids?" ]
[ "SELECT min(salary) FROM employees WHERE job_id = 'MK_MAN'", "SELECT * FROM employees WHERE salary < ( SELECT min(salary) FROM employees WHERE job_id = 'MK_MAN' )", "SELECT employee_id , job_id FROM employees WHERE salary < ( SELECT min(salary) FROM employees WHERE job_id = 'MK_MAN' )" ]
What are the employee ids and job ids for employees who make less than the lowest earning employee with title MK_MAN?
SELECT employee_id , job_id FROM employees WHERE salary < ( SELECT min(salary) FROM employees WHERE job_id = 'MK_MAN' )
hr_1
[ "What is the highest salary for someone with the title PU_MAN?", "Which employees make more than that?", "What are their employee ids, full names, and job ids?" ]
[ "SELECT max(salary) FROM employees WHERE job_id = 'PU_MAN'", "SELECT * FROM employees WHERE salary > ( SELECT max(salary) FROM employees WHERE job_id = 'PU_MAN' )", "SELECT employee_id , first_name , last_name , job_id FROM employees WHERE salary > ( SELECT max(salary) FROM employees WHERE job_id = 'PU_MAN' )" ]
What are the employee ids, full names, and job ids for employees who make more than the highest earning employee with title PU_MAN?
SELECT employee_id , first_name , last_name , job_id FROM employees WHERE salary > ( SELECT max(salary) FROM employees WHERE job_id = 'PU_MAN' )
hr_1
[ "What are the department ids for departments which have more than 2 employees?", "What is the sum of the salaries within each of those departments?" ]
[ "SELECT department_id FROM employees GROUP BY department_id HAVING count(*) >= 2", "SELECT department_id , SUM(salary) FROM employees GROUP BY department_id HAVING count(*) >= 2" ]
What are total salaries and department id for each department that has more than 2 employees?
SELECT department_id , SUM(salary) FROM employees GROUP BY department_id HAVING count(*) >= 2
hr_1
[ "What are all the employee ids for employees who have had a job in the past?", "What is all the information for employees who are not a part of those?" ]
[ "SELECT employee_id FROM job_history GROUP BY employee_id", "SELECT * FROM employees WHERE employee_id NOT IN (SELECT employee_id FROM job_history)" ]
What is all the information about employees who have never had a job in the past?
SELECT * FROM employees WHERE employee_id NOT IN (SELECT employee_id FROM job_history)
hr_1
[ "What are the first and last names for each employee?", "Also, what are their department names?", "Also, what are their city and state provinces?" ]
[ "SELECT first_name , last_name FROM employees", "SELECT T1.first_name , T1.last_name , T2.department_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id", "SELECT T1.first_name , T1.last_name , T2.department_name , T3.city , T3.state_province FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id" ]
What are the full names, departments, cities, and state provinces for each employee?
SELECT T1.first_name , T1.last_name , T2.department_name , T3.city , T3.state_province FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id
hr_1
[ "What are the full names of each employee?", "Also, what cities are their departments in?", "Of these, which have the letter Z in their first name?" ]
[ "SELECT first_name , last_name FROM employees", "SELECT T1.first_name , T1.last_name , T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id", "SELECT T1.first_name , T1.last_name , T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T1.first_name LIKE '%z%'" ]
What are the full names and cities of employees who have the letter Z in their first names?
SELECT T1.first_name , T1.last_name , T3.city FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T1.first_name LIKE '%z%'
hr_1
[ "What are the names of each department?", "Also, in what city and state province are they in?" ]
[ "SELECT department_name FROM departments", "SELECT T1.department_name , T2.city , T2.state_province FROM departments AS T1 JOIN locations AS T2 ON T2.location_id = T1.location_id" ]
What are the department names, cities, and state provinces for each department?
SELECT T1.department_name , T2.city , T2.state_province FROM departments AS T1 JOIN locations AS T2 ON T2.location_id = T1.location_id
hr_1
[ "What are the full names and ids for all employees?", "Also, what are the names of the countries that they work in?" ]
[ "SELECT first_name , last_name , employee_id FROM employees", "SELECT first_name , last_name , employee_id , country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id" ]
What the full names, ids of each employee and the name of the country they are in?
SELECT first_name , last_name , employee_id , country_name FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id JOIN countries AS T4 ON T3.country_id = T4.country_id
hr_1
[ "What are the different department names?", "How many employees work in each one?" ]
[ "SELECT department_name FROM departments", "SELECT department_name , COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY department_name" ]
What are the department names and how many employees work in each of them?
SELECT department_name , COUNT(*) FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id GROUP BY department_name
hr_1
[ "Who are all the employees working in the city of London?", "What are their full names and salaries?" ]
[ "SELECT * FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T3.city = 'London'", "SELECT first_name , last_name , salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T3.city = 'London'" ]
What are full names and salaries of employees working in the city of London?
SELECT first_name , last_name , salary FROM employees AS T1 JOIN departments AS T2 ON T1.department_id = T2.department_id JOIN locations AS T3 ON T2.location_id = T3.location_id WHERE T3.city = 'London'
hr_1
[ "What is all the course information?", "How many are there?" ]
[ "SELECT * FROM COURSE", "SELECT count(*) FROM COURSE" ]
Count the number of courses.
SELECT count(*) FROM COURSE
college_3
[ "What is all the information for courses with more than 2 credits?", "How many are there?" ]
[ "SELECT * FROM COURSE WHERE Credits > 2", "SELECT count(*) FROM COURSE WHERE Credits > 2" ]
Count the number of courses with more than 2 credits.
SELECT count(*) FROM COURSE WHERE Credits > 2
college_3
[]
[]
What are the names of courses with 1 credit?
SELECT CName FROM COURSE WHERE Credits = 1
college_3
[ "What are all the course names?", "Of those, which are taught on the days MTW?" ]
[ "SELECT CName FROM COURSE", "SELECT CName FROM COURSE WHERE Days = \"MTW\"" ]
What are the course names for courses taught on MTW?
SELECT CName FROM COURSE WHERE Days = "MTW"
college_3
[ "How many departments are there?", "Of those, how many are in the \"AS\" division?" ]
[ "SELECT count(*) FROM DEPARTMENT", "SELECT count(*) FROM DEPARTMENT WHERE Division = \"AS\"" ]
How many departments are in the division AS?
SELECT count(*) FROM DEPARTMENT WHERE Division = "AS"
college_3
[ "What is all the information about departments in room 268?", "What are their phones?" ]
[ "SELECT * FROM DEPARTMENT WHERE Room = 268", "SELECT DPhone FROM DEPARTMENT WHERE Room = 268" ]
Give the phones for departments in room 268.
SELECT DPhone FROM DEPARTMENT WHERE Room = 268
college_3
[ "What are the distinct student ids for students who have gotten a \"B\" grade?", "How many are there?" ]
[ "SELECT DISTINCT StuID FROM ENROLLED_IN WHERE Grade = \"B\"", "SELECT COUNT(DISTINCT StuID) FROM ENROLLED_IN WHERE Grade = \"B\"" ]
How many students have had at least one "B" grade?
SELECT COUNT(DISTINCT StuID) FROM ENROLLED_IN WHERE Grade = "B"
college_3
[ "What is the maximum gradepoint?", "Also, what is the minimum gradepoint?" ]
[ "SELECT max(gradepoint) FROM GRADECONVERSION", "SELECT max(gradepoint) , min(gradepoint) FROM GRADECONVERSION" ]
What are the maximum and minumum grade points?
SELECT max(gradepoint) , min(gradepoint) FROM GRADECONVERSION
college_3
[ "What are all the distinct student first names?", "Of those, which contain the letter \"a\"?" ]
[ "SELECT DISTINCT Fname FROM STUDENT", "SELECT DISTINCT Fname FROM STUDENT WHERE Fname LIKE '%a%'" ]
What are the first names for students who have an "a" in their first name?
SELECT DISTINCT Fname FROM STUDENT WHERE Fname LIKE '%a%'
college_3
[ "What are the full names of all the faculty?", "Of those, which have sex M?", "Of those, which are in building NEB?" ]
[ "SELECT Fname , Lname FROM FACULTY", "SELECT Fname , Lname FROM FACULTY WHERE sex = \"M\"", "SELECT Fname , Lname FROM FACULTY WHERE sex = \"M\" AND Building = \"NEB\"" ]
What are the full names of faculties with sex M and who live in building NEB?
SELECT Fname , Lname FROM FACULTY WHERE sex = "M" AND Building = "NEB"
college_3
[ "What are the rooms for all faculty with rank professor?", "Of those, which are for faculty who live in building NEB?" ]
[ "SELECT Room FROM FACULTY WHERE Rank = \"Professor\"", "SELECT Room FROM FACULTY WHERE Rank = \"Professor\" AND Building = \"NEB\"" ]
What are the rooms for members of the faculty who are professors and who live in building NEB?
SELECT Room FROM FACULTY WHERE Rank = "Professor" AND Building = "NEB"
college_3
[ "What are the names of the departments?", "Which corresponds to the one in building Mergenthaler?" ]
[ "SELECT DName FROM DEPARTMENT", "SELECT DName FROM DEPARTMENT WHERE Building = \"Mergenthaler\"" ]
What is the name of the department in the Building Mergenthaler?
SELECT DName FROM DEPARTMENT WHERE Building = "Mergenthaler"
college_3
[ "What is all the information about credits?", "Order this in ascending order." ]
[ "SELECT * FROM COURSE", "SELECT * FROM COURSE ORDER BY Credits" ]
What is all the information about courses, ordered by credits ascending?
SELECT * FROM COURSE ORDER BY Credits
college_3
[ "What are all the course names?", "Order them by credits." ]
[ "SELECT CName FROM COURSE", "SELECT CName FROM COURSE ORDER BY Credits" ]
What are the course names, ordered by credits?
SELECT CName FROM COURSE ORDER BY Credits
college_3
[ "What is all the student information, ordered by age descending?", "What are their first names?" ]
[ "SELECT * FROM STUDENT ORDER BY Age DESC", "SELECT Fname FROM STUDENT ORDER BY Age DESC" ]
What are the first names of students, ordered by age from greatest to least?
SELECT Fname FROM STUDENT ORDER BY Age DESC
college_3
[ "What are the last names of all the female students?", "Order this by age descending." ]
[ "SELECT LName FROM STUDENT WHERE Sex = \"F\"", "SELECT LName FROM STUDENT WHERE Sex = \"F\" ORDER BY Age DESC" ]
What are the last names of female students, ordered by age descending?
SELECT LName FROM STUDENT WHERE Sex = "F" ORDER BY Age DESC
college_3
[ "What are the last names of faculty in building Barton?", "Order this alphabetically." ]
[ "SELECT Lname FROM FACULTY WHERE Building = \"Barton\"", "SELECT Lname FROM FACULTY WHERE Building = \"Barton\" ORDER BY Lname" ]
What are the last names of faculty in building Barton, sorted by last name?
SELECT Lname FROM FACULTY WHERE Building = "Barton" ORDER BY Lname
college_3
[ "What are the first names of all the faculty?", "Of those, which are professors?", "Sort this in alphabetical order." ]
[ "SELECT Fname FROM FACULTY", "SELECT Fname FROM FACULTY WHERE Rank = \"Professor\"", "SELECT Fname FROM FACULTY WHERE Rank = \"Professor\" ORDER BY Fname" ]
What are the first names for all faculty professors, ordered by first name?
SELECT Fname FROM FACULTY WHERE Rank = "Professor" ORDER BY Fname
college_3
[ "What are all the department names?", "Order these descending by the number of students minoring in them.", "Which has the most?" ]
[ "SELECT DName FROM DEPARTMENT", "SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) DESC", "SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) DESC LIMIT 1" ]
What is the name of the department with the most students minoring in it?
SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) DESC LIMIT 1
college_3
[ "What are the names of departments that have students minoring in them?", "What are all the other department names?" ]
[ "SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO", "SELECT DName FROM DEPARTMENT EXCEPT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO" ]
What is the name of the department htat has no students minoring in it?
SELECT DName FROM DEPARTMENT EXCEPT SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MINOR_IN AS T2 ON T1.DNO = T2.DNO
college_3
[ "What are all the department names?", "Order them by the number of members in each.", "Which has the fewest?" ]
[ "SELECT DName FROM DEPARTMENT", "SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) ASC", "SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) ASC LIMIT 1" ]
What is the name of the department with the fewest members?
SELECT T1.DName FROM DEPARTMENT AS T1 JOIN MEMBER_OF AS T2 ON T1.DNO = T2.DNO GROUP BY T2.DNO ORDER BY count(*) ASC LIMIT 1
college_3
[ "What are the different faculty ranks?", "Order them by the number of faculty in each rank.", "Which has the fewest?" ]
[ "SELECT Rank FROM FACULTY GROUP BY Rank", "SELECT Rank FROM FACULTY GROUP BY Rank ORDER BY count(*) ASC", "SELECT Rank FROM FACULTY GROUP BY Rank ORDER BY count(*) ASC LIMIT 1" ]
What is the least common faculty rank?
SELECT Rank FROM FACULTY GROUP BY Rank ORDER BY count(*) ASC LIMIT 1
college_3
[ "What are the full names of all the faculty?", "Order them by the number of courses they teach, descending.", "Who are the top three?" ]
[ "SELECT Fname , Lname FROM FACULTY", "SELECT T2.Fname , T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC", "SELECT T2.Fname , T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 3" ]
What are the full names of the 3 instructors who teach the most courses?
SELECT T2.Fname , T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 3
college_3
[ "What is all the information about all the faculty?", "Order this by the number of courses each faculty teaches, descending.", "What is the building that the one who teachest the most lives in?" ]
[ "SELECT * FROM FACULTY", "SELECT * FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC", "SELECT T2.Building FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 1" ]
Give the building that the instructor who teaches the greatest number of courses lives in.
SELECT T2.Building FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID GROUP BY T1.Instructor ORDER BY count(*) DESC LIMIT 1
college_3
[ "What are all the course names?", "Of those, which have at least five students enrolled?" ]
[ "SELECT CName FROM COURSE", "SELECT T1.CName FROM COURSE AS T1 JOIN ENROLLED_IN AS T2 ON T1.CID = T2.CID GROUP BY T2.CID HAVING COUNT(*) >= 5" ]
Give the names of the courses with at least five enrollments.
SELECT T1.CName FROM COURSE AS T1 JOIN ENROLLED_IN AS T2 ON T1.CID = T2.CID GROUP BY T2.CID HAVING COUNT(*) >= 5
college_3
[ "What are the full names of all faculty?", "Of those, which has a course named COMPUTER LITERACY?" ]
[ "SELECT Fname , Lname FROM FACULTY", "SELECT T2.Fname , T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID WHERE T1.CName = \"COMPUTER LITERACY\"" ]
What is the full name of the instructor who has a course named COMPUTER LITERACY?
SELECT T2.Fname , T2.Lname FROM COURSE AS T1 JOIN FACULTY AS T2 ON T1.Instructor = T2.FacID WHERE T1.CName = "COMPUTER LITERACY"
college_3
[ "What is all the information about the course INTRODUCTION TO COMPUTER SCIENCE?", "What room is it held in?", "Also, what is the department name for the department that offers it?" ]
[ "SELECT * FROM COURSE WHERE CName = \"INTRODUCTION TO COMPUTER SCIENCE\"", "SELECT T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = \"INTRODUCTION TO COMPUTER SCIENCE\"", "SELECT T2.Dname , T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = \"INTRODUCTION TO COMPUTER SCIENCE\"" ]
What are the department name and room for the course INTRODUCTION TO COMPUTER SCIENCE?
SELECT T2.Dname , T2.Room FROM COURSE AS T1 JOIN DEPARTMENT AS T2 ON T1.DNO = T2.DNO WHERE T1.CName = "INTRODUCTION TO COMPUTER SCIENCE"
college_3
[ "What are the full names of all students?", "Also, what are the gradepoints for any classes they are enrolled in?" ]
[ "SELECT Fname , LName FROM STUDENT", "SELECT T3.Fname , T3.LName , T2.gradepoint FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID" ]
What are the full names and gradepoints for all enrollments?
SELECT T3.Fname , T3.LName , T2.gradepoint FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID
college_3
[ "What are the distinct first names of students?", "Of those, which have a gradepoint of at least 3.8 in one course?" ]
[ "SELECT DISTINCT Fname FROM STUDENT", "SELECT DISTINCT T3.Fname FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T2.gradepoint >= 3.8" ]
What are the distinct first names for students with a grade point of 3.8 or above in at least one course?
SELECT DISTINCT T3.Fname FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T2.gradepoint >= 3.8
college_3
[ "What are the full names of all the faculty?", "Of those, which are a part of department 520?" ]
[ "SELECT Fname , Lname FROM FACULTY", "SELECT T1.Fname , T1.Lname FROM FACULTY AS T1 JOIN MEMBER_OF AS T2 ON T1.FacID = T2.FacID WHERE T2.DNO = 520" ]
What are the full names of faculty members who are a part of department 520?
SELECT T1.Fname , T1.Lname FROM FACULTY AS T1 JOIN MEMBER_OF AS T2 ON T1.FacID = T2.FacID WHERE T2.DNO = 520
college_3
[ "What are the full names of all students?", "Of those, which are minoring in the department with number 140?" ]
[ "SELECT Fname , Lname FROM STUDENT", "SELECT T2.Fname , T2.Lname FROM MINOR_IN AS T1 JOIN STUDENT AS T2 ON T1.StuID = T2.StuID WHERE T1.DNO = 140" ]
What are the full names of students minoring in department 140?
SELECT T2.Fname , T2.Lname FROM MINOR_IN AS T1 JOIN STUDENT AS T2 ON T1.StuID = T2.StuID WHERE T1.DNO = 140
college_3
[ "What is all the information about faculty?", "Of those, which are in the computer science department?", "What are their last names?" ]
[ "SELECT * FROM FACULTY", "SELECT * FROM DEPARTMENT AS T1 JOIN FACULTY AS T2 ON T1.DNO = T3.DNO JOIN MEMBER_OF AS T3 ON T2.FacID = T3.FacID WHERE T1.DName = \"Computer Science\"", "SELECT T2.Lname FROM DEPARTMENT AS T1 JOIN FACULTY AS T2 ON T1.DNO = T3.DNO JOIN MEMBER_OF AS T3 ON T2.FacID = T3.FacID WHERE T1.DName = \"Computer Science\"" ]
What are the last names of faculty who are part of the computer science department?
SELECT T2.Lname FROM DEPARTMENT AS T1 JOIN FACULTY AS T2 ON T1.DNO = T3.DNO JOIN MEMBER_OF AS T3 ON T2.FacID = T3.FacID WHERE T1.DName = "Computer Science"
college_3
[ "What is the average gradepoint for any students enrolled in courses?", "What is this for students with last name Smith?" ]
[ "SELECT avg(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID", "SELECT avg(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.LName = \"Smith\"" ]
What is the average gradepoint for students with the last name Smith?
SELECT avg(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.LName = "Smith"
college_3
[ "What is all the information about students living in NYC?", "What are their gradepoints for the courses they are enrolled in?", "What are the maximum and minimum?" ]
[ "SELECT * FROM STUDENT WHERE city_code = \"NYC\"", "SELECT T2.gradepoint FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.city_code = \"NYC\"", "SELECT max(T2.gradepoint) , min(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.city_code = \"NYC\"" ]
Give the maximum and minimum gradepoints for students living in NYC?
SELECT max(T2.gradepoint) , min(T2.gradepoint) FROM ENROLLED_IN AS T1 JOIN GRADECONVERSION AS T2 JOIN STUDENT AS T3 ON T1.Grade = T2.lettergrade AND T1.StuID = T3.StuID WHERE T3.city_code = "NYC"
college_3
[ "What are the names of courses with 3 credits?", "What are the names of courses with 1 credit and 4 hours?", "What are the names of courses in either group?" ]
[ "SELECT CName FROM COURSE WHERE Credits = 3", "SELECT CName FROM COURSE WHERE Credits = 1 AND Hours = 4", "SELECT CName FROM COURSE WHERE Credits = 3 UNION SELECT CName FROM COURSE WHERE Credits = 1 AND Hours = 4" ]
What are the names of courses that give either 3 credits, or 1 credit and 4 hours?
SELECT CName FROM COURSE WHERE Credits = 3 UNION SELECT CName FROM COURSE WHERE Credits = 1 AND Hours = 4
college_3
[ "What are the department names for departments in division AS?", "What are department names for departments in divison EN and building NEB?", "What are the names for departments in either group?" ]
[ "SELECT DName FROM DEPARTMENT WHERE Division = \"AS\"", "SELECT DName FROM DEPARTMENT WHERE Division = \"EN\" AND Building = \"NEB\"", "SELECT DName FROM DEPARTMENT WHERE Division = \"AS\" UNION SELECT DName FROM DEPARTMENT WHERE Division = \"EN\" AND Building = \"NEB\"" ]
What are the names of departments either in division AS, or in division EN and in building NEB?
SELECT DName FROM DEPARTMENT WHERE Division = "AS" UNION SELECT DName FROM DEPARTMENT WHERE Division = "EN" AND Building = "NEB"
college_3
[ "What are the student ids for each student?", "Of those, which are not enrolled in any courses?", "What are their first names?" ]
[ "SELECT StuID FROM STUDENT", "SELECT StuID FROM STUDENT WHERE StuID NOT IN (SELECT StuID FROM ENROLLED_IN)", "SELECT Fname FROM STUDENT WHERE StuID NOT IN (SELECT StuID FROM ENROLLED_IN)" ]
What are the first names of all students that are not enrolled in courses?
SELECT Fname FROM STUDENT WHERE StuID NOT IN (SELECT StuID FROM ENROLLED_IN)
college_3
[ "What can you tell me about college?", "What are the enrollment numbers for each college?", "What is the total enrollment number for all of the colleges?" ]
[ "SELECT * FROM College", "SELECT enr FROM College", "SELECT SUM(enr) FROM College" ]
How many students are enrolled in college?
SELECT sum(enr) FROM College
soccer_2
[ "How many are enrolled for each college?", "What is the average number?" ]
[ "SELECT enr FROM College", "SELECT AVG(enr) FROM College" ]
How many students, on average, does each college have enrolled?
SELECT avg(enr) FROM College
soccer_2
[ "What is all the information on each college?", "How many different ones exist?" ]
[ "SELECT * FROM College", "SELECT COUNT(*) FROM College" ]
How many different colleges are there?
SELECT COUNT(*) FROM College
soccer_2
[ "What information do you have on players?", "Which of those refer to people who trained for more than 1000 hours?", "How many of them are there?" ]
[ "SELECT * FROM Player", "SELECT pName FROM Player WHERE HS > 1000", "SELECT count(*) FROM Player WHERE HS > 1000" ]
How many different players trained for more than 1000 hours?
SELECT count(*) FROM Player WHERE HS > 1000
soccer_2
[ "What is all the information on colleges?", "Which of those have a student population greater than 15000?", "How many of them exist?" ]
[ "SELECT * FROM College", "SELECT * FROM College WHERE enr > 15000", "SELECT COUNT(*) FROM College WHERE enr > 15000" ]
What is the number of colleges with a student population greater than 15000?
SELECT count(*) FROM College WHERE enr > 15000
soccer_2
[ "How many hours does each player train for?", "What is the average?" ]
[ "SELECT pName , HS FROM Player", "SELECT avg(HS) FROM Player" ]
How many hours do the players train on average?
SELECT avg(HS) FROM Player
soccer_2
[ "What are the names of the players?", "Which of those practice for less than 1500 hours?", "Also, list the hours worked for each of them." ]
[ "SELECT pName FROM Player", "SELECT pName FROM Player WHERE HS < 1500", "SELECT pName , HS FROM Player WHERE HS < 1500" ]
What are the names and number of hours spent training for each player who trains for less than 1500 hours?
SELECT pName , HS FROM Player WHERE HS < 1500
soccer_2
[ "What is the name of the college each student trying out from?", "What are the different college names?", "How many different ones exist?" ]
[ "SELECT cName FROM tryout", "SELECT DISTINCT cName FROM tryout", "SELECT count(DISTINCT cName) FROM tryout" ]
How many different colleges were represented at tryouts?
SELECT count(DISTINCT cName) FROM tryout
soccer_2
[ "What are the different player positions?", "How many of them exist?" ]
[ "SELECT DISTINCT pPos FROM tryout", "SELECT count(DISTINCT pPos) FROM tryout" ]
What are the different types of player positions?
SELECT count(DISTINCT pPos) FROM tryout
soccer_2
[ "What were the decisions for each player?", "Which of the players received a yes?", "How many of them exist?" ]
[ "SELECT T2.pNAME , decision FROM tryout AS T1 JOIN Player AS T2 ON T2.pID = T1.pID", "SELECT T2.pNAME FROM tryout AS T1 JOIN Player AS T2 ON T2.pID = T1.pID WHERE decision = 'yes'", "SELECT count(*) FROM tryout WHERE decision = 'yes'" ]
How many students received a yes from tryouts?
SELECT count(*) FROM tryout WHERE decision = 'yes'
soccer_2
[ "What information exists for players tried for the position of goalie?", "How many of them tried out?" ]
[ "SELECT * FROM tryout WHERE pPos = 'goalie'", "SELECT count(*) FROM tryout WHERE pPos = 'goalie'" ]
What is the number of students playing as a goalie?
SELECT count(*) FROM tryout WHERE pPos = 'goalie'
soccer_2
[ "How many hours does each player spend training?", "What is the average?", "Also, what is the maximum and minimum?" ]
[ "SELECT pNAME , HS FROM Player", "SELECT avg(HS) FROM Player", "SELECT avg(HS) , max(HS) , min(HS) FROM Player" ]
What is the average, maximum, and minimum for the number of hours spent training?
SELECT avg(HS) , max(HS) , min(HS) FROM Player
soccer_2
[ "What is the number of students enrolled in each college?", "Of those, which refer to students enrolled in places in Florida?", "What is the average number enrolled for them?" ]
[ "SELECT cName , enr FROM College", "SELECT cName , enr FROM College WHERE state = 'FL'", "SELECT avg(enr) FROM College WHERE state = 'FL'" ]
What is average number of students enrolled in Florida colleges?
SELECT avg(enr) FROM College WHERE state = 'FL'
soccer_2
[ "Give me all information about players who train between 500 and 1500 hours.", "What are their names?" ]
[ "SELECT * FROM Player WHERE HS BETWEEN 500 AND 1500", "SELECT pName FROM Player WHERE HS BETWEEN 500 AND 1500" ]
What are the names of players who train between 500 and 1500 hours?
SELECT pName FROM Player WHERE HS BETWEEN 500 AND 1500
soccer_2
[ "What information is there on players whose name contains the letter a?", "What are their names?", "What is a list of the unique names?" ]
[ "SELECT * FROM Player WHERE pName LIKE '%a%'", "SELECT pName FROM Player WHERE pName LIKE '%a%'", "SELECT DISTINCT pName FROM Player WHERE pName LIKE '%a%'" ]
Who are the players that have names containing the letter a?
SELECT DISTINCT pName FROM Player WHERE pName LIKE '%a%'
soccer_2
[ "What information you have on colleges that have more than 10000 students enrolled?", "Of those, which refer to colleges in the state of LA?", "What are these colleges' names and enrollment numbers?" ]
[ "SELECT * FROM College WHERE enr > 10000", "SELECT * FROM College WHERE enr > 10000 AND state = \"LA\"", "SELECT cName , enr FROM College WHERE enr > 10000 AND state = \"LA\"" ]
What are the names and enrollment numbers for colleges that have more than 10000 enrolled and are located in Louisiana?
SELECT cName , enr FROM College WHERE enr > 10000 AND state = "LA"
soccer_2
[ "What information do you have on the colleges?", "Sort the information by enrollment numbers." ]
[ "SELECT * FROM College", "SELECT * FROM College ORDER BY enr" ]
What information do you have on colleges sorted by increasing enrollment numbers?
SELECT * FROM College ORDER BY enr
soccer_2
[ "What are the college names?", "Which of those have more than 18000 students enrolled?", "Order them alphabetically." ]
[ "SELECT cName FROM College", "SELECT cName FROM College WHERE enr > 18000", "SELECT cName FROM College WHERE enr > 18000 ORDER BY cName" ]
What is the name of every college in alphabetical order that has more than 18000 students enrolled?
SELECT cName FROM College WHERE enr > 18000 ORDER BY cName
soccer_2
[ "What are the names of all the players?", "Which of those received a card?", "Set them in descending order of hours spent training." ]
[ "SELECT pName FROM Player", "SELECT pName FROM Player WHERE yCard = 'yes'", "SELECT pName FROM Player WHERE yCard = 'yes' ORDER BY HS DESC" ]
What are the name of the players who received a card in descending order of the hours of training?
SELECT pName FROM Player WHERE yCard = 'yes' ORDER BY HS DESC
soccer_2
[ "Order the information on tryouts by college name", "What are the names of the colleges?", "Make sure they are all unique." ]
[ "SELECT * FROM tryout ORDER BY cName", "SELECT cName FROM tryout ORDER BY cName", "SELECT DISTINCT cName FROM tryout ORDER BY cName" ]
What are the different names of the colleges involved in the tryout in alphabetical order?
SELECT DISTINCT cName FROM tryout ORDER BY cName
soccer_2
[ "What information do you have for each position?", "How many players tried out for each position?", "What was the most popular one?" ]
[ "SELECT * FROM tryout GROUP BY pPos", "SELECT pPos , count(*) FROM tryout GROUP BY pPos", "SELECT pPos FROM tryout GROUP BY pPos ORDER BY count(*) DESC LIMIT 1" ]
What was the most popular position at tryouts?
SELECT pPos FROM tryout GROUP BY pPos ORDER BY count(*) DESC LIMIT 1
soccer_2
[ "How many students participated in tryouts for each college?", "Order them by number of participants.", "Make sure it is in descending order." ]
[ "SELECT count(*) , cName FROM tryout GROUP BY cName", "SELECT count(*) , cName FROM tryout GROUP BY cName ORDER BY count(*)", "SELECT count(*) , cName FROM tryout GROUP BY cName ORDER BY count(*) DESC" ]
How many students participated in tryouts for each college by descennding count?
SELECT count(*) , cName FROM tryout GROUP BY cName ORDER BY count(*) DESC
soccer_2
[ "For each position, how much did each player practice?", "What is the minimum for each position?" ]
[ "SELECT T2.HS , T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID GROUP BY T1.pPos", "SELECT min(T2.HS) , T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID GROUP BY T1.pPos" ]
For each position, what is the minimum time students spent practicing?
SELECT min(T2.HS) , T1.pPos FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID GROUP BY T1.pPos
soccer_2
[ "What are the names of each college?", "List them in order of descending class size.", "What are the top 3?" ]
[ "SELECT cName FROM college", "SELECT cName FROM college ORDER BY enr DESC", "SELECT cName FROM college ORDER BY enr DESC LIMIT 3" ]
What are the names of the schools with the top 3 largest class sizes?
SELECT cName FROM college ORDER BY enr DESC LIMIT 3
soccer_2
[ "Which colleges have students trying out?", "What are the different state they are located in?" ]
[ "SELECT T1.cName FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName", "SELECT DISTINCT state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName" ]
What are the different states that have students trying out?
SELECT DISTINCT state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName
soccer_2
[ "What are the name of the colleges that had students participate in tryouts?", "Of those colleges, which had students that received a yes?", "What are the different states those colleges are located in?" ]
[ "SELECT T1.cName FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName", "SELECT T1.cName FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes'", "SELECT DISTINCT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes'" ]
What are the different states that had students successfully try out?
SELECT DISTINCT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.decision = 'yes'
soccer_2
[ "What are all the players names?", "Which of those players tried out and received a yes?", "Also, what colleges are they from?" ]
[ "SELECT pName FROM player", "SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'", "SELECT T1.pName , T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'" ]
What are the names of all the players who received a yes during tryouts, and also what are the names of their colleges?
SELECT T1.pName , T2.cName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'
soccer_2
[ "What are the players' names?", "Which of them tried out?", "Sort the list alphabetically." ]
[ "SELECT pName FROM player", "SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID", "SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID ORDER BY T1.pName" ]
What are the names of all students who tried out in alphabetical order?
SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID ORDER BY T1.pName
soccer_2
[ "What are the names of all players who participated in tryouts?", "Which of those received a yes?", "How many hours did each of them practice for?" ]
[ "SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID", "SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'", "SELECT T1.pName , T1.HS FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'" ]
What are the names and hours spent practicing of every student who received a yes at tryouts?
SELECT T1.pName , T1.HS FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'
soccer_2
[ "Which colleges did the students who tried out for the position of striker attend?", "What states are those colleges located in?" ]
[ "SELECT T1.cName FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'striker'", "SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'striker'" ]
What are the states of the colleges where students who tried out for the striker position attend?
SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName WHERE T2.pPos = 'striker'
soccer_2
[ "What is every player's name?", "Which of those tried out for the position of striker?", "Of those, who made the team?" ]
[ "SELECT pName FROM player", "SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.pPos = 'striker'", "SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes' AND T2.pPos = 'striker'" ]
What are the names of all students who successfully tried out for the position of striker?
SELECT T1.pName FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes' AND T2.pPos = 'striker'
soccer_2
[ "What information is there on the player named Charles?", "What college is he attending?", "What state is that college located in?" ]
[ "SELECT * FROM player WHERE pName = 'Charles'", "SELECT T1.cNAME FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName JOIN player AS T3 ON T2.pID = T3.pID WHERE T3.pName = 'Charles'", "SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName JOIN player AS T3 ON T2.pID = T3.pID WHERE T3.pName = 'Charles'" ]
In which state is the college that Charles attends?
SELECT T1.state FROM college AS T1 JOIN tryout AS T2 ON T1.cName = T2.cName JOIN player AS T3 ON T2.pID = T3.pID WHERE T3.pName = 'Charles'
soccer_2
[ "What are the player ids of all students who made the team?", "What is the maximum number of hours they spent practicing?", "What was the average?" ]
[ "SELECT T1.pID FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'", "SELECT max(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'", "SELECT avg(T1.HS) , max(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'" ]
What is the average and maximum number of hours students who made the team practiced?
SELECT avg(T1.HS) , max(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'yes'
soccer_2
[ "Which players received a decision of no from tryouts?", "How many hours did they practice?", "What was the average?" ]
[ "SELECT T1.pNAME FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'no'", "SELECT T1.pNAME , T1.HS FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'no'", "SELECT avg(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'no'" ]
What is the average number of hours spent practicing for students who got rejected?
SELECT avg(T1.HS) FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T2.decision = 'no'
soccer_2
[ "What information is there on students who spent more than 1000 hours training?", "For each position, how many hours did each student spent training?", "What was the maximum time spent for each position?" ]
[ "SELECT * FROM player WHERE HS > 1000", "SELECT T1.HS , pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID GROUP BY T2.pPos", "SELECT max(T1.HS) , pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T1.HS > 1000 GROUP BY T2.pPos" ]
For each position, what is the maximum number of hours for students who spent more than 1000 hours training?
SELECT max(T1.HS) , pPos FROM player AS T1 JOIN tryout AS T2 ON T1.pID = T2.pID WHERE T1.HS > 1000 GROUP BY T2.pPos
soccer_2
[ "What are the player ids of every player whose name starts with D?", "Of those, who tried out?", "What college did they go to?" ]
[ "SELECT pID FROM player WHERE pName LIKE 'D%'", "SELECT T1.pID FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID WHERE T2.pName LIKE 'D%'", "SELECT T1.cName FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID WHERE T2.pName LIKE 'D%'" ]
Which colleges does each player with a name that starts with the letter D who tried out go to?
SELECT T1.cName FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID WHERE T2.pName LIKE 'D%'
soccer_2
[ "What can you tell me about the students who made the team?", "of those, who tried out for the position of goalie?", "What college do they attend?" ]
[ "SELECT * FROM tryout WHERE decision = 'yes'", "SELECT * FROM tryout WHERE decision = 'yes' AND pPos = 'goalie'", "SELECT cName FROM tryout WHERE decision = 'yes' AND pPos = 'goalie'" ]
What college has a student who successfully made the team in the role of a goalie?
SELECT cName FROM tryout WHERE decision = 'yes' AND pPos = 'goalie'
soccer_2
[ "What are the names of players are from that college?", "Of those, who tried out for the team?" ]
[ "SELECT T2.pName FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID WHERE T1.cName = (SELECT cName FROM college ORDER BY enr DESC LIMIT 1)", "SELECT T2.pName FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID WHERE T1.cName = (SELECT cName FROM college ORDER BY enr DESC LIMIT 1)" ]
What are the names of all tryout participants who are from the largest college?
SELECT T2.pName FROM tryout AS T1 JOIN player AS T2 ON T1.pID = T2.pID WHERE T1.cName = (SELECT cName FROM college ORDER BY enr DESC LIMIT 1) S: What IS the largest college?
soccer_2