aherntech/spider-syn huggingface dataset:
Database: soccer_1
Question: List the names of all players who have a crossing score higher than 90 and prefer their right foot.
Paraphrased question: List the names of all participants who have a crossing score higher than 90 and prefer their right foot.
SQL: SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.crossing  >  90 AND T2.preferred_foot  =  "right"
Database: soccer_1
Question: List the names of all left-footed players who have overall rating between 85 and 90.
Paraphrased question: List the names of all left-footed participants who have overall rating between 85 and 90.
SQL: SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id = T2.player_api_id WHERE T2.preferred_foot  =  "left" AND T2.overall_rating  >=  85 AND T2.overall_rating  <=  90
Database: soccer_1
Question: What is the average rating for right-footed players and left-footed players?
Paraphrased question: What is the average score for right-footed players and left-footed players?
SQL: SELECT preferred_foot ,  avg(overall_rating) FROM Player_Attributes GROUP BY preferred_foot
Database: soccer_1
Question: Of all players with an overall rating greater than 80, how many are right-footed and left-footed?
Paraphrased question: Of all players with an overall score greater than 80, how many are right-footed and left-footed?
SQL: SELECT preferred_foot ,  count(*) FROM Player_Attributes WHERE overall_rating  >  80 GROUP BY preferred_foot
Database: soccer_1
Question: List all of the player ids with a height of at least 180cm and an overall rating higher than 85.
Paraphrased question: List all of the participant ids with a height of at least 180cm and an overall rating higher than 85.
SQL: SELECT player_api_id FROM Player WHERE height  >=  180 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE overall_rating  >  85
Database: soccer_1
Question: List all of the ids for left-footed players with a height between 180cm and 190cm.
Paraphrased question: List all of the ids for left-footed participants with a height between 180cm and 190cm.
SQL: SELECT player_api_id FROM Player WHERE height  >=  180 AND height  <=  190 INTERSECT SELECT player_api_id FROM Player_Attributes WHERE preferred_foot  =  "left"
Database: soccer_1
Question: Who are the top 3 players in terms of overall rating?
Paraphrased question: Who are the top 3 participants in terms of overall score?
SQL: SELECT DISTINCT T1.player_name FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id  =  T2.player_api_id ORDER BY overall_rating DESC LIMIT 3
Database: soccer_1
Question: List the names and birthdays of the top five players in terms of potential.
Paraphrased question: List the names and birth dates of the top five players in terms of potential.
SQL: SELECT DISTINCT T1.player_name ,  T1.birthday FROM Player AS T1 JOIN Player_Attributes AS T2 ON T1.player_api_id  =  T2.player_api_id ORDER BY potential DESC LIMIT 5
Database: performance_attendance
Question: How many performances are there?
Paraphrased question: How many performances are there?
SQL: SELECT count(*) FROM performance
Database: performance_attendance
Question: List the hosts of performances in ascending order of attendance.
Paraphrased question: List the hosts of performances in ascending order of attendance.
SQL: SELECT HOST FROM performance ORDER BY Attendance ASC
Database: performance_attendance
Question: What are the dates and locations of performances?
Paraphrased question: What are the days and locations of performances?
SQL: SELECT Date ,  LOCATION FROM performance
Database: performance_attendance
Question: Show the attendances of the performances at location "TD Garden" or "Bell Centre"
Paraphrased question: Show the attendees of the performances at location "TD Garden" or "Bell Centre"
SQL: SELECT Attendance FROM performance WHERE LOCATION  =  "TD Garden" OR LOCATION  =  "Bell Centre"
Database: performance_attendance
Question: What is the average number of attendees for performances?
Paraphrased question: What is the average number of attendees for performances?
SQL: SELECT avg(Attendance) FROM performance
Database: performance_attendance
Question: What is the date of the performance with the highest number of attendees?
Paraphrased question: What is the day of the performance with the highest number of attendees?
SQL: SELECT Date FROM performance ORDER BY Attendance DESC LIMIT 1
Database: performance_attendance
Question: Show different locations and the number of performances at each location.
Paraphrased question: Show different locations and the number of performances at each location.
SQL: SELECT LOCATION ,  COUNT(*) FROM performance GROUP BY LOCATION
Database: performance_attendance
Question: Show the most common location of performances.
Paraphrased question: Show the most common location of performances.
SQL: SELECT LOCATION FROM performance GROUP BY LOCATION ORDER BY COUNT(*) DESC LIMIT 1
Database: performance_attendance
Question: Show the locations that have at least two performances.
Paraphrased question: Show the locations that have at least two performances.
SQL: SELECT LOCATION FROM performance GROUP BY LOCATION HAVING COUNT(*)  >=  2
Database: performance_attendance
Question: Show the locations that have both performances with more than 2000 attendees and performances with less than 1000 attendees.
Paraphrased question: Show the locations that have both performances with more than 2000 attendees and performances with less than 1000 attendees.
SQL: SELECT LOCATION FROM performance WHERE Attendance  >  2000 INTERSECT SELECT LOCATION FROM performance WHERE Attendance  <  1000
Database: performance_attendance
Question: Show the names of members and the location of the performances they attended.
Paraphrased question: Show the names of members and the location of the performances they attended.
SQL: SELECT T2.Name ,  T3.Location FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID  =  T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID  =  T3.Performance_ID
Database: performance_attendance
Question: Show the names of members and the location of performances they attended in ascending alphabetical order of their names.
Paraphrased question: Show the names of members and the location of performances they attended in ascending alphabetical order of their names.
SQL: SELECT T2.Name ,  T3.Location FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID  =  T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID  =  T3.Performance_ID ORDER BY T2.Name ASC
Database: performance_attendance
Question: Show the dates of performances with attending members whose roles are "Violin".
Paraphrased question: Show the day of performances with attending members whose roles are "Violin".
SQL: SELECT T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID  =  T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID  =  T3.Performance_ID WHERE T2.Role  =  "Violin"
Database: performance_attendance
Question: Show the names of members and the dates of performances they attended in descending order of attendance of the performances.
Paraphrased question: Show the names of members and the day of performances they attended in descending order of attendance of the performances.
SQL: SELECT T2.Name ,  T3.Date FROM member_attendance AS T1 JOIN member AS T2 ON T1.Member_ID  =  T2.Member_ID JOIN performance AS T3 ON T1.Performance_ID  =  T3.Performance_ID ORDER BY T3.Attendance DESC
Database: performance_attendance
Question: List the names of members who did not attend any performance.
Paraphrased question: List the names of members who did not attend any performance.
SQL: SELECT Name FROM member WHERE Member_ID NOT IN (SELECT Member_ID FROM member_attendance)
Database: college_2
Question: Find the buildings which have rooms with capacity more than 50.
Paraphrased question: Find the buildings which have rooms with the number of seat more than 50.
SQL: SELECT DISTINCT building FROM classroom WHERE capacity  >  50
Database: college_2
Question: What are the distinct buildings with capacities of greater than 50?
Paraphrased question: What are the different buildings with the number of seats of greater than 50?
SQL: SELECT DISTINCT building FROM classroom WHERE capacity  >  50
Database: college_2
Question: Count the number of rooms that are not in the Lamberton building.
Paraphrased question: Count the number of rooms that are not in the Lamberton building.
SQL: SELECT count(*) FROM classroom WHERE building != 'Lamberton'
Database: college_2
Question: How many classrooms are not in Lamberton?
Paraphrased question: How many schoolrooms are not in Lamberton?
SQL: SELECT count(*) FROM classroom WHERE building != 'Lamberton'
Database: college_2
Question: What is the name and building of the departments whose budget is more than the average budget?
Paraphrased question: What is the name and building of the departments whose budget is more than the average budget?
SQL: SELECT dept_name ,  building FROM department WHERE budget  >  (SELECT avg(budget) FROM department)
Database: college_2
Question: Give the name and building of the departments with greater than average budget.
Paraphrased question: Give the name and building of the departments with greater than average budget.
SQL: SELECT dept_name ,  building FROM department WHERE budget  >  (SELECT avg(budget) FROM department)
Database: college_2
Question: Find the room number of the rooms which can sit 50 to 100 students and their buildings.
Paraphrased question: Find the room number of the rooms which can sit 50 to 100 students and their buildings.
SQL: SELECT building ,  room_number FROM classroom WHERE capacity BETWEEN 50 AND 100
Database: college_2
Question: What are the room numbers and corresponding buildings for classrooms which can seat between 50 to 100 students?
Paraphrased question: What are the room numbers and corresponding buildings for classrooms which can seat between 50 to 100 students?
SQL: SELECT building ,  room_number FROM classroom WHERE capacity BETWEEN 50 AND 100
Database: college_2
Question: Find the name and building of the department with the highest budget.
Paraphrased question: Find the name and building of the department with the highest budget.
SQL: SELECT dept_name ,  building FROM department ORDER BY budget DESC LIMIT 1
Database: college_2
Question: What is the department name and corresponding building for the department with the greatest budget?
Paraphrased question: What is the department name and corresponding building for the department with the greatest budget?
SQL: SELECT dept_name ,  building FROM department ORDER BY budget DESC LIMIT 1
Database: college_2
Question: What is the name of the student who has the highest total credits in the History department.
Paraphrased question: What is the name of the student who has the highest total credits in the History department.
SQL: SELECT name FROM student WHERE dept_name  =  'History' ORDER BY tot_cred DESC LIMIT 1
Database: college_2
Question: Give the name of the student in the History department with the most credits.
Paraphrased question: Give the name of the student in the History department with the most credits.
SQL: SELECT name FROM student WHERE dept_name  =  'History' ORDER BY tot_cred DESC LIMIT 1
Database: college_2
Question: How many rooms does the Lamberton building have?
Paraphrased question: How many rooms does the Lamberton building have?
SQL: SELECT count(*) FROM classroom WHERE building  =  'Lamberton'
Database: college_2
Question: Count the number of classrooms in Lamberton.
Paraphrased question: Count the number of schoolrooms in Lamberton.
SQL: SELECT count(*) FROM classroom WHERE building  =  'Lamberton'
Database: college_2
Question: How many students have advisors?
Paraphrased question: How many students have advisers?
SQL: SELECT count(DISTINCT s_id) FROM advisor
Database: college_2
Question: Count the number of students who have advisors.
Paraphrased question: Count the number of students who have advisers.
SQL: SELECT count(DISTINCT s_id) FROM advisor
Database: college_2
Question: How many departments offer courses?
Paraphrased question: How many departments offer curriculum?
SQL: SELECT count(DISTINCT dept_name) FROM course
Database: college_2
Question: Count the number of departments which offer courses.
Paraphrased question: Count the number of departments which offer curriculum.
SQL: SELECT count(DISTINCT dept_name) FROM course
Database: college_2
Question: How many different courses offered by Physics department?
Paraphrased question: How many different curriculum offered by Physics department?
SQL: SELECT count(DISTINCT course_id) FROM course WHERE dept_name  =  'Physics'
Database: college_2
Question: Count the number of courses in the Physics department.
Paraphrased question: Count the number of curriculum in the Physics department.
SQL: SELECT count(DISTINCT course_id) FROM course WHERE dept_name  =  'Physics'
Database: college_2
Question: Find the title of courses that have two prerequisites?
Paraphrased question: Find the title of curriculum that have two prerequisites?
SQL: SELECT T1.title FROM course AS T1 JOIN prereq AS T2 ON T1.course_id  =  T2.course_id GROUP BY T2.course_id HAVING count(*)  =  2
Database: college_2
Question: What are the titles for courses with two prerequisites?
Paraphrased question: What are the titles for curriculum with two prerequisites?
SQL: SELECT T1.title FROM course AS T1 JOIN prereq AS T2 ON T1.course_id  =  T2.course_id GROUP BY T2.course_id HAVING count(*)  =  2
Database: college_2
Question: Find the title, credit, and department name of courses that have more than one prerequisites?
Paraphrased question: Find the title, credit, and department name of curriculum that have more than one prerequisites?
SQL: SELECT T1.title ,  T1.credits , T1.dept_name FROM course AS T1 JOIN prereq AS T2 ON T1.course_id  =  T2.course_id GROUP BY T2.course_id HAVING count(*)  >  1
Database: college_2
Question: What is the title, credit value, and department name for courses with more than one prerequisite?
Paraphrased question: What is the title, credit value, and department name for curriculum with more than one prerequisite?
SQL: SELECT T1.title ,  T1.credits , T1.dept_name FROM course AS T1 JOIN prereq AS T2 ON T1.course_id  =  T2.course_id GROUP BY T2.course_id HAVING count(*)  >  1
Database: college_2
Question: How many courses that do not have prerequisite?
Paraphrased question: How many curriculum that do not have prerequisite?
SQL: SELECT count(*) FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)
Database: college_2
Question: Count the number of courses without prerequisites.
Paraphrased question: Count the number of curriculum without prerequisites.
SQL: SELECT count(*) FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)
Database: college_2
Question: Find the name of the courses that do not have any prerequisite?
Paraphrased question: Find the name of the curriculum that do not have any prerequisite?
SQL: SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)
Database: college_2
Question: What are the titles of courses without prerequisites?
Paraphrased question: What are the titles of curriculum without prerequisites?
SQL: SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)
Database: college_2
Question: How many different instructors have taught some course?
Paraphrased question: How many different teachers have taught some course?
SQL: SELECT COUNT (DISTINCT id) FROM teaches
Database: college_2
Question: Count the number of distinct instructors who have taught a course.
Paraphrased question: Count the number of different teachers who have taught a course.
SQL: SELECT COUNT (DISTINCT id) FROM teaches
Database: college_2
Question: Find the total budgets of the Marketing or Finance department.
Paraphrased question: Find the total budgets of the Marketing or Finance department.
SQL: SELECT sum(budget) FROM department WHERE dept_name  =  'Marketing' OR dept_name  =  'Finance'
Database: college_2
Question: What is the sum of budgets of the Marketing and Finance departments?
Paraphrased question: What is the sum of budgets of the Marketing and Finance departments?
SQL: SELECT sum(budget) FROM department WHERE dept_name  =  'Marketing' OR dept_name  =  'Finance'
Database: college_2
Question: Find the department name of the instructor whose name contains 'Soisalon'.
Paraphrased question: Find the department name of the teacher whose name contains 'Soisalon'.
SQL: SELECT dept_name FROM instructor WHERE name LIKE '%Soisalon%'
Database: college_2
Question: What is the name of the department with an instructure who has a name like 'Soisalon'?
Paraphrased question: What is the name of the department with a teacher who has a name like 'Soisalon'?
SQL: SELECT dept_name FROM instructor WHERE name LIKE '%Soisalon%'
Database: college_2
Question: How many rooms whose capacity is less than 50 does the Lamberton building have?
Paraphrased question: How many rooms whose seat is less than 50 does the Lamberton building have?
SQL: SELECT count(*) FROM classroom WHERE building  =  'Lamberton' AND capacity  <  50
Database: college_2
Question: Count the number of rooms in Lamberton with capacity lower than 50.
Paraphrased question: Count the number of rooms in Lamberton with the number of seats lower than 50.
SQL: SELECT count(*) FROM classroom WHERE building  =  'Lamberton' AND capacity  <  50
Database: college_2
Question: Find the name and budget of departments whose budgets are more than the average budget.
Paraphrased question: Find the name and budget of departments whose budgets are more than the average budget.
SQL: SELECT dept_name ,  budget FROM department WHERE budget  >  (SELECT avg(budget) FROM department)
Database: college_2
Question: What are the names and budgets of departments with budgets greater than the average?
Paraphrased question: What are the names and budgets of departments with budgets greater than the average?
SQL: SELECT dept_name ,  budget FROM department WHERE budget  >  (SELECT avg(budget) FROM department)
Database: college_2
Question: what is the name of the instructor who is in Statistics department and earns the lowest salary?
Paraphrased question: what is the name of the teacher who is in Statistics department and earns the lowest salary?
SQL: SELECT name FROM instructor WHERE dept_name  =  'Statistics' ORDER BY salary LIMIT 1
Database: college_2
Question: Give the name of the lowest earning instructor in the Statistics department.
Paraphrased question: Give the name of the lowest earning teacher in the Statistics department.
SQL: SELECT name FROM instructor WHERE dept_name  =  'Statistics' ORDER BY salary LIMIT 1
Database: college_2
Question: Find the title of course that is provided by both Statistics and Psychology departments.
Paraphrased question: Find the title of curriculum that is provided by both Statistics and Psychology departments.
SQL: SELECT title FROM course WHERE dept_name  =  'Statistics' INTERSECT SELECT title FROM course WHERE dept_name  =  'Psychology'
Database: college_2
Question: What is the title of a course that is listed in both the Statistics and Psychology departments?
Paraphrased question: What is the title of curriculum that is listed in both the Statistics and Psychology departments?
SQL: SELECT title FROM course WHERE dept_name  =  'Statistics' INTERSECT SELECT title FROM course WHERE dept_name  =  'Psychology'
Database: college_2
Question: Find the title of course that is provided by Statistics but not Psychology departments.
Paraphrased question: Find the title of curriculum that is provided by Statistics but not Psychology departments.
SQL: SELECT title FROM course WHERE dept_name  =  'Statistics' EXCEPT SELECT title FROM course WHERE dept_name  =  'Psychology'
Database: college_2
Question: What are the titles of courses that are in the Statistics department but not the Psychology department?
Paraphrased question: What are the titles of curriculum that are in the Statistics department but not the Psychology department?
SQL: SELECT title FROM course WHERE dept_name  =  'Statistics' EXCEPT SELECT title FROM course WHERE dept_name  =  'Psychology'
Database: college_2
Question: Find the id of instructors who taught a class in Fall 2009 but not in Spring 2010.
Paraphrased question: Find the id of teachers who taught a class in Fall 2009 but not in Spring 2010.
SQL: SELECT id FROM teaches WHERE semester  =  'Fall' AND YEAR  =  2009 EXCEPT SELECT id FROM teaches WHERE semester  =  'Spring' AND YEAR  =  2010
Database: college_2
Question: What are the ids of instructors who taught in the Fall of 2009 but not in the Spring of 2010?
Paraphrased question: What are the ids of teachers who taught in the Fall of 2009 but not in the Spring of 2010?
SQL: SELECT id FROM teaches WHERE semester  =  'Fall' AND YEAR  =  2009 EXCEPT SELECT id FROM teaches WHERE semester  =  'Spring' AND YEAR  =  2010
Database: college_2
Question: Find the name of students who took any class in the years of 2009 and 2010.
Paraphrased question: Find the name of students who took any class in the years of 2009 and 2010.
SQL: SELECT DISTINCT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id  =  T2.id WHERE YEAR  =  2009 OR YEAR  =  2010
Database: college_2
Question: What are the names of the students who took classes in 2009 or 2010?
Paraphrased question: What are the names of the students who took classes in 2009 or 2010?
SQL: SELECT DISTINCT T1.name FROM student AS T1 JOIN takes AS T2 ON T1.id  =  T2.id WHERE YEAR  =  2009 OR YEAR  =  2010
Database: college_2
Question: Find the names of the top 3 departments that provide the largest amount of courses?
Paraphrased question: Find the names of the top 3 departments that provide the largest amount of curriculum?
SQL: SELECT dept_name FROM course GROUP BY dept_name ORDER BY count(*) DESC LIMIT 3
Database: college_2
Question: What are the names of the 3 departments with the most courses?
Paraphrased question: What are the names of the 3 departments with the most curriculum?
SQL: SELECT dept_name FROM course GROUP BY dept_name ORDER BY count(*) DESC LIMIT 3
Database: college_2
Question: Find the name of the department that offers the highest total credits?
Paraphrased question: Find the name of the department that offers the highest total credits?
SQL: SELECT dept_name FROM course GROUP BY dept_name ORDER BY sum(credits) DESC LIMIT 1
Database: college_2
Question: What is the name of the department with the most credits?
Paraphrased question: What is the name of the department with the most credits?
SQL: SELECT dept_name FROM course GROUP BY dept_name ORDER BY sum(credits) DESC LIMIT 1
Database: college_2
Question: List the names of all courses ordered by their titles and credits.
Paraphrased question: List the names of all curriculum ordered by their titles and credits.
SQL: SELECT title FROM course ORDER BY title ,  credits
Database: college_2
Question: Given the titles of all courses, in order of titles and credits.
Paraphrased question: Given the titles of all curriculum, in order of titles and credits.
SQL: SELECT title FROM course ORDER BY title ,  credits
Database: college_2
Question: Which department has the lowest budget?
Paraphrased question: Which department has the lowest budget?
SQL: SELECT dept_name FROM department ORDER BY budget LIMIT 1
Database: college_2
Question: Give the name of the department with the lowest budget.
Paraphrased question: Give the name of the department with the lowest budget.
SQL: SELECT dept_name FROM department ORDER BY budget LIMIT 1
Database: college_2
Question: List the names and buildings of all departments sorted by the budget from large to small.
Paraphrased question: List the names and buildings of all departments sorted by the budget from large to small.
SQL: SELECT dept_name ,  building FROM department ORDER BY budget DESC
Database: college_2
Question: What are the names and buildings of the deparments, sorted by budget descending?
Paraphrased question: What are the names and buildings of the deparments, sorted by budget descending?
SQL: SELECT dept_name ,  building FROM department ORDER BY budget DESC
Database: college_2
Question: Who is the instructor with the highest salary?
Paraphrased question: Who is the teacher with the highest salary?
SQL: SELECT name FROM instructor ORDER BY salary DESC LIMIT 1
Database: college_2
Question: Give the name of the highest paid instructor.
Paraphrased question: Give the name of the highest paid teacher.
SQL: SELECT name FROM instructor ORDER BY salary DESC LIMIT 1
Database: college_2
Question: List the information of all instructors ordered by their salary in ascending order.
Paraphrased question: List the detail of all teachers ordered by their salary in ascending order.
SQL: SELECT * FROM instructor ORDER BY salary
Database: college_2
Question: Give all information regarding instructors, in order of salary from least to greatest.
Paraphrased question: Give all detail regarding teachers, in order of salary from least to greatest.
SQL: SELECT * FROM instructor ORDER BY salary
Database: college_2
Question: Find the name of the students and their department names sorted by their total credits in ascending order.
Paraphrased question: Find the name of the students and their department names sorted by their total credits in ascending order.
SQL: SELECT name ,  dept_name FROM student ORDER BY tot_cred
Database: college_2
Question: What are the names of students and their respective departments, ordered by number of credits from least to greatest?
Paraphrased question: What are the names of students and their respective departments, ordered by number of credits from least to greatest?
SQL: SELECT name ,  dept_name FROM student ORDER BY tot_cred
Database: college_2
Question: list in alphabetic order all course names and their instructors' names in year 2008.
Paraphrased question: list in alphabetic order all curriculum names and their instructors' names in year 2008.
SQL: SELECT T1.title ,  T3.name FROM course AS T1 JOIN teaches AS T2 ON T1.course_id  =  T2.course_id JOIN instructor AS T3 ON T2.id  =  T3.id WHERE YEAR  =  2008 ORDER BY T1.title
Database: college_2
Question: Show all titles and their instructors' names for courses in 2008, in alphabetical order by title.
Paraphrased question: Show all titles and their instructors' names for curriculum in 2008, in alphabetical order by title.
SQL: SELECT T1.title ,  T3.name FROM course AS T1 JOIN teaches AS T2 ON T1.course_id  =  T2.course_id JOIN instructor AS T3 ON T2.id  =  T3.id WHERE YEAR  =  2008 ORDER BY T1.title
Database: college_2
Question: Find the name of instructors who are advising more than one student.
Paraphrased question: Find the name of teachers who are advising more than one student.
SQL: SELECT T1.name FROM instructor AS T1 JOIN advisor AS T2 ON T1.id  =  T2.i_id GROUP BY T2.i_id HAVING count(*)  >  1
Database: college_2
Question: What are the names of instructors who advise more than one student?
Paraphrased question: What are the names of teachers who advise more than one student?
SQL: SELECT T1.name FROM instructor AS T1 JOIN advisor AS T2 ON T1.id  =  T2.i_id GROUP BY T2.i_id HAVING count(*)  >  1
Database: college_2
Question: Find the name of the students who have more than one advisor?
Paraphrased question: Find the name of the students who have more than one advisor?
SQL: SELECT T1.name FROM student AS T1 JOIN advisor AS T2 ON T1.id  =  T2.s_id GROUP BY T2.s_id HAVING count(*)  >  1
Database: college_2
Question: What are the names of students who have more than one advisor?
Paraphrased question: What are the names of students who have more than one advisor?
SQL: SELECT T1.name FROM student AS T1 JOIN advisor AS T2 ON T1.id  =  T2.s_id GROUP BY T2.s_id HAVING count(*)  >  1
Database: college_2
Question: Find the number of rooms with more than 50 capacity for each building.
Paraphrased question: Find the number of rooms with more than 50 capacity for each building.
SQL: SELECT count(*) ,  building FROM classroom WHERE capacity  >  50 GROUP BY building
Database: college_2
Question: How many rooms in each building have a capacity of over 50?
Paraphrased question: How many rooms in each building have a capacity of over 50?
SQL: SELECT count(*) ,  building FROM classroom WHERE capacity  >  50 GROUP BY building
Database: college_2
Question: Find the maximum and average capacity among rooms in each building.
Paraphrased question: Find the maximum and average number of seats among rooms in each building.
SQL: SELECT max(capacity) ,  avg(capacity) ,  building FROM classroom GROUP BY building
Database: college_2
Question: What are the greatest and average capacity for rooms in each building?
Paraphrased question: What are the greatest and average number of seats for rooms in each building?
SQL: SELECT max(capacity) ,  avg(capacity) ,  building FROM classroom GROUP BY building
Database: college_2
Question: Find the title of the course that is offered by more than one department.
Paraphrased question: Find the title of the curriculum that is offered by more than one department.
SQL: SELECT title FROM course GROUP BY title HAVING count(*)  >  1
Database: college_2
Question: What are the titles of courses that are offered in more than one department?
Paraphrased question: What are the titles of curriculum that are offered in more than one department?
SQL: SELECT title FROM course GROUP BY title HAVING count(*)  >  1
Database: college_2
Question: Find the total credits of courses provided by different department.
Paraphrased question: Find the sum of credits of curriculum provided by different department.
SQL: SELECT sum(credits) ,  dept_name FROM course GROUP BY dept_name
Database: college_2
Question: How many total credits are offered by each department?
Paraphrased question: How many total credits are offered by each department?
SQL: SELECT sum(credits) ,  dept_name FROM course GROUP BY dept_name
Database: college_2
Question: Find the minimum salary for the departments whose average salary is above the average payment of all instructors.
Paraphrased question: Find the minimum wage for the departments whose average wage is above the average payment of all instructors.
SQL: SELECT min(salary) ,  dept_name FROM instructor GROUP BY dept_name HAVING avg(salary)  >  (SELECT avg(salary) FROM instructor)
Database: college_2
Question: What is the lowest salary in departments with average salary greater than the overall average.
Paraphrased question: What is the lowest wage in departments with average wage greater than the overall average.
SQL: SELECT min(salary) ,  dept_name FROM instructor GROUP BY dept_name HAVING avg(salary)  >  (SELECT avg(salary) FROM instructor)
Database: college_2
Question: Find the number of courses provided in each semester and year.
Paraphrased question: Find the number of courses provided in each academic session and year.
SQL: SELECT count(*) ,  semester ,  YEAR FROM SECTION GROUP BY semester ,  YEAR
Database: college_2
Question: How many courses are provided in each semester and year?
Paraphrased question: How many courses are provided in each academic session and year?
SQL: SELECT count(*) ,  semester ,  YEAR FROM SECTION GROUP BY semester ,  YEAR
Database: college_2
Question: Find the year which offers the largest number of courses.
Paraphrased question: Find the year which offers the largest number of courses.
SQL: SELECT YEAR FROM SECTION GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1
Database: college_2
Question: Which year had the greatest number of courses?
Paraphrased question: Which year had the greatest number of curriculum?
SQL: SELECT YEAR FROM SECTION GROUP BY YEAR ORDER BY count(*) DESC LIMIT 1
Database: college_2
Question: Find the year and semester when offers the largest number of courses.
Paraphrased question: Find the year and academic session when offers the largest number of courses.
SQL: SELECT semester ,  YEAR FROM SECTION GROUP BY semester ,  YEAR ORDER BY count(*) DESC LIMIT 1
Database: college_2
Question: What is the year and semester with the most courses?
Paraphrased question: What is the year and academic session with the most courses?
SQL: SELECT semester ,  YEAR FROM SECTION GROUP BY semester ,  YEAR ORDER BY count(*) DESC LIMIT 1
Database: college_2
Question: Find the name of department has the highest amount of students?
Paraphrased question: Find the name of department has the highest amount of students?
SQL: SELECT dept_name FROM student GROUP BY dept_name ORDER BY count(*) DESC LIMIT 1
Database: college_2
Question: What is the name of the deparment with the highest enrollment?
Paraphrased question: What is the name of the deparment with the highest enrollment?
SQL: SELECT dept_name FROM student GROUP BY dept_name ORDER BY count(*) DESC LIMIT 1
Database: college_2
Question: Find the total number of students in each department.
Paraphrased question: Find the total number of students in each department.
SQL: SELECT count(*) ,  dept_name FROM student GROUP BY dept_name
Database: college_2
Question: How many students are in each department?
Paraphrased question: How many students are in each department?
SQL: SELECT count(*) ,  dept_name FROM student GROUP BY dept_name
Database: college_2
Question: Find the semester and year which has the least number of student taking any class.
Paraphrased question: Find the academic session and year which has the least number of student taking any class.
SQL: SELECT semester ,  YEAR FROM takes GROUP BY semester ,  YEAR ORDER BY count(*) LIMIT 1
Database: college_2
Question: Which semeseter and year had the fewest students?
Paraphrased question: Which academic session and year had the fewest students?
SQL: SELECT semester ,  YEAR FROM takes GROUP BY semester ,  YEAR ORDER BY count(*) LIMIT 1
Database: college_2
Question: What is the id of the instructor who advises of all students from History department?
Paraphrased question: What is the id of the teacher who advises of all students from History department?
SQL: SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id  =  T2.id WHERE T2.dept_name  =  'History'
Database: college_2
Question: Give id of the instructor who advises students in the History department.
Paraphrased question: Give id of the teacher who advises students in the History department.
SQL: SELECT i_id FROM advisor AS T1 JOIN student AS T2 ON T1.s_id  =  T2.id WHERE T2.dept_name  =  'History'
Database: college_2
Question: Find the name and salary of the instructors who are advisors of any student from History department?
Paraphrased question: Find the name and wage of the instructors who are advisors of any student from History department?
SQL: SELECT T2.name ,  T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id WHERE T3.dept_name  =  'History'
Database: college_2
Question: What are the names and salaries of instructors who advises students in the History department?
Paraphrased question: What are the names and wages of teachers who advises students in the History department?
SQL: SELECT T2.name ,  T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id WHERE T3.dept_name  =  'History'
Database: college_2
Question: Find the id of the courses that do not have any prerequisite?
Paraphrased question: Find the id of the curriculum that do not have any prerequisite?
SQL: SELECT course_id FROM course EXCEPT SELECT course_id FROM prereq
Database: college_2
Question: What are the ids of courses without prerequisites?
Paraphrased question: What are the ids of curriculum without prerequisites?
SQL: SELECT course_id FROM course EXCEPT SELECT course_id FROM prereq
Database: college_2
Question: What are the names of courses without prerequisites?
Paraphrased question: What are the names of curriculum without prerequisites?
SQL: SELECT title FROM course WHERE course_id NOT IN (SELECT course_id FROM prereq)
Database: college_2
Question: What is the title of the prerequisite class of International Finance course?
Paraphrased question: What is the title of the prerequisite class of International Finance course?
SQL: SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id  =  T2.course_id WHERE T2.title  =  'International Finance')
Database: college_2
Question: Give the title of the prerequisite to the course International Finance.
Paraphrased question: Give the title of the prerequisite to the course International Finance.
SQL: SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id  =  T2.course_id WHERE T2.title  =  'International Finance')
Database: college_2
Question: Find the title of course whose prerequisite is course Differential Geometry.
Paraphrased question: Find the title of course whose prerequisite is course Differential Geometry.
SQL: SELECT title FROM course WHERE course_id IN (SELECT T1.course_id FROM prereq AS T1 JOIN course AS T2 ON T1.prereq_id  =  T2.course_id WHERE T2.title  =  'Differential Geometry')
Database: college_2
Question: What is the title of the course with Differential Geometry as a prerequisite?
Paraphrased question: What is the title of the curriculum with Differential Geometry as a prerequisite?
SQL: SELECT title FROM course WHERE course_id IN (SELECT T1.course_id FROM prereq AS T1 JOIN course AS T2 ON T1.prereq_id  =  T2.course_id WHERE T2.title  =  'Differential Geometry')
Database: college_2
Question: Find the names of students who have taken any course in the fall semester of year 2003.
Paraphrased question: Find the names of students who have taken any course in the fall academic session of year 2003.
SQL: SELECT name FROM student WHERE id IN (SELECT id FROM takes WHERE semester  =  'Fall' AND YEAR  =  2003)
Database: college_2
Question: What are the names of students who took a course in the Fall of 2003?
Paraphrased question: What are the names of students who took a course in the Fall of 2003?
SQL: SELECT name FROM student WHERE id IN (SELECT id FROM takes WHERE semester  =  'Fall' AND YEAR  =  2003)
Database: college_2
Question: What is the title of the course that was offered at building Chandler during the fall semester in the year of 2010?
Paraphrased question: What is the title of the curriculum that was offered at building Chandler during the fall academic session in the year of 2010?
SQL: SELECT T1.title FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id  =  T2.course_id WHERE building  =  'Chandler' AND semester  =  'Fall' AND YEAR  =  2010
Database: college_2
Question: Give the title of the course offered in Chandler during the Fall of 2010.
Paraphrased question: Give the title of the curriculum offered in Chandler during the Fall of 2010.
SQL: SELECT T1.title FROM course AS T1 JOIN SECTION AS T2 ON T1.course_id  =  T2.course_id WHERE building  =  'Chandler' AND semester  =  'Fall' AND YEAR  =  2010
Database: college_2
Question: Find the name of the instructors who taught C Programming course before.
Paraphrased question: Find the name of the teachers who taught C Programming course before.
SQL: SELECT T1.name FROM instructor AS T1 JOIN teaches AS T2 ON T1.id  =  T2.id JOIN course AS T3 ON T2.course_id  =  T3.course_id WHERE T3.title  =  'C Programming'
Database: college_2
Question: What are the names of instructors who have taught C Programming courses?
Paraphrased question: What are the names of teachers who have taught C Programming courses?
SQL: SELECT T1.name FROM instructor AS T1 JOIN teaches AS T2 ON T1.id  =  T2.id JOIN course AS T3 ON T2.course_id  =  T3.course_id WHERE T3.title  =  'C Programming'
Database: college_2
Question: Find the name and salary of instructors who are advisors of the students from the Math department.
Paraphrased question: Find the name and wage of instructors who are advisors of the students from the Math department.
SQL: SELECT T2.name ,  T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id WHERE T3.dept_name  =  'Math'
Database: college_2
Question: What are the names and salaries of instructors who advise students in the Math department?
Paraphrased question: What are the names and wages of instructors who advise students in the Math department?
SQL: SELECT T2.name ,  T2.salary FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id WHERE T3.dept_name  =  'Math'
Database: college_2
Question: Find the name of instructors who are advisors of the students from the Math department, and sort the results by students' total credit.
Paraphrased question: Find the name of instructors who are advisers of the students from the Math department, and sort the results by students' total credit.
SQL: SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id WHERE T3.dept_name  =  'Math' ORDER BY T3.tot_cred
Database: college_2
Question: What are the names of all instructors who advise students in the math depart sorted by total credits of the student.
Paraphrased question: What are the names of all teachers who advise students in the math depart sorted by total credits of the student.
SQL: SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id WHERE T3.dept_name  =  'Math' ORDER BY T3.tot_cred
Database: college_2
Question: What is the course title of the prerequisite of course Mobile Computing?
Paraphrased question: What is the curriculum title of the prerequisite of curriculum Mobile Computing?
SQL: SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id  =  T2.course_id WHERE T2.title  =  'Mobile Computing')
Database: college_2
Question: What is the title of the course that is a prerequisite for Mobile Computing?
Paraphrased question: What is the title of the curriculum that is a prerequisite for Mobile Computing?
SQL: SELECT title FROM course WHERE course_id IN (SELECT T1.prereq_id FROM prereq AS T1 JOIN course AS T2 ON T1.course_id  =  T2.course_id WHERE T2.title  =  'Mobile Computing')
Database: college_2
Question: Find the name of instructor who is the advisor of the student who has the highest number of total credits.
Paraphrased question: Find the name of teacher who is the advisor of the student who has the highest number of total credits.
SQL: SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id ORDER BY T3.tot_cred DESC LIMIT 1
Database: college_2
Question: What is the name of the instructor who advises the student with the greatest number of total credits?
Paraphrased question: What is the name of the teacher who advises the student with the greatest number of total credits?
SQL: SELECT T2.name FROM advisor AS T1 JOIN instructor AS T2 ON T1.i_id  =  T2.id JOIN student AS T3 ON T1.s_id  =  T3.id ORDER BY T3.tot_cred DESC LIMIT 1
Database: college_2
Question: Find the name of instructors who didn't teach any courses?
Paraphrased question: Find the name of teachers who didn't teach any courses?
SQL: SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches)
Database: college_2
Question: What are the names of instructors who didn't teach?
Paraphrased question: What are the names of teachers who didn't teach?
SQL: SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches)
Database: college_2
Question: Find the id of instructors who didn't teach any courses?
Paraphrased question: Find the id of teachers who didn't teach any courses?
SQL: SELECT id FROM instructor EXCEPT SELECT id FROM teaches
Database: college_2
Question: What are the ids of instructors who didnt' teach?
Paraphrased question: What are the ids of teachers who didnt' teach?
SQL: SELECT id FROM instructor EXCEPT SELECT id FROM teaches
Database: college_2
Question: Find the names of instructors who didn't each any courses in any Spring semester.
Paraphrased question: Find the names of teachers who didn't each any courses in any Spring semester.
SQL: SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches WHERE semester  =  'Spring')
Database: college_2
Question: What are the names of instructors who didn't teach courses in the Spring?
Paraphrased question: What are the names of teachers who didn't teach courses in the Spring?
SQL: SELECT name FROM instructor WHERE id NOT IN (SELECT id FROM teaches WHERE semester  =  'Spring')
Database: college_2
Question: Find the name of the department which has the highest average salary of professors.
Paraphrased question: Find the name of the department which has the highest average salary of professors.
SQL: SELECT dept_name FROM instructor GROUP BY dept_name ORDER BY avg(salary) DESC LIMIT 1
Database: college_2
Question: Which department has the highest average instructor salary?
Paraphrased question: Which department has the highest average instructor salary?
SQL: SELECT dept_name FROM instructor GROUP BY dept_name ORDER BY avg(salary) DESC LIMIT 1
Database: college_2
Question: Find the number and averaged salary of all instructors who are in the department with the highest budget.
Paraphrased question: Find the number and averaged wage of all teachers who are in the department with the highest budget.
SQL: SELECT avg(T1.salary) ,  count(*) FROM instructor AS T1 JOIN department AS T2 ON T1.dept_name  =  T2.dept_name ORDER BY T2.budget DESC LIMIT 1
Database: college_2
Question: How many instructors are in the department with the highest budget, and what is their average salary?
Paraphrased question: How many teachers are in the department with the highest budget, and what is their average wage?
SQL: SELECT avg(T1.salary) ,  count(*) FROM instructor AS T1 JOIN department AS T2 ON T1.dept_name  =  T2.dept_name ORDER BY T2.budget DESC LIMIT 1
Database: college_2
Question: What is the title and credits of the course that is taught in the largest classroom (with the highest capacity)?
Paraphrased question: What is the title and credits of the course that is taught in the largest schoolroom (with the highest capacity)?
SQL: SELECT T3.title ,  T3.credits FROM classroom AS T1 JOIN SECTION AS T2 ON T1.building  =  T2.building AND T1.room_number  =  T2.room_number JOIN course AS T3 ON T2.course_id  =  T3.course_id WHERE T1.capacity  =  (SELECT max(capacity) FROM classroom)
Database: college_2
Question: Give the title and credits for the course that is taught in the classroom with the greatest capacity.
Paraphrased question: Give the title and credits for the course that is taught in the schoolroom with the greatest capacity.
SQL: SELECT T3.title ,  T3.credits FROM classroom AS T1 JOIN SECTION AS T2 ON T1.building  =  T2.building AND T1.room_number  =  T2.room_number JOIN course AS T3 ON T2.course_id  =  T3.course_id WHERE T1.capacity  =  (SELECT max(capacity) FROM classroom)
Database: college_2
Question: Find the name of students who didn't take any course from Biology department.
Paraphrased question: Find the name of students who didn't take any course from Biology department.
SQL: SELECT name FROM student WHERE id NOT IN (SELECT T1.id FROM takes AS T1 JOIN course AS T2 ON T1.course_id  =  T2.course_id WHERE T2.dept_name  =  'Biology')
Database: college_2
Question: What are the names of students who haven't taken any Biology courses?
Paraphrased question: What are the names of students who haven't taken any Biology courses?
SQL: SELECT name FROM student WHERE id NOT IN (SELECT T1.id FROM takes AS T1 JOIN course AS T2 ON T1.course_id  =  T2.course_id WHERE T2.dept_name  =  'Biology')
Database: college_2
Question: Find the total number of students and total number of instructors for each department.
Paraphrased question: Find the total number of students and total number of instructors for each department.
SQL: SELECT count(DISTINCT T2.id) ,  count(DISTINCT T3.id) ,  T3.dept_name FROM department AS T1 JOIN student AS T2 ON T1.dept_name  =  T2.dept_name JOIN instructor AS T3 ON T1.dept_name  =  T3.dept_name GROUP BY T3.dept_name
Database: college_2
Question: How many students and instructors are in each department?
Paraphrased question: How many students and teachers are in each department?
SQL: SELECT count(DISTINCT T2.id) ,  count(DISTINCT T3.id) ,  T3.dept_name FROM department AS T1 JOIN student AS T2 ON T1.dept_name  =  T2.dept_name JOIN instructor AS T3 ON T1.dept_name  =  T3.dept_name GROUP BY T3.dept_name