aherntech/spider-syn huggingface dataset:
Database: driving_school
Question: What are the first and last names of all customers who lived in Lockmanfurt?
Paraphrased question: What are the forename and family names of all customers who lived in Lockmanfurt?
SQL: SELECT T1.first_name ,  T1.last_name FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T2.city = "Lockmanfurt";
Database: driving_school
Question: Which country does customer with first name as Carole and last name as Bernhard lived in?
Paraphrased question: Which nation does client with first name as Carole and last name as Bernhard lived in?
SQL: SELECT T2.country FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = "Carole" AND T1.last_name = "Bernhard"
Database: driving_school
Question: What is the country in which the customer Carole Bernhard lived?
Paraphrased question: What is the nation in which the client Carole Bernhard lived?
SQL: SELECT T2.country FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = "Carole" AND T1.last_name = "Bernhard"
Database: driving_school
Question: What is zip code of customer with first name as Carole and last name as Bernhard?
Paraphrased question: What is postal code of client with first name as Carole and last name as Bernhard?
SQL: SELECT T2.zip_postcode FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = "Carole" AND T1.last_name = "Bernhard"
Database: driving_school
Question: What is the zip code of the customer Carole Bernhard?
Paraphrased question: What is the postal code of the client Carole Bernhard?
SQL: SELECT T2.zip_postcode FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id WHERE T1.first_name = "Carole" AND T1.last_name = "Bernhard"
Database: driving_school
Question: Which city does has most number of customers?
Paraphrased question: Which city does has most number of clients?
SQL: SELECT T2.city FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id GROUP BY T2.city ORDER BY count(*) DESC LIMIT 1;
Database: driving_school
Question: What is the city with the most customers?
Paraphrased question: What is the city with the most clients?
SQL: SELECT T2.city FROM Customers AS T1 JOIN Addresses AS T2 ON T1.customer_address_id = T2.address_id GROUP BY T2.city ORDER BY count(*) DESC LIMIT 1;
Database: driving_school
Question: How much in total does customer with first name as Carole and last name as Bernhard paid?
Paraphrased question: How much in total does client with first name as Carole and last name as Bernhard paid?
SQL: SELECT sum(T1.amount_payment) FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Carole" AND T2.last_name = "Bernhard"
Database: driving_school
Question: What is the total amount of moeny paid by the customer Carole Bernhard?
Paraphrased question: What is the total quantity of moeny paid by the client Carole Bernhard?
SQL: SELECT sum(T1.amount_payment) FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id WHERE T2.first_name = "Carole" AND T2.last_name = "Bernhard"
Database: driving_school
Question: List the number of customers that did not have any payment history.
Paraphrased question: List the number of clients that did not have any payment history.
SQL: SELECT count(*) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Customer_Payments );
Database: driving_school
Question: How many customers have no payment histories?
Paraphrased question: How many clients have no payment histories?
SQL: SELECT count(*) FROM Customers WHERE customer_id NOT IN ( SELECT customer_id FROM Customer_Payments );
Database: driving_school
Question: List first name and last name of customers that have more than 2 payments.
Paraphrased question: List forename and family name of customers that have more than 2 payments.
SQL: SELECT T2.first_name ,  T2.last_name FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >  2;
Database: driving_school
Question: What are the first and last names of all customers with more than 2 payments?
Paraphrased question: What are the full names of all customers with more than 2 payments?
SQL: SELECT T2.first_name ,  T2.last_name FROM Customer_Payments AS T1 JOIN Customers AS T2 ON T1.customer_id = T2.customer_id GROUP BY T1.customer_id HAVING count(*)  >  2;
Database: driving_school
Question: List all payment methods and number of payments using each payment methods.
Paraphrased question: List all payment types and number of payments using each payment types.
SQL: SELECT payment_method_code ,  count(*) FROM Customer_Payments GROUP BY payment_method_code;
Database: driving_school
Question: For each payment method, how many payments were made?
Paraphrased question: For each payment type, how many payments were made?
SQL: SELECT payment_method_code ,  count(*) FROM Customer_Payments GROUP BY payment_method_code;
Database: driving_school
Question: How many lessons were in cancelled state?
Paraphrased question: How many classes were in cancelled state?
SQL: SELECT count(*) FROM Lessons WHERE lesson_status_code = "Cancelled";
Database: driving_school
Question: How many lessons have been cancelled?
Paraphrased question: How many classes have been cancelled?
SQL: SELECT count(*) FROM Lessons WHERE lesson_status_code = "Cancelled";
Database: driving_school
Question: List lesson id of all lessons taught by staff with first name as Janessa, last name as Sawayn and nickname containing letter 's'.
Paraphrased question: List class id of all classes taught by staff with first name as Janessa, last name as Sawayn and nickname containing letter 's'.
SQL: SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn" AND nickname LIKE "%s%";
Database: driving_school
Question: What are the the lesson ids of all staff taught by Janessa Sawayn whose nickname has the letter s?
Paraphrased question: What are the the class ids of all staff taught by Janessa Sawayn whose nickname has the letter s?
SQL: SELECT T1.lesson_id FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn" AND nickname LIKE "%s%";
Database: driving_school
Question: How many lessons taught by staff whose first name has letter 'a' in it?
Paraphrased question: How many classes taught by staff whose first name has letter 'a' in it?
SQL: SELECT count(*) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name LIKE "%a%"
Database: driving_school
Question: How many lessons were taught by a staff member whose first name has the letter 'a' in it?
Paraphrased question: How many classes were taught by a staff member whose first name has the letter 'a' in it?
SQL: SELECT count(*) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name LIKE "%a%"
Database: driving_school
Question: How long is the total lesson time taught by staff with first name as Janessa and last name as Sawayn?
Paraphrased question: How long is the total class time taught by staff with first name as Janessa and last name as Sawayn?
SQL: SELECT sum(lesson_time) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn";
Database: driving_school
Question: What is the total time for all lessons taught by Janessa Sawayn?
Paraphrased question: What is the total time for all classes taught by Janessa Sawayn?
SQL: SELECT sum(lesson_time) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn";
Database: driving_school
Question: What is average lesson price taught by staff with first name as Janessa and last name as Sawayn?
Paraphrased question: What is average class price taught by staff with first name as Janessa and last name as Sawayn?
SQL: SELECT avg(price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn";
Database: driving_school
Question: What is the average price for a lesson taught by Janessa Sawayn?
Paraphrased question: What is the average price for a class taught by Janessa Sawayn?
SQL: SELECT avg(price) FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id = T2.staff_id WHERE T2.first_name = "Janessa" AND T2.last_name = "Sawayn";
Database: driving_school
Question: How many lesson does customer with first name Ray took?
Paraphrased question: How many class does customer with first name Ray took?
SQL: SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = "Ray"
Database: driving_school
Question: How many lessons did the customer with the first name Ray take?
Paraphrased question: How many classes did the customer with the first name Ray take?
SQL: SELECT count(*) FROM Lessons AS T1 JOIN Customers AS T2 ON T1.customer_id  = T2.customer_id WHERE T2.first_name = "Ray"
Database: driving_school
Question: Which last names are both used by customers and by staff?
Paraphrased question: Which family names are both used by customers and by staff?
SQL: SELECT last_name FROM Customers INTERSECT SELECT last_name FROM Staff
Database: driving_school
Question: What are the last names that are used by customers and staff?
Paraphrased question: What are the family names that are used by customers and staff?
SQL: SELECT last_name FROM Customers INTERSECT SELECT last_name FROM Staff
Database: driving_school
Question: What is the first name of the staff who did not give any lesson?
Paraphrased question: What is the forename of the employee who did not give any lesson?
SQL: SELECT first_name FROM Staff EXCEPT SELECT T2.first_name FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id  =  T2.staff_id
Database: driving_school
Question: What is the first name of all employees who do not give any lessons?
Paraphrased question: What is the forename of all employees who do not give any lessons?
SQL: SELECT first_name FROM Staff EXCEPT SELECT T2.first_name FROM Lessons AS T1 JOIN Staff AS T2 ON T1.staff_id  =  T2.staff_id
Database: driving_school
Question: What is the id and detail of the vehicle used in lessons for most of the times?
Paraphrased question: What is the id and information of the vehicle used in lessons for most of the times?
SQL: SELECT T1.vehicle_id ,  T1.vehicle_details FROM Vehicles AS T1 JOIN Lessons AS T2 ON T1.vehicle_id  =  T2.vehicle_id GROUP BY T1.vehicle_id ORDER BY count(*) DESC LIMIT 1
Database: activity_1
Question: How many faculty do we have?
Paraphrased question: How many teachers do we have?
SQL: SELECT count(*) FROM Faculty
Database: activity_1
Question: What is the total number of faculty members?
Paraphrased question: What is the total number of teachers?
SQL: SELECT count(*) FROM Faculty
Database: activity_1
Question: What ranks do we have for faculty?
Paraphrased question: What is the job title of teacher?
SQL: SELECT DISTINCT rank FROM Faculty
Database: activity_1
Question: Find the list of distinct ranks for faculty.
Paraphrased question: Find the list of different job title of teacher.
SQL: SELECT DISTINCT rank FROM Faculty
Database: activity_1
Question: Show all the distinct buildings that have faculty rooms.
Paraphrased question: Show all the different buildings that have teacher rooms.
SQL: SELECT DISTINCT building FROM Faculty
Database: activity_1
Question: What buildings have faculty offices?
Paraphrased question: What buildings have teacher offices?
SQL: SELECT DISTINCT building FROM Faculty
Database: activity_1
Question: Show the rank, first name, and last name for all the faculty.
Paraphrased question: Show the job title, forename, and family name for all the faculty.
SQL: SELECT rank ,  Fname ,  Lname FROM Faculty
Database: activity_1
Question: What are the rank, first name, and last name of the faculty members?
Paraphrased question: What are the job title, forename, and surname of the faculty members?
SQL: SELECT rank ,  Fname ,  Lname FROM Faculty
Database: activity_1
Question: Show the first name, last name, and phone number for all female faculty members.
Paraphrased question: Show the forename, family name, and telephone number for all female faculty members.
SQL: SELECT Fname ,  Lname ,  phone FROM Faculty WHERE Sex  =  'F'
Database: activity_1
Question: What are the first name, last name, and phone number of all the female faculty members?
Paraphrased question: What are the forename, surname, and telephone number of all the female faculty members?
SQL: SELECT Fname ,  Lname ,  phone FROM Faculty WHERE Sex  =  'F'
Database: activity_1
Question: Show ids for all the male faculty.
Paraphrased question: Show ids for all the male teacher.
SQL: SELECT FacID FROM Faculty WHERE Sex  =  'M'
Database: activity_1
Question: What are the faculty ids of all the male faculty members?
Paraphrased question: What are the teacher ids of all the male teacher members?
SQL: SELECT FacID FROM Faculty WHERE Sex  =  'M'
Database: activity_1
Question: How many female Professors do we have?
Paraphrased question: How many female Professors do we have?
SQL: SELECT count(*) FROM Faculty WHERE Sex  =  'F' AND Rank  =  "Professor"
Database: activity_1
Question: Count the number of female Professors we have.
Paraphrased question: Count the number of female Professors we have.
SQL: SELECT count(*) FROM Faculty WHERE Sex  =  'F' AND Rank  =  "Professor"
Database: activity_1
Question: Show the phone, room, and building for the faculty named Jerry Prince.
Paraphrased question: Show the telephone, room, and building for the teacher named Jerry Prince.
SQL: SELECT phone ,  room ,  building FROM Faculty WHERE Fname  =  "Jerry" AND Lname  =  "Prince"
Database: activity_1
Question: What are the phone, room, and building of the faculty member called Jerry Prince?
Paraphrased question: What are the telephone, room, and building of the teacher member called Jerry Prince?
SQL: SELECT phone ,  room ,  building FROM Faculty WHERE Fname  =  "Jerry" AND Lname  =  "Prince"
Database: activity_1
Question: How many Professors are in building NEB?
Paraphrased question: How many Professors are in building NEB?
SQL: SELECT count(*) FROM Faculty WHERE Rank  =  "Professor" AND building  =  "NEB"
Database: activity_1
Question: Count the number of Professors who have office in building NEB.
Paraphrased question: Count the number of Professors who have office in building NEB.
SQL: SELECT count(*) FROM Faculty WHERE Rank  =  "Professor" AND building  =  "NEB"
Database: activity_1
Question: Show the first name and last name for all the instructors.
Paraphrased question: Show the full name for all the instructors.
SQL: SELECT fname ,  lname FROM Faculty WHERE Rank  =  "Instructor"
Database: activity_1
Question: What are the first name and last name of all the instructors?
Paraphrased question: What are the forename and surname of all the instructors?
SQL: SELECT fname ,  lname FROM Faculty WHERE Rank  =  "Instructor"
Database: activity_1
Question: Show all the buildings along with the number of faculty members the buildings have.
Paraphrased question: Show all the buildings along with the number of teacher members the buildings have.
SQL: SELECT building ,  count(*) FROM Faculty GROUP BY building
Database: activity_1
Question: How many faculty members does each building have? List the result with the name of the building.
Paraphrased question: How many teacher members does each building have? List the result with the name of the building.
SQL: SELECT building ,  count(*) FROM Faculty GROUP BY building
Database: activity_1
Question: Which building has most faculty members?
Paraphrased question: Which building has most teacher members?
SQL: SELECT building FROM Faculty GROUP BY building ORDER BY count(*) DESC LIMIT 1
Database: activity_1
Question: Find the building that has the largest number of faculty members.
Paraphrased question: Find the building that has the largest number of teacher members.
SQL: SELECT building FROM Faculty GROUP BY building ORDER BY count(*) DESC LIMIT 1
Database: activity_1
Question: Show all the buildings that have at least 10 professors.
Paraphrased question: Show all the buildings that have at least 10 professors.
SQL: SELECT building FROM Faculty WHERE rank  =  "Professor" GROUP BY building HAVING count(*)  >=  10
Database: activity_1
Question: In which buildings are there at least ten professors?
Paraphrased question: In which buildings are there at least ten professors?
SQL: SELECT building FROM Faculty WHERE rank  =  "Professor" GROUP BY building HAVING count(*)  >=  10
Database: activity_1
Question: For each faculty rank, show the number of faculty members who have it.
Paraphrased question: For each job title of teacher, show the number of teacher members who have it.
SQL: SELECT rank ,  count(*) FROM Faculty GROUP BY rank
Database: activity_1
Question: How many faculty members do we have for each faculty rank?
Paraphrased question: How many teacher members do we have for each job title of teacher?
SQL: SELECT rank ,  count(*) FROM Faculty GROUP BY rank
Database: activity_1
Question: Show all the ranks and the number of male and female faculty for each rank.
Paraphrased question: Show all the job title and the number of male and female teacher for each job title.
SQL: SELECT rank ,  sex ,  count(*) FROM Faculty GROUP BY rank ,  sex
Database: activity_1
Question: How many faculty members do we have for each rank and gender?
Paraphrased question: How many teacher members do we have for each job title and gender?
SQL: SELECT rank ,  sex ,  count(*) FROM Faculty GROUP BY rank ,  sex
Database: activity_1
Question: Which rank has the smallest number of faculty members?
Paraphrased question: Which job title has the smallest number of teacher members?
SQL: SELECT rank FROM Faculty GROUP BY rank ORDER BY count(*) ASC LIMIT 1
Database: activity_1
Question: Find the faculty rank that has the least members.
Paraphrased question: Find the job title of teacher that has the least members.
SQL: SELECT rank FROM Faculty GROUP BY rank ORDER BY count(*) ASC LIMIT 1
Database: activity_1
Question: Show the number of male and female assistant professors.
Paraphrased question: Show the number of male and female assistant professors.
SQL: SELECT sex ,  count(*) FROM Faculty WHERE rank  =  "AsstProf" GROUP BY sex
Database: activity_1
Question: How many male and female assistant professors do we have?
Paraphrased question: How many male and female assistant professors do we have?
SQL: SELECT sex ,  count(*) FROM Faculty WHERE rank  =  "AsstProf" GROUP BY sex
Database: activity_1
Question: What are the first name and last name of Linda Smith's advisor?
Paraphrased question: What are the forename and surname of Linda Smith's advisor?
SQL: SELECT T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor WHERE T2.fname  =  "Linda" AND T2.lname  =  "Smith"
Database: activity_1
Question: Who is the advisor of Linda Smith? Give me the first name and last name.
Paraphrased question: Who is the advisor of Linda Smith? Give me the full name.
SQL: SELECT T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor WHERE T2.fname  =  "Linda" AND T2.lname  =  "Smith"
Database: activity_1
Question: Show the ids of students whose advisors are professors.
Paraphrased question: Show the ids of students whose advisers are professors.
SQL: SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor WHERE T1.rank  =  "Professor"
Database: activity_1
Question: Which students have professors as their advisors? Find their student ids.
Paraphrased question: Which students have professors as their advisers? Find their student ids.
SQL: SELECT T2.StuID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor WHERE T1.rank  =  "Professor"
Database: activity_1
Question: Show first name and last name for all the students advised by Michael Goodrich.
Paraphrased question: Show forename and surname for all the students advised by Michael Goodrich.
SQL: SELECT T2.fname ,  T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor WHERE T1.fname  =  "Michael" AND T1.lname  =  "Goodrich"
Database: activity_1
Question: Which students are advised by Michael Goodrich? Give me their first and last names.
Paraphrased question: Which students are advised by Michael Goodrich? Give me their full names.
SQL: SELECT T2.fname ,  T2.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor WHERE T1.fname  =  "Michael" AND T1.lname  =  "Goodrich"
Database: activity_1
Question: Show the faculty id of each faculty member, along with the number of students he or she advises.
Paraphrased question: Show the teacher id of each teacher member, along with the number of students he or she advises.
SQL: SELECT T1.FacID ,  count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID
Database: activity_1
Question: What are the faculty id and the number of students each faculty has?
Paraphrased question: What are the teacher id and the number of students each teacher has?
SQL: SELECT T1.FacID ,  count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID
Database: activity_1
Question: Show all the faculty ranks and the number of students advised by each rank.
Paraphrased question: Show all the job title of teacher and the number of students advised by each job title.
SQL: SELECT T1.rank ,  count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.rank
Database: activity_1
Question: How many students are advised by each rank of faculty? List the rank and the number of students.
Paraphrased question: How many students are advised by each job title of faculty? List the job title and the number of students.
SQL: SELECT T1.rank ,  count(*) FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.rank
Database: activity_1
Question: What are the first and last name of the faculty who has the most students?
Paraphrased question: What are the forename and surname of the faculty who has the most students?
SQL: SELECT T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1
Database: activity_1
Question: Give me the the first and last name of the faculty who advises the most students.
Paraphrased question: Give me the the full name of the faculty who advises the most students.
SQL: SELECT T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1
Database: activity_1
Question: Show the ids for all the faculty members who have at least 2 students.
Paraphrased question: Show the ids for all the teacher members who have at least 2 students.
SQL: SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID HAVING count(*)  >=  2
Database: activity_1
Question: Which faculty members advise two ore more students? Give me their faculty ids.
Paraphrased question: Which teacher members advise two ore more students? Give me their teacher ids.
SQL: SELECT T1.FacID FROM Faculty AS T1 JOIN Student AS T2 ON T1.FacID  =  T2.advisor GROUP BY T1.FacID HAVING count(*)  >=  2
Database: activity_1
Question: Show ids for the faculty members who don't advise any student.
Paraphrased question: Show ids for the teacher members who don't advise any student.
SQL: SELECT FacID FROM Faculty EXCEPT SELECT advisor FROM Student
Database: activity_1
Question: What are the ids of the faculty members who do not advise any student.
Paraphrased question: What are the ids of the teacher members who do not advise any student.
SQL: SELECT FacID FROM Faculty EXCEPT SELECT advisor FROM Student
Database: activity_1
Question: What activities do we have?
Paraphrased question: What activities do we have?
SQL: SELECT activity_name FROM Activity
Database: activity_1
Question: List all the activities we have.
Paraphrased question: List all the activities we have.
SQL: SELECT activity_name FROM Activity
Database: activity_1
Question: How many activities do we have?
Paraphrased question: How many activities do we have?
SQL: SELECT count(*) FROM Activity
Database: activity_1
Question: Find the number of activities available.
Paraphrased question: Find the number of activities available.
SQL: SELECT count(*) FROM Activity
Database: activity_1
Question: How many faculty members participate in an activity?
Paraphrased question: How many teacher members participate in an activity?
SQL: SELECT count(DISTINCT FacID) FROM Faculty_participates_in
Database: activity_1
Question: Give me the number of faculty members who participate in an activity
Paraphrased question: Give me the number of teacher members who participate in an activity
SQL: SELECT count(DISTINCT FacID) FROM Faculty_participates_in
Database: activity_1
Question: Show the ids of the faculty who don't participate in any activity.
Paraphrased question: Show the ids of the teacher who don't participate in any activity.
SQL: SELECT FacID FROM Faculty EXCEPT SELECT FacID FROM Faculty_participates_in
Database: activity_1
Question: Which faculty do not participate in any activity? Find their faculty ids.
Paraphrased question: Which teacher do not participate in any activity? Find their teacher ids.
SQL: SELECT FacID FROM Faculty EXCEPT SELECT FacID FROM Faculty_participates_in
Database: activity_1
Question: Show the ids of all the faculty members who participate in an activity and advise a student.
Paraphrased question: Show the ids of all the teacher members who participate in an activity and advise a student.
SQL: SELECT FacID FROM Faculty_participates_in INTERSECT SELECT advisor FROM Student
Database: activity_1
Question: What are ids of the faculty members who not only participate in an activity but also advise a student.
Paraphrased question: What are ids of the teacher members who not only participate in an activity but also advise a student.
SQL: SELECT FacID FROM Faculty_participates_in INTERSECT SELECT advisor FROM Student
Database: activity_1
Question: How many activities does Mark Giuliano participate in?
Paraphrased question: How many activities does Mark Giuliano participate in?
SQL: SELECT count(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID WHERE T1.fname  =  "Mark" AND T1.lname  =  "Giuliano"
Database: activity_1
Question: Find the number of activities Mark Giuliano is involved in.
Paraphrased question: Find the number of activities Mark Giuliano is involved in.
SQL: SELECT count(*) FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID WHERE T1.fname  =  "Mark" AND T1.lname  =  "Giuliano"
Database: activity_1
Question: Show the names of all the activities Mark Giuliano participates in.
Paraphrased question: Show the names of all the activities Mark Giuliano participates in.
SQL: SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN Activity AS T3 ON T3.actid  =  T2.actid WHERE T1.fname  =  "Mark" AND T1.lname  =  "Giuliano"
Database: activity_1
Question: What are the names of the activities Mark Giuliano is involved in
Paraphrased question: What are the names of the activities Mark Giuliano is involved in
SQL: SELECT T3.activity_name FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN Activity AS T3 ON T3.actid  =  T2.actid WHERE T1.fname  =  "Mark" AND T1.lname  =  "Giuliano"
Database: activity_1
Question: Show the first and last name of all the faculty members who participated in some activity, together with the number of activities they participated in.
Paraphrased question: Show the full name of all the teacher members who participated in some activity, together with the number of activities they participated in.
SQL: SELECT  T1.fname ,  T1.lname ,  count(*) ,  T1.FacID FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID GROUP BY T1.FacID
Database: activity_1
Question: What is the first and last name of the faculty members who participated in at least one activity? For each of them, also show the number of activities they participated in.
Paraphrased question: What is the forename and surname of the faculty members who participated in at least one activity? For each of them, also show the number of activities they participated in.
SQL: SELECT  T1.fname ,  T1.lname ,  count(*) ,  T1.FacID FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID GROUP BY T1.FacID
Database: activity_1
Question: Show all the activity names and the number of faculty involved in each activity.
Paraphrased question: Show all the activity names and the number of teacher involved in each activity.
SQL: SELECT T1.activity_name ,  count(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID
Database: activity_1
Question: How many faculty members participate in each activity? Return the activity names and the number of faculty members.
Paraphrased question: How many teacher members participate in each activity? Return the activity names and the number of teacher members.
SQL: SELECT T1.activity_name ,  count(*) FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID
Database: activity_1
Question: What is the first and last name of the faculty participating in the most activities?
Paraphrased question: What is the full name of the faculty participating in the most activities?
SQL: SELECT  T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1
Database: activity_1
Question: Find the first and last name of the faculty who is involved in the largest number of activities.
Paraphrased question: Find the forename and family name of the faculty who is involved in the largest number of activities.
SQL: SELECT  T1.fname ,  T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID GROUP BY T1.FacID ORDER BY count(*) DESC LIMIT 1
Database: activity_1
Question: What is the name of the activity that has the most faculty members involved in?
Paraphrased question: What is the name of the activity that has the most teacher members involved in?
SQL: SELECT T1.activity_name FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1
Database: activity_1
Question: Which activity has the most faculty members participating in? Find the activity name.
Paraphrased question: Which activity has the most teacher members participating in? Find the activity name.
SQL: SELECT T1.activity_name FROM Activity AS T1 JOIN Faculty_participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1
Database: activity_1
Question: Show the ids of the students who don't participate in any activity.
Paraphrased question: Show the ids of the students who don't participate in any activity.
SQL: SELECT StuID FROM Student EXCEPT SELECT StuID FROM Participates_in
Database: activity_1
Question: What are the ids of the students who are not involved in any activity
Paraphrased question: What are the ids of the students who are not involved in any activity
SQL: SELECT StuID FROM Student EXCEPT SELECT StuID FROM Participates_in
Database: activity_1
Question: Show the ids for all the students who participate in an activity and are under 20.
Paraphrased question: Show the ids for all the students who participate in an activity and are under 20.
SQL: SELECT StuID FROM Participates_in INTERSECT SELECT StuID FROM Student WHERE age  <  20
Database: activity_1
Question: What are the ids of the students who are under 20 years old and are involved in at least one activity.
Paraphrased question: What are the ids of the students who are under 20 years old and are involved in at least one activity.
SQL: SELECT StuID FROM Participates_in INTERSECT SELECT StuID FROM Student WHERE age  <  20
Database: activity_1
Question: What is the first and last name of the student participating in the most activities?
Paraphrased question: What is the forename and family name of the student participating in the most activities?
SQL: SELECT T1.fname ,  T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID  =  T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC LIMIT 1
Database: activity_1
Question: Tell me the first and last name of the student who has the most activities.
Paraphrased question: Tell me the full name of the student who has the most activities.
SQL: SELECT T1.fname ,  T1.lname FROM Student AS T1 JOIN Participates_in AS T2 ON T1.StuID  =  T2.StuID GROUP BY T1.StuID ORDER BY count(*) DESC LIMIT 1
Database: activity_1
Question: What is the name of the activity with the most students?
Paraphrased question: What is the name of the activity with the most students?
SQL: SELECT T1.activity_name FROM Activity AS T1 JOIN Participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1
Database: activity_1
Question: Find the name of the activity that has the largest number of student participants.
Paraphrased question: Find the name of the activity that has the largest number of student participants.
SQL: SELECT T1.activity_name FROM Activity AS T1 JOIN Participates_in AS T2 ON T1.actID  =  T2.actID GROUP BY T1.actID ORDER BY count(*) DESC LIMIT 1
Database: activity_1
Question: Find the first names of the faculty members who are playing Canoeing or Kayaking.
Paraphrased question: Find the forenames of the faculty members who are playing Canoeing or Kayaking.
SQL: SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' OR T3.activity_name  =  'Kayaking'
Database: activity_1
Question: Which faculty members are playing either Canoeing or Kayaking? Tell me their first names.
Paraphrased question: Which teacher members are playing either Canoeing or Kayaking? Tell me their forenames.
SQL: SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' OR T3.activity_name  =  'Kayaking'
Database: activity_1
Question: Find the first names of professors who are not playing Canoeing or Kayaking.
Paraphrased question: Find the forenames of professors who are not playing Canoeing or Kayaking.
SQL: SELECT lname FROM faculty WHERE rank  =  'Professor' EXCEPT SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' OR T3.activity_name  =  'Kayaking'
Database: activity_1
Question: What are the first names of the professors who do not play Canoeing or Kayaking as activities?
Paraphrased question: What are the forenames of the professors who do not play Canoeing or Kayaking as activities?
SQL: SELECT lname FROM faculty WHERE rank  =  'Professor' EXCEPT SELECT DISTINCT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' OR T3.activity_name  =  'Kayaking'
Database: activity_1
Question: Find the first names of the faculty members who participate in Canoeing and Kayaking.
Paraphrased question: Find the forenames of the faculty members who participate in Canoeing and Kayaking.
SQL: SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' INTERSECT SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Kayaking'
Database: activity_1
Question: What are the first names of the faculty members playing both Canoeing and Kayaking?
Paraphrased question: What are the forenames of the faculty members playing both Canoeing and Kayaking?
SQL: SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Canoeing' INTERSECT SELECT T1.lname FROM Faculty AS T1 JOIN Faculty_participates_in AS T2 ON T1.facID  =  T2.facID JOIN activity AS T3 ON T2.actid  =  T2.actid WHERE T3.activity_name  =  'Kayaking'
Database: activity_1
Question: Find the ids of the students who participate in Canoeing and Kayaking.
Paraphrased question: Find the ids of the students who participate in Canoeing and Kayaking.
SQL: SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid  =  T2.actid WHERE T2.activity_name  =  'Canoeing' INTERSECT SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid  =  T2.actid WHERE T2.activity_name  =  'Kayaking'
Database: activity_1
Question: Which students participate in both Canoeing and Kayaking as their activities? Tell me their student ids.
Paraphrased question: Which students participate in both Canoeing and Kayaking as their activities? Tell me their student ids.
SQL: SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid  =  T2.actid WHERE T2.activity_name  =  'Canoeing' INTERSECT SELECT T1.stuid FROM participates_in AS T1 JOIN activity AS T2 ON T2.actid  =  T2.actid WHERE T2.activity_name  =  'Kayaking'
Database: flight_4
Question: Find the name of the airport in the city of Goroka.
Paraphrased question: Find the name of the aerodrome in the city of Goroka.
SQL: SELECT name FROM airports WHERE city  =  'Goroka'
Database: flight_4
Question: What are the names of the airports in the city of Goroka?
Paraphrased question: What are the names of the aerodromes in the city of Goroka?
SQL: SELECT name FROM airports WHERE city  =  'Goroka'
Database: flight_4
Question: Find the name, city, country, and altitude (or elevation) of the airports in the city of New York.
Paraphrased question: Find the name, city, nation, and altitude (or elevation) of the aerodromes in the city of New York.
SQL: SELECT name ,  city ,  country ,  elevation FROM airports WHERE city  =  'New York'
Database: flight_4
Question: What is the name, city, country, and elevation for every airport in the city of New York?
Paraphrased question: What is the name, city, nation, and altitude for every aerodrome in the city of New York?
SQL: SELECT name ,  city ,  country ,  elevation FROM airports WHERE city  =  'New York'
Database: flight_4
Question: How many airlines are there?
Paraphrased question: How many airlines are there?
SQL: SELECT count(*) FROM airlines
Database: flight_4
Question: What is the total number of airlines?
Paraphrased question: What is the total number of airlines?
SQL: SELECT count(*) FROM airlines
Database: flight_4
Question: How many airlines does Russia has?
Paraphrased question: How many airlines does Russia has?
SQL: SELECT count(*) FROM airlines WHERE country  =  'Russia'
Database: flight_4
Question: What is the number of airlines based in Russia?
Paraphrased question: What is the number of airlines based in Russia?
SQL: SELECT count(*) FROM airlines WHERE country  =  'Russia'
Database: flight_4
Question: What is the maximum elevation of all airports in the country of Iceland?
Paraphrased question: What is the maximum altitude of all aerodromes in the country of Iceland?
SQL: SELECT max(elevation) FROM airports WHERE country  =  'Iceland'
Database: flight_4
Question: What is the highest elevation of an airport in the country of Iceland?
Paraphrased question: What is the highest altitude of an aerodrome in the country of Iceland?
SQL: SELECT max(elevation) FROM airports WHERE country  =  'Iceland'
Database: flight_4
Question: Find the name of the airports located in Cuba or Argentina.
Paraphrased question: Find the name of the aerodromes located in Cuba or Argentina.
SQL: SELECT name FROM airports WHERE country  =  'Cuba' OR country  =  'Argentina'
Database: flight_4
Question: What are the names of all airports in Cuba or Argentina?
Paraphrased question: What are the names of all aerodromes in Cuba or Argentina?
SQL: SELECT name FROM airports WHERE country  =  'Cuba' OR country  =  'Argentina'
Database: flight_4
Question: Find the country of the airlines whose name starts with 'Orbit'.
Paraphrased question: Find the nation of the airlines whose name starts with 'Orbit'.
SQL: SELECT country FROM airlines WHERE name LIKE 'Orbit%'
Database: flight_4
Question: What are the countries of all airlines whose names start with Orbit?
Paraphrased question: What are the nations of all airlines whose names start with Orbit?
SQL: SELECT country FROM airlines WHERE name LIKE 'Orbit%'
Database: flight_4
Question: Find the name of airports whose altitude is between -50 and 50.
Paraphrased question: Find the name of aerodromes whose altitude is between -50 and 50.
SQL: SELECT name FROM airports WHERE elevation BETWEEN -50 AND 50
Database: flight_4
Question: What are the names of all airports whose elevation is between -50 and 50?
Paraphrased question: What are the names of all aerodromes whose altitude is between -50 and 50?
SQL: SELECT name FROM airports WHERE elevation BETWEEN -50 AND 50
Database: flight_4
Question: Which country is the airport that has the highest altitude located in?
Paraphrased question: Which nation is the aerodrome that has the highest altitude located in?
SQL: SELECT country FROM airports ORDER BY elevation DESC LIMIT 1
Database: flight_4
Question: What is the country of the airport with the highest elevation?
Paraphrased question: What is the nation of the aerodrome with the highest altitude?
SQL: SELECT country FROM airports ORDER BY elevation DESC LIMIT 1
Database: flight_4
Question: Find the number of airports whose name contain the word 'International'.
Paraphrased question: Find the number of aerodromes whose name contain the word 'International'.
SQL: SELECT count(*) FROM airports WHERE name LIKE '%International%'
Database: flight_4
Question: How many airports' names have the word Interanation in them?
Paraphrased question: How many aerodromes' names have the word Interanation in them?
SQL: SELECT count(*) FROM airports WHERE name LIKE '%International%'
Database: flight_4
Question: How many different cities do have some airport in the country of Greenland?
Paraphrased question: How many different cities do have some aerodrome in the country of Greenland?
SQL: SELECT count(DISTINCT city) FROM airports WHERE country  =  'Greenland'
Database: flight_4
Question: In how many cities are there airports in the country of Greenland?
Paraphrased question: In how many cities are there aerodromes in the country of Greenland?
SQL: SELECT count(DISTINCT city) FROM airports WHERE country  =  'Greenland'
Database: flight_4
Question: Find the number of routes operated by American Airlines.
Paraphrased question: Find the number of paths operated by American Airlines.
SQL: SELECT count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid WHERE T1.name  =  'American Airlines'
Database: flight_4
Question: How many routes does American Airlines operate?
Paraphrased question: How many paths does American Airlines operate?
SQL: SELECT count(*) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid WHERE T1.name  =  'American Airlines'
Database: flight_4
Question: Find the number of routes whose destination airports are in Canada.
Paraphrased question: Find the number of routes whose terminal aerodromes are in Canada.
SQL: SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.dst_apid WHERE country  =  'Canada'
Database: flight_4
Question: How many routes end in a Canadian airport?
Paraphrased question: How many paths end in a Canadian aerodrome?
SQL: SELECT count(*) FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.dst_apid WHERE country  =  'Canada'
Database: flight_4
Question: Find the name, city, and country of the airport that has the lowest altitude.
Paraphrased question: Find the name, city, and nation of the aerodrome that has the lowest altitude.
SQL: SELECT name ,  city ,  country FROM airports ORDER BY elevation LIMIT 1
Database: flight_4
Question: What is the name, city, and country of the airport with the lowest altitude?
Paraphrased question: What is the name, city, and nation of the aerodrome with the lowest altitude?
SQL: SELECT name ,  city ,  country FROM airports ORDER BY elevation LIMIT 1
Database: flight_4
Question: Find the name, city, and country of the airport that has the highest latitude.
Paraphrased question: Find the name, city, and nation of the aerodrome that has the highest latitude.
SQL: SELECT name ,  city ,  country FROM airports ORDER BY elevation DESC LIMIT 1
Database: flight_4
Question: What is the name, city, and country of the airport with the highest elevation?
Paraphrased question: What is the name, city, and nation of the aerodrome with the highest elevation?
SQL: SELECT name ,  city ,  country FROM airports ORDER BY elevation DESC LIMIT 1
Database: flight_4
Question: Find the name and city of the airport which is the destination of the most number of routes.
Paraphrased question: Find the name and city of the aerodrome which is the destination of the most number of routes.
SQL: SELECT T1.name ,  T1.city ,  T2.dst_apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.dst_apid GROUP BY T2.dst_apid ORDER BY count(*) DESC LIMIT 1
Database: flight_4
Question: What is the name and city of the airport that the most routes end at?
Paraphrased question: What is the name and city of the aerodrome that the most routes end at?
SQL: SELECT T1.name ,  T1.city ,  T2.dst_apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.dst_apid GROUP BY T2.dst_apid ORDER BY count(*) DESC LIMIT 1
Database: flight_4
Question: Find the names of the top 10 airlines that operate the most number of routes.
Paraphrased question: Find the names of the top 10 airlines that operate the most number of paths.
SQL: SELECT T1.name ,  T2.alid FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid GROUP BY T2.alid ORDER BY count(*) DESC LIMIT 10
Database: flight_4
Question: For the airline ids with the top 10 most routes operated, what are their names?
Paraphrased question: For the airline ids with the top 10 most routes operated, what are their names?
SQL: SELECT T1.name ,  T2.alid FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid GROUP BY T2.alid ORDER BY count(*) DESC LIMIT 10
Database: flight_4
Question: Find the name and city of the airport which is the source for the most number of flight routes.
Paraphrased question: Find the name and city of the aerodrome which is the source for the most number of flight routes.
SQL: SELECT T1.name ,  T1.city ,  T2.src_apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.src_apid GROUP BY T2.src_apid ORDER BY count(*) DESC LIMIT 1
Database: flight_4
Question: What is the name and city of the airport from most of the routes start?
Paraphrased question: What is the name and city of the aerodrome from most of the routes start?
SQL: SELECT T1.name ,  T1.city ,  T2.src_apid FROM airports AS T1 JOIN routes AS T2 ON T1.apid  =  T2.src_apid GROUP BY T2.src_apid ORDER BY count(*) DESC LIMIT 1
Database: flight_4
Question: Find the number of different airports which are the destinations of the American Airlines.
Paraphrased question: Find the number of different aerodromes which are the destinations of the American Airlines.
SQL: SELECT count(DISTINCT dst_apid) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid WHERE T1.name  =  'American Airlines'
Database: flight_4
Question: What is the number of different different airports that are destinations for American Airlines?
Paraphrased question: What is the number of different different aerodromes that are destinations for American Airlines?
SQL: SELECT count(DISTINCT dst_apid) FROM airlines AS T1 JOIN routes AS T2 ON T1.alid  =  T2.alid WHERE T1.name  =  'American Airlines'
Database: flight_4
Question: Which countries has the most number of airlines?
Paraphrased question: Which nations has the most number of airlines?
SQL: SELECT country FROM airlines GROUP BY country ORDER BY count(*) DESC LIMIT 1
Database: flight_4
Question: What is the name of the country with the most number of home airlines?
Paraphrased question: What is the name of the nation with the most number of home airlines?
SQL: SELECT country FROM airlines GROUP BY country ORDER BY count(*) DESC LIMIT 1