aherntech/spider-syn huggingface dataset:
Database: dorm_1
Question: What are the first names of all students in Smith Hall?
Paraphrased question: What are the forenames of all students in Smith Hall?
SQL: SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid WHERE T3.dorm_name  =  'Smith Hall'
Database: dorm_1
Question: Find the average age of students who are living in the dorm with the largest capacity.
Paraphrased question: Find the average age of students who are living in the dormitory with the largest capacity.
SQL: SELECT avg(T1.age) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid WHERE T3.student_capacity  =  (SELECT max(student_capacity) FROM dorm)
Database: dorm_1
Question: What is the average age of students who are living in the dorm with the largest capacity?
Paraphrased question: What is the average age of students who are living in the dormitory with the largest capacity?
SQL: SELECT avg(T1.age) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid WHERE T3.student_capacity  =  (SELECT max(student_capacity) FROM dorm)
Database: dorm_1
Question: Find the total number of students living in the male dorm (with gender M).
Paraphrased question: Find the total number of students living in the male dorm (with gender M).
SQL: SELECT count(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid WHERE T3.gender  =  'M'
Database: dorm_1
Question: What are the total number of students who are living in a male dorm?
Paraphrased question: What are the total number of students who are living in a male dorm?
SQL: SELECT count(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid WHERE T3.gender  =  'M'
Database: dorm_1
Question: Find the number of female students (with F sex) living in Smith Hall
Paraphrased question: Find the number of female students (with F sex) living in Smith Hall
SQL: SELECT count(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid WHERE T3.dorm_name  =  'Smith Hall' AND T1.sex  =  'F'
Database: dorm_1
Question: How many female students live in Smith Hall?
Paraphrased question: How many female students live in Smith Hall?
SQL: SELECT count(*) FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid JOIN dorm AS T3 ON T3.dormid  =  T2.dormid WHERE T3.dorm_name  =  'Smith Hall' AND T1.sex  =  'F'
Database: dorm_1
Question: Find the name of amenities Smith Hall dorm have.
Paraphrased question: Find the name of amenities Smith Hall dorm have.
SQL: SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T1.dorm_name  =  'Smith Hall'
Database: dorm_1
Question: What are the names of the amenities that Smith Hall has?
Paraphrased question: What are the names of the amenities that Smith Hall has?
SQL: SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T1.dorm_name  =  'Smith Hall'
Database: dorm_1
Question: Find the name of amenities Smith Hall dorm have. ordered the results by amenity names.
Paraphrased question: Find the name of amenities Smith Hall dorm have. ordered the results by amenity names.
SQL: SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T1.dorm_name  =  'Smith Hall' ORDER BY T3.amenity_name
Database: dorm_1
Question: What amenities does Smith Hall have in alphabetical order?
Paraphrased question: What amenities does Smith Hall have in alphabetical order?
SQL: SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T1.dorm_name  =  'Smith Hall' ORDER BY T3.amenity_name
Database: dorm_1
Question: Find the name of amenity that is most common in all dorms.
Paraphrased question: Find the name of amenity that is most common in all dormitories.
SQL: SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T1.amenid  =  T2.amenid GROUP BY T2.amenid ORDER BY count(*) DESC LIMIT 1
Database: dorm_1
Question: What is the most common amenity in the dorms?
Paraphrased question: What is the most common amenity in the dormitories?
SQL: SELECT T1.amenity_name FROM dorm_amenity AS T1 JOIN has_amenity AS T2 ON T1.amenid  =  T2.amenid GROUP BY T2.amenid ORDER BY count(*) DESC LIMIT 1
Database: dorm_1
Question: Find the first name of students who are living in the dorm that has most number of amenities.
Paraphrased question: Find the forename of students who are living in the dorm that has most number of amenities.
SQL: SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid WHERE T2.dormid IN (SELECT T2.dormid FROM dorm AS T3 JOIN has_amenity AS T4 ON T3.dormid  =  T4.dormid JOIN dorm_amenity AS T5 ON T4.amenid  =  T5.amenid GROUP BY T3.dormid ORDER BY count(*) DESC LIMIT 1)
Database: dorm_1
Question: What are the first names of all students who live in the dorm with the most amenities?
Paraphrased question: What are the forenames of all students who live in the dorm with the most amenities?
SQL: SELECT T1.fname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid WHERE T2.dormid IN (SELECT T2.dormid FROM dorm AS T3 JOIN has_amenity AS T4 ON T3.dormid  =  T4.dormid JOIN dorm_amenity AS T5 ON T4.amenid  =  T5.amenid GROUP BY T3.dormid ORDER BY count(*) DESC LIMIT 1)
Database: dorm_1
Question: Find the name and capacity of the dorm with least number of amenities.
Paraphrased question: Find the name and capacity of the dormitory with least number of amenities.
SQL: SELECT T1.dorm_name ,  T1.student_capacity FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid GROUP BY T2.dormid ORDER BY count(*) LIMIT 1
Database: dorm_1
Question: What is the name and capacity of the dorm with the fewest amount of amenities?
Paraphrased question: What is the name and capacity of the dormitory with the fewest amount of amenities?
SQL: SELECT T1.dorm_name ,  T1.student_capacity FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid GROUP BY T2.dormid ORDER BY count(*) LIMIT 1
Database: dorm_1
Question: Find the name of dorms that do not have amenity TV Lounge.
Paraphrased question: Find the name of dormitories that do not have amenity TV Lounge.
SQL: SELECT dorm_name FROM dorm EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T3.amenity_name  =  'TV Lounge'
Database: dorm_1
Question: What are the names of the dorm that does not have a TV Lounge?
Paraphrased question: What are the names of the dormitory that does not have a TV Lounge?
SQL: SELECT dorm_name FROM dorm EXCEPT SELECT T1.dorm_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid WHERE T3.amenity_name  =  'TV Lounge'
Database: dorm_1
Question: Find the first and last name of students who are living in the dorms that have amenity TV Lounge.
Paraphrased question: Find the full name of students who are living in the dorms that have amenity TV Lounge.
SQL: SELECT T1.fname ,  T1.lname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid WHERE T2.dormid IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid  =  T4.amenid WHERE T4.amenity_name  =  'TV Lounge')
Database: dorm_1
Question: What are the first and last names of all students who are living in a dorm with a TV Lounge?
Paraphrased question: What are the forename and family names of all students who are living in a dorm with a TV Lounge?
SQL: SELECT T1.fname ,  T1.lname FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid WHERE T2.dormid IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid  =  T4.amenid WHERE T4.amenity_name  =  'TV Lounge')
Database: dorm_1
Question: Find the first name and age of students who are living in the dorms that do not have amenity TV Lounge.
Paraphrased question: Find the forename and age of students who are living in the dorms that do not have amenity TV Lounge.
SQL: SELECT T1.fname ,  T1.age FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid WHERE T2.dormid NOT IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid  =  T4.amenid WHERE T4.amenity_name  =  'TV Lounge')
Database: dorm_1
Question: What is the first name and age of every student who lives in a dorm with a TV Lounge?
Paraphrased question: What is the forename and age of every student who lives in a dorm with a TV Lounge?
SQL: SELECT T1.fname ,  T1.age FROM student AS T1 JOIN lives_in AS T2 ON T1.stuid  =  T2.stuid WHERE T2.dormid NOT IN (SELECT T3.dormid FROM has_amenity AS T3 JOIN dorm_amenity AS T4 ON T3.amenid  =  T4.amenid WHERE T4.amenity_name  =  'TV Lounge')
Database: dorm_1
Question: Find the name of amenities of the dorm where the student with last name Smith is living in.
Paraphrased question: Find the name of amenities of the dormitory where the student with last name Smith is living in.
SQL: SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid JOIN lives_in AS T4 ON T4.dormid  =  T1.dormid JOIN student AS T5 ON T5.stuid  =  T4.stuid WHERE T5.lname  =  'Smith'
Database: dorm_1
Question: What are the amenities in the dorm that a student who has the last name of Smith lives in?
Paraphrased question: What are the amenities in the dormitory that a student who has the last name of Smith lives in?
SQL: SELECT T3.amenity_name FROM dorm AS T1 JOIN has_amenity AS T2 ON T1.dormid  =  T2.dormid JOIN dorm_amenity AS T3 ON T2.amenid  =  T3.amenid JOIN lives_in AS T4 ON T4.dormid  =  T1.dormid JOIN student AS T5 ON T5.stuid  =  T4.stuid WHERE T5.lname  =  'Smith'
Database: customer_complaints
Question: How many customers are there?
Paraphrased question: How many clients are there?
SQL: SELECT count(*) FROM customers
Database: customer_complaints
Question: Count the number of customers.
Paraphrased question: Count the number of clients.
SQL: SELECT count(*) FROM customers
Database: customer_complaints
Question: Find the emails and phone numbers of all the customers, ordered by email address and phone number.
Paraphrased question: Find the emails and telephone numbers of all the clients, ordered by email address and telephone number.
SQL: SELECT email_address ,  phone_number FROM customers ORDER BY email_address ,  phone_number
Database: customer_complaints
Question: What are the emails and phone numbers of all customers, sorted by email address and phone number?
Paraphrased question: What are the emails and telephone numbers of all clients, sorted by email address and telephone number?
SQL: SELECT email_address ,  phone_number FROM customers ORDER BY email_address ,  phone_number
Database: customer_complaints
Question: Which city has the least number of customers whose type code is "Good Credit Rating"?
Paraphrased question: Which city has the least number of clients whose type code is "Good Credit Rating"?
SQL: SELECT town_city FROM customers WHERE customer_type_code  =  "Good Credit Rating" GROUP BY town_city ORDER BY count(*) LIMIT 1
Database: customer_complaints
Question: Return the city with the customer type code "Good Credit Rating" that had the fewest customers.
Paraphrased question: Return the city with the client type code "Good Credit Rating" that had the fewest clients.
SQL: SELECT town_city FROM customers WHERE customer_type_code  =  "Good Credit Rating" GROUP BY town_city ORDER BY count(*) LIMIT 1
Database: customer_complaints
Question: List the name of all products along with the number of complaints that they have received.
Paraphrased question: List the name of all goods along with the number of complaints that they have received.
SQL: SELECT t1.product_name ,  count(*) FROM products AS t1 JOIN complaints AS t2 ON t1.product_id  =  t2.product_id GROUP BY t1.product_name
Database: customer_complaints
Question: What are all the different product names, and how many complains has each received?
Paraphrased question: What are all the different goods names, and how many complains has each received?
SQL: SELECT t1.product_name ,  count(*) FROM products AS t1 JOIN complaints AS t2 ON t1.product_id  =  t2.product_id GROUP BY t1.product_name
Database: customer_complaints
Question: Find the emails of customers who has filed a complaints of the product with the most complaints.
Paraphrased question: Find the emails of clients who has filed a complaints of the goods with the most complaints.
SQL: SELECT t1.email_address FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_id ORDER BY count(*) LIMIT 1
Database: customer_complaints
Question: What are the emails of customers who have filed complaints on the product which has had the greatest number of complaints?
Paraphrased question: What are the emails of clients who have filed complaints on the goods which has had the greatest number of complaints?
SQL: SELECT t1.email_address FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id  =  t2.customer_id GROUP BY t1.customer_id ORDER BY count(*) LIMIT 1
Database: customer_complaints
Question: Which products has been complained by the customer who has filed least amount of complaints?
Paraphrased question: Which goods has been complained by the customer who has filed least amount of complaints?
SQL: SELECT DISTINCT t1.product_name FROM products AS t1 JOIN complaints AS t2 ON t1.product_id  =  t2.product_id JOIN customers AS t3 GROUP BY t3.customer_id ORDER BY count(*) LIMIT 1
Database: customer_complaints
Question: Return the names of products that have had complaints filed by the customer who has filed the fewest complaints.
Paraphrased question: Return the names of goods that have had complaints filed by the customer who has filed the fewest complaints.
SQL: SELECT DISTINCT t1.product_name FROM products AS t1 JOIN complaints AS t2 ON t1.product_id  =  t2.product_id JOIN customers AS t3 GROUP BY t3.customer_id ORDER BY count(*) LIMIT 1
Database: customer_complaints
Question: What is the phone number of the customer who has filed the most recent complaint?
Paraphrased question: What is the telephone number of the client who has filed the most recent complaint?
SQL: SELECT t1.phone_number FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id  =  t2.customer_id ORDER BY t2.date_complaint_raised DESC LIMIT 1
Database: customer_complaints
Question: Return the phone number of the customer who filed the complaint that was raised most recently.
Paraphrased question: Return the telephone number of the client who filed the complaint that was raised most recently.
SQL: SELECT t1.phone_number FROM customers AS t1 JOIN complaints AS t2 ON t1.customer_id  =  t2.customer_id ORDER BY t2.date_complaint_raised DESC LIMIT 1
Database: customer_complaints
Question: Find the email and phone number of the customers who have never filed a complaint before.
Paraphrased question: Find the email and telephone number of the clients who have never filed a complaint before.
SQL: SELECT email_address ,  phone_number FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM complaints)
Database: customer_complaints
Question: What are the emails and phone numbers of custoemrs who have never filed a complaint?
Paraphrased question: What are the emails and telephone numbers of clients who have never filed a complaint?
SQL: SELECT email_address ,  phone_number FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM complaints)
Database: customer_complaints
Question: Find the phone number of all the customers and staff.
Paraphrased question: Find the telephone number of all the clients and staff.
SQL: SELECT phone_number FROM customers UNION SELECT phone_number FROM staff
Database: customer_complaints
Question: What are the phone numbers of all customers and all staff members?
Paraphrased question: What are the telephone numbers of all clients and all staff members?
SQL: SELECT phone_number FROM customers UNION SELECT phone_number FROM staff
Database: customer_complaints
Question: What is the description of the product named "Chocolate"?
Paraphrased question: What is the describing content of the goods named "Chocolate"?
SQL: SELECT product_description FROM products WHERE product_name  =  "Chocolate"
Database: customer_complaints
Question: Return the description of the product called "Chocolate".
Paraphrased question: Return the describing content of the goods called "Chocolate".
SQL: SELECT product_description FROM products WHERE product_name  =  "Chocolate"
Database: customer_complaints
Question: Find the name and category of the most expensive product.
Paraphrased question: Find the name and type of the most expensive goods.
SQL: SELECT product_name ,  product_category_code FROM products ORDER BY product_price DESC LIMIT 1
Database: customer_complaints
Question: What is the name and category code of the product with the highest price?
Paraphrased question: What is the name and type code of the goods with the highest price?
SQL: SELECT product_name ,  product_category_code FROM products ORDER BY product_price DESC LIMIT 1
Database: customer_complaints
Question: Find the prices of products which has never received a single complaint.
Paraphrased question: Find the prices of goods which has never received a single complaint.
SQL: SELECT product_price FROM products WHERE product_id NOT IN (SELECT product_id FROM complaints)
Database: customer_complaints
Question: What are the prices of products that have never gotten a complaint?
Paraphrased question: What are the prices of goods that have never gotten a complaint?
SQL: SELECT product_price FROM products WHERE product_id NOT IN (SELECT product_id FROM complaints)
Database: customer_complaints
Question: What is the average price of the products for each category?
Paraphrased question: What is the average price of the goods for each type?
SQL: SELECT avg(product_price) ,  product_category_code FROM products GROUP BY product_category_code
Database: customer_complaints
Question: Return the average price of products that have each category code.
Paraphrased question: Return the average price of goods that have each type code.
SQL: SELECT avg(product_price) ,  product_category_code FROM products GROUP BY product_category_code
Database: customer_complaints
Question: Find the last name of the staff member who processed the complaint of the cheapest product.
Paraphrased question: Find the family name of the staff member who processed the complaint of the cheapest goods.
SQL: SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id  =  t2.staff_id JOIN products AS t3 ON t2.product_id  =  t3.product_id ORDER BY t3.product_price LIMIT 1
Database: customer_complaints
Question: What is the last name of the staff member in charge of the complaint on the product with the lowest price?
Paraphrased question: What is the family name of the staff member in charge of the complaint on the goods with the lowest price?
SQL: SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id  =  t2.staff_id JOIN products AS t3 ON t2.product_id  =  t3.product_id ORDER BY t3.product_price LIMIT 1
Database: customer_complaints
Question: Which complaint status has more than 3 records on file?
Paraphrased question: Which complain status has more than 3 records on file?
SQL: SELECT complaint_status_code FROM complaints GROUP BY complaint_status_code HAVING count(*)  >  3
Database: customer_complaints
Question: Return complaint status codes have more than 3 corresponding complaints?
Paraphrased question: Return complain status codes have more than 3 corresponding complain?
SQL: SELECT complaint_status_code FROM complaints GROUP BY complaint_status_code HAVING count(*)  >  3
Database: customer_complaints
Question: Find the last name of the staff whose email address contains "wrau".
Paraphrased question: Find the family name of the staff whose email address contains "wrau".
SQL: SELECT last_name FROM staff WHERE email_address LIKE "%wrau%"
Database: customer_complaints
Question: What are the last names of staff with email addressed containing the substring "wrau"?
Paraphrased question: What are the family names of staff with email addressed containing the substring "wrau"?
SQL: SELECT last_name FROM staff WHERE email_address LIKE "%wrau%"
Database: customer_complaints
Question: How many customers are there in the customer type with the most customers?
Paraphrased question: How many clients are there in the client type with the most clients?
SQL: SELECT count(*) FROM customers GROUP BY customer_type_code ORDER BY count(*) DESC LIMIT 1
Database: customer_complaints
Question: Count the number of customers that have the customer type that is most common.
Paraphrased question: Count the number of clients that have the client type that is most common.
SQL: SELECT count(*) FROM customers GROUP BY customer_type_code ORDER BY count(*) DESC LIMIT 1
Database: customer_complaints
Question: What is the last name of the staff who has handled the first ever complaint?
Paraphrased question: What is the family name of the staff who has handled the first ever complaint?
SQL: SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id  =  t2.staff_id ORDER BY t2.date_complaint_raised LIMIT 1
Database: customer_complaints
Question: Return the last name of the staff member who handled the complaint with the earliest date raised.
Paraphrased question: Return the surname of the staff member who handled the complaint with the earliest date raised.
SQL: SELECT t1.last_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id  =  t2.staff_id ORDER BY t2.date_complaint_raised LIMIT 1
Database: customer_complaints
Question: How many distinct complaint type codes are there in the database?
Paraphrased question: How many different complain type codes are there in the database?
SQL: SELECT count(DISTINCT complaint_type_code) FROM complaints
Database: customer_complaints
Question: Count the number of different complaint type codes.
Paraphrased question: Count the number of different complain type codes.
SQL: SELECT count(DISTINCT complaint_type_code) FROM complaints
Database: customer_complaints
Question: Find the address line 1 and 2 of the customer with email "vbogisich@example.org".
Paraphrased question: Find the location line 1 and 2 of the customer with email "vbogisich@example.org".
SQL: SELECT address_line_1 ,  address_line_2 FROM customers WHERE email_address  =  "vbogisich@example.org"
Database: customer_complaints
Question: What are lines 1 and 2 of the addressed of the customer with the email "vbogisich@example.org"?
Paraphrased question: What are lines 1 and 2 of the addressed of the client with the email "vbogisich@example.org"?
SQL: SELECT address_line_1 ,  address_line_2 FROM customers WHERE email_address  =  "vbogisich@example.org"
Database: customer_complaints
Question: Find the number of complaints with Product Failure type for each complaint status.
Paraphrased question: Find the number of complain with Product Failure type for each complaint status.
SQL: SELECT complaint_status_code ,  count(*) FROM complaints WHERE complaint_type_code  =  "Product Failure" GROUP BY complaint_status_code
Database: customer_complaints
Question: Of complaints with the type code "Product Failure", how many had each different status code?
Paraphrased question: Of complain with the type code "Product Failure", how many had each different status code?
SQL: SELECT complaint_status_code ,  count(*) FROM complaints WHERE complaint_type_code  =  "Product Failure" GROUP BY complaint_status_code
Database: customer_complaints
Question: What is first names of the top 5 staff who have handled the greatest number of complaints?
Paraphrased question: What is forenames of the top 5 staff who have handled the greatest number of complaints?
SQL: SELECT t1.first_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id  =  t2.staff_id GROUP BY t2.staff_id ORDER BY count(*) LIMIT 5
Database: customer_complaints
Question: Return the first names of the 5 staff members who have handled the most complaints.
Paraphrased question: Return the forenames of the 5 staff members who have handled the most complaints.
SQL: SELECT t1.first_name FROM staff AS t1 JOIN complaints AS t2 ON t1.staff_id  =  t2.staff_id GROUP BY t2.staff_id ORDER BY count(*) LIMIT 5
Database: customer_complaints
Question: Which state has the most customers?
Paraphrased question: Which state has the most clients?
SQL: SELECT state FROM customers GROUP BY state ORDER BY count(*) LIMIT 1
Database: customer_complaints
Question: Give the state that has the most customers.
Paraphrased question: Give the state that has the most clients.
SQL: SELECT state FROM customers GROUP BY state ORDER BY count(*) LIMIT 1
Database: workshop_paper
Question: How many submissions are there?
Paraphrased question: How many submissions are there?
SQL: SELECT count(*) FROM submission
Database: workshop_paper
Question: Count the number of submissions.
Paraphrased question: Count the number of submissions
SQL: SELECT count(*) FROM submission
Database: workshop_paper
Question: List the authors of submissions in ascending order of scores.
Paraphrased question: List the writers of submissions in ascending order of scores.
SQL: SELECT Author FROM submission ORDER BY Scores ASC
Database: workshop_paper
Question: Find the author for each submission and list them in ascending order of submission score.
Paraphrased question: Find the writer for each submission and list them in ascending order of submission score.
SQL: SELECT Author FROM submission ORDER BY Scores ASC
Database: workshop_paper
Question: What are the authors of submissions and their colleges?
Paraphrased question: What are the writers of submissions and their colleges?
SQL: SELECT Author ,  College FROM submission
Database: workshop_paper
Question: For each submission, show the author and their affiliated college.
Paraphrased question: For each submission, show the writer and their affiliated university.
SQL: SELECT Author ,  College FROM submission
Database: workshop_paper
Question: Show the names of authors from college "Florida" or "Temple"
Paraphrased question: Show the names of writers from college "Florida" or "Temple"
SQL: SELECT Author FROM submission WHERE College  =  "Florida" OR College  =  "Temple"
Database: workshop_paper
Question: Which authors with submissions are from college "Florida" or "Temple"?
Paraphrased question: Which writers with submissions are from college "Florida" or "Temple"?
SQL: SELECT Author FROM submission WHERE College  =  "Florida" OR College  =  "Temple"
Database: workshop_paper
Question: What is the average score of submissions?
Paraphrased question: What is the average score of submissions?
SQL: SELECT avg(Scores) FROM submission
Database: workshop_paper
Question: Compute the average score of submissions.
Paraphrased question: Compute the average score of submissions.
SQL: SELECT avg(Scores) FROM submission
Database: workshop_paper
Question: What is the author of the submission with the highest score?
Paraphrased question: What is the writer of the submission with the highest score?
SQL: SELECT Author FROM submission ORDER BY Scores DESC LIMIT 1
Database: workshop_paper
Question: Find the author who achieved the highest score in a submission.
Paraphrased question: Find the writer who achieved the highest score in a submission.
SQL: SELECT Author FROM submission ORDER BY Scores DESC LIMIT 1
Database: workshop_paper
Question: Show different colleges along with the number of authors of submission from each college.
Paraphrased question: Show different university along with the number of writers of submission from each university.
SQL: SELECT College ,  COUNT(*) FROM submission GROUP BY College
Database: workshop_paper
Question: For each college, return the college name and the count of authors with submissions from that college.
Paraphrased question: For each university, return the university name and the count of authors with submissions from that university.
SQL: SELECT College ,  COUNT(*) FROM submission GROUP BY College
Database: workshop_paper
Question: Show the most common college of authors of submissions.
Paraphrased question: Show the most common university of authors of submissions.
SQL: SELECT College FROM submission GROUP BY College ORDER BY COUNT(*) DESC LIMIT 1
Database: workshop_paper
Question: Which college has the most authors with submissions?
Paraphrased question: Which university has the most authors with submissions?
SQL: SELECT College FROM submission GROUP BY College ORDER BY COUNT(*) DESC LIMIT 1
Database: workshop_paper
Question: Show the colleges that have both authors with submission score larger than 90 and authors with submission score smaller than 80.
Paraphrased question: Show the university that have both authors with submission score larger than 90 and authors with submission score smaller than 80.
SQL: SELECT College FROM submission WHERE Scores  >  90 INTERSECT SELECT College FROM submission WHERE Scores  <  80
Database: workshop_paper
Question: Which colleges have both authors with submission score above 90 and authors with submission score below 80?
Paraphrased question: Which university have both authors with submission score above 90 and authors with submission score below 80?
SQL: SELECT College FROM submission WHERE Scores  >  90 INTERSECT SELECT College FROM submission WHERE Scores  <  80
Database: workshop_paper
Question: Show the authors of submissions and the acceptance results of their submissions.
Paraphrased question: Show the writers of submissions and the acceptance results of their submissions.
SQL: SELECT T2.Author ,  T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID
Database: workshop_paper
Question: For each submission, find its author and acceptance result.
Paraphrased question: For each submission, find its author and acceptance result.
SQL: SELECT T2.Author ,  T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID
Database: workshop_paper
Question: Show the result of the submission with the highest score.
Paraphrased question: Show the outcome of the submission with the highest score.
SQL: SELECT T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID ORDER BY T2.Scores DESC LIMIT 1
Database: workshop_paper
Question: Which submission received the highest score in acceptance result. Show me the result.
Paraphrased question: Which submission received the highest score in acceptance outcome. Show me the outcome.
SQL: SELECT T1.Result FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID ORDER BY T2.Scores DESC LIMIT 1
Database: workshop_paper
Question: Show each author and the number of workshops they submitted to.
Paraphrased question: Show each writer and the number of workshops they submitted to.
SQL: SELECT T2.Author ,  COUNT(DISTINCT T1.workshop_id) FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID GROUP BY T2.Author
Database: workshop_paper
Question: How many workshops did each author submit to? Return the author name and the number of workshops.
Paraphrased question: How many workshops did each writer submit to? Return the writer name and the number of workshops.
SQL: SELECT T2.Author ,  COUNT(DISTINCT T1.workshop_id) FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID GROUP BY T2.Author
Database: workshop_paper
Question: Show the authors who have submissions to more than one workshop.
Paraphrased question: Show the writers who have submissions to more than one workshop.
SQL: SELECT T2.Author FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID GROUP BY T2.Author HAVING COUNT(DISTINCT T1.workshop_id)  >  1
Database: workshop_paper
Question: Which authors have submitted to more than one workshop?
Paraphrased question: Which writers have submitted to more than one workshop?
SQL: SELECT T2.Author FROM acceptance AS T1 JOIN submission AS T2 ON T1.Submission_ID  =  T2.Submission_ID GROUP BY T2.Author HAVING COUNT(DISTINCT T1.workshop_id)  >  1
Database: workshop_paper
Question: Show the date and venue of each workshop in ascending alphabetical order of the venue.
Paraphrased question: Show the day and site of each workshop in ascending alphabetical order of the site.
SQL: SELECT Date ,  Venue FROM workshop ORDER BY Venue
Database: workshop_paper
Question: Sort the each workshop in alphabetical order of the venue. Return the date and venue of each workshop.
Paraphrased question: Sort the each workshop in alphabetical order of the site. Return the day and site of each workshop.
SQL: SELECT Date ,  Venue FROM workshop ORDER BY Venue
Database: workshop_paper
Question: List the authors who do not have submission to any workshop.
Paraphrased question: List the writers who do not have submission to any workshop.
SQL: SELECT Author FROM submission WHERE Submission_ID NOT IN (SELECT Submission_ID FROM acceptance)
Database: workshop_paper
Question: Which authors did not submit to any workshop?
Paraphrased question: Which writers did not submit to any workshop?
SQL: SELECT Author FROM submission WHERE Submission_ID NOT IN (SELECT Submission_ID FROM acceptance)
Database: tracking_share_transactions
Question: Find the number of investors in total.
Paraphrased question: Find the number of investors in total.
SQL: SELECT count(*) FROM INVESTORS
Database: tracking_share_transactions
Question: Show all investor details.
Paraphrased question: Show all investor information.
SQL: SELECT Investor_details FROM INVESTORS
Database: tracking_share_transactions
Question: Show all distinct lot details.
Paraphrased question: Show all different lot information.
SQL: SELECT DISTINCT lot_details FROM LOTS
Database: tracking_share_transactions
Question: Show the maximum amount of transaction.
Paraphrased question: Show the maximum amount of transaction.
SQL: SELECT max(amount_of_transaction) FROM TRANSACTIONS
Database: tracking_share_transactions
Question: Show all date and share count of transactions.
Paraphrased question: Show all day and share count of transactions.
SQL: SELECT date_of_transaction ,  share_count FROM TRANSACTIONS
Database: tracking_share_transactions
Question: What is the total share of transactions?
Paraphrased question: What is the total share of transactions?
SQL: SELECT sum(share_count) FROM TRANSACTIONS
Database: tracking_share_transactions
Question: Show all transaction ids with transaction code 'PUR'.
Paraphrased question: Show all transaction ids with transaction code 'PUR'.
SQL: SELECT transaction_id FROM TRANSACTIONS WHERE transaction_type_code  =  'PUR'
Database: tracking_share_transactions
Question: Show all dates of transactions whose type code is "SALE".
Paraphrased question: Show all day of transactions whose type code is "SALE".
SQL: SELECT date_of_transaction FROM TRANSACTIONS WHERE transaction_type_code  =  "SALE"
Database: tracking_share_transactions
Question: Show the average amount of transactions with type code "SALE".
Paraphrased question: Show the average amount of transactions with type code "SALE".
SQL: SELECT avg(amount_of_transaction) FROM TRANSACTIONS WHERE transaction_type_code  =  "SALE"
Database: tracking_share_transactions
Question: Show the description of transaction type with code "PUR".
Paraphrased question: Show the describing content of transaction type with code "PUR".
SQL: SELECT transaction_type_description FROM Ref_Transaction_Types WHERE transaction_type_code	  =  "PUR"
Database: tracking_share_transactions
Question: Show the minimum amount of transactions whose type code is "PUR" and whose share count is bigger than 50.
Paraphrased question: Show the minimum amount of transactions whose type code is "PUR" and whose share count is bigger than 50.
SQL: SELECT min(amount_of_transaction) FROM TRANSACTIONS WHERE transaction_type_code  =  "PUR" AND share_count  >  50
Database: tracking_share_transactions
Question: Show the maximum share count of transactions where the amount is smaller than 10000
Paraphrased question: Show the maximum share count of transactions where the amount is smaller than 10000
SQL: SELECT max(share_count) FROM TRANSACTIONS WHERE amount_of_transaction  <  10000
Database: tracking_share_transactions
Question: Show the dates of transactions if the share count is bigger than 100 or the amount is bigger than 1000.
Paraphrased question: Show the day of transactions if the share count is bigger than 100 or the amount is bigger than 1000.
SQL: SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count  >  100 OR amount_of_transaction  >  1000
Database: tracking_share_transactions
Question: Show the transaction type descriptions and dates if the share count is smaller than 10.
Paraphrased question: Show the transaction type descriptions and day if the share count is smaller than 10.
SQL: SELECT T1.transaction_type_description ,  T2.date_of_transaction FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code  =  T2.transaction_type_code WHERE T2.share_count  <  10
Database: tracking_share_transactions
Question: Show details of all investors if they make any transaction with share count greater than 100.
Paraphrased question: Show information of all investors if they make any transaction with share count greater than 100.
SQL: SELECT T1.Investor_details FROM  INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id WHERE T2.share_count  >  100
Database: tracking_share_transactions
Question: How many distinct transaction types are used in the transactions?
Paraphrased question: How many different transaction categories are used in the transactions?
SQL: SELECT COUNT(DISTINCT transaction_type_code) FROM TRANSACTIONS
Database: tracking_share_transactions
Question: Return the lot details and investor ids.
Paraphrased question: Return the lot information and investor ids.
SQL: SELECT lot_details ,  investor_id FROM LOTS
Database: tracking_share_transactions
Question: Return the lot details of lots that belong to investors with details "l"?
Paraphrased question: Return the lot information of lots that belong to investors with information "l"?
SQL: SELECT T2.lot_details FROM INVESTORS AS T1 JOIN LOTS AS T2 ON  T1.investor_id  =  T2.investor_id WHERE T1.Investor_details  =  "l"
Database: tracking_share_transactions
Question: What are the purchase details of transactions with amount bigger than 10000?
Paraphrased question: What are the purchase information of transactions with amount bigger than 10000?
SQL: SELECT T1.purchase_details FROM PURCHASES AS T1 JOIN TRANSACTIONS AS T2 ON T1.purchase_transaction_id  =  T2.transaction_id WHERE T2.amount_of_transaction  >  10000
Database: tracking_share_transactions
Question: What are the sale details and dates of transactions with amount smaller than 3000?
Paraphrased question: What are the sale information and day of transactions with amount smaller than 3000?
SQL: SELECT T1.sales_details ,  T2.date_of_transaction FROM SALES AS T1 JOIN TRANSACTIONS AS T2 ON T1.sales_transaction_id  =  T2.transaction_id WHERE T2.amount_of_transaction  <  3000
Database: tracking_share_transactions
Question: What are the lot details of lots associated with transactions with share count smaller than 50?
Paraphrased question: What are the lot information of lots associated with transactions with share count smaller than 50?
SQL: SELECT T1.lot_details FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON T1.lot_id  =  T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id  =  T3.transaction_id WHERE T3.share_count  <  50
Database: tracking_share_transactions
Question: What are the lot details of lots associated with transactions whose share count is bigger than 100 and whose type code is "PUR"?
Paraphrased question: What are the lot information of lots associated with transactions whose share count is bigger than 100 and whose type code is "PUR"?
SQL: SELECT T1.lot_details FROM LOTS AS T1 JOIN TRANSACTIONS_LOTS AS T2 ON  T1.lot_id  =  T2.transaction_id JOIN TRANSACTIONS AS T3 ON T2.transaction_id  =  T3.transaction_id WHERE T3.share_count  >  100 AND T3.transaction_type_code  =  "PUR"
Database: tracking_share_transactions
Question: Show the average transaction amount for different transaction types.
Paraphrased question: Show the average transaction amount for different transaction categories.
SQL: SELECT transaction_type_code ,  avg(amount_of_transaction) FROM TRANSACTIONS GROUP BY transaction_type_code
Database: tracking_share_transactions
Question: Show the maximum and minimum share count of different transaction types.
Paraphrased question: Show the maximum and minimum share count of different transaction categories.
SQL: SELECT transaction_type_code ,  max(share_count) ,  min(share_count) FROM TRANSACTIONS GROUP BY transaction_type_code
Database: tracking_share_transactions
Question: Show the average share count of transactions for different investors.
Paraphrased question: Show the average share count of transactions for different investors.
SQL: SELECT investor_id ,  avg(share_count) FROM TRANSACTIONS GROUP BY investor_id
Database: tracking_share_transactions
Question: Show the average share count of transactions each each investor, ordered by average share count.
Paraphrased question: Show the average share count of transactions each each investor, ordered by average share count.
SQL: SELECT investor_id ,  avg(share_count) FROM TRANSACTIONS GROUP BY investor_id ORDER BY avg(share_count)
Database: tracking_share_transactions
Question: Show the average amount of transactions for different investors.
Paraphrased question: Show the average amount of transactions for different investors.
SQL: SELECT investor_id ,  avg(amount_of_transaction) FROM TRANSACTIONS GROUP BY investor_id
Database: tracking_share_transactions
Question: Show the average amount of transactions for different lots.
Paraphrased question: Show the average amount of transactions for different lots.
SQL: SELECT T2.lot_id ,  avg(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id  =  T2.transaction_id GROUP BY T2.lot_id
Database: tracking_share_transactions
Question: Show the average amount of transactions for different lots, ordered by average amount of transactions.
Paraphrased question: Show the average amount of transactions for different lots, ordered by average amount of transactions.
SQL: SELECT T2.lot_id ,  avg(amount_of_transaction) FROM TRANSACTIONS AS T1 JOIN Transactions_Lots AS T2 ON T1.transaction_id  =  T2.transaction_id GROUP BY T2.lot_id ORDER BY avg(amount_of_transaction)
Database: tracking_share_transactions
Question: Show the number of transactions with transaction type code "SALE" for different investors if it is larger than 0.
Paraphrased question: Show the number of transactions with transaction type code "SALE" for different investors if it is larger than 0.
SQL: SELECT investor_id ,  COUNT(*) FROM TRANSACTIONS WHERE transaction_type_code  =  "SALE" GROUP BY investor_id
Database: tracking_share_transactions
Question: Show the number of transactions for different investors.
Paraphrased question: Show the number of transactions for different investors.
SQL: SELECT investor_id ,  COUNT(*) FROM TRANSACTIONS GROUP BY investor_id
Database: tracking_share_transactions
Question: Show the transaction type code that occurs the fewest times.
Paraphrased question: Show the transaction category code that occurs the fewest times.
SQL: SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT(*) ASC LIMIT 1
Database: tracking_share_transactions
Question: Show the transaction type code that occurs the most frequently.
Paraphrased question: Show the transaction category code that occurs the most frequently.
SQL: SELECT transaction_type_code FROM TRANSACTIONS GROUP BY transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1
Database: tracking_share_transactions
Question: Show the description of the transaction type that occurs most frequently.
Paraphrased question: Show the describing content of the transaction type that occurs most frequently.
SQL: SELECT T1.transaction_type_description FROM Ref_Transaction_Types AS T1 JOIN TRANSACTIONS AS T2 ON T1.transaction_type_code  =  T2.transaction_type_code GROUP BY T1.transaction_type_code ORDER BY COUNT(*) DESC LIMIT 1
Database: tracking_share_transactions
Question: Show the id and details of the investor that has the largest number of transactions.
Paraphrased question: Show the id and information of the investor that has the largest number of transactions.
SQL: SELECT T2.investor_id ,  T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 1
Database: tracking_share_transactions
Question: Show the id and details for the investors who have the top 3 number of transactions.
Paraphrased question: Show the id and information for the investors who have the top 3 number of transactions.
SQL: SELECT T2.investor_id ,  T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id GROUP BY T2.investor_id ORDER BY COUNT(*) DESC LIMIT 3
Database: tracking_share_transactions
Question: Show the ids of the investors who have at least two transactions.
Paraphrased question: Show the ids of the investors who have at least two transactions.
SQL: SELECT T2.investor_id FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id GROUP BY T2.investor_id HAVING COUNT(*)  >=  2
Database: tracking_share_transactions
Question: Show the ids and details of the investors who have at least two transactions with type code "SALE".
Paraphrased question: Show the ids and information of the investors who have at least two transactions with type code "SALE".
SQL: SELECT T2.investor_id ,  T1.Investor_details FROM INVESTORS AS T1 JOIN TRANSACTIONS AS T2 ON T1.investor_id  =  T2.investor_id WHERE T2.transaction_type_code  =  "SALE" GROUP BY T2.investor_id HAVING COUNT(*)  >=  2
Database: tracking_share_transactions
Question: What are the dates of transactions with at least 100 share count or amount bigger than 100?
Paraphrased question: What are the day of transactions with at least 100 share count or amount bigger than 100?
SQL: SELECT date_of_transaction FROM TRANSACTIONS WHERE share_count  >=  100 OR amount_of_transaction  >=  100
Database: tracking_share_transactions
Question: What are the details of all sales and purchases?
Paraphrased question: What are the information of all sales and purchases?
SQL: SELECT sales_details FROM sales UNION SELECT purchase_details FROM purchases
Database: tracking_share_transactions
Question: What are the details of the lots which are not used in any transactions?
Paraphrased question: What are the information of the lots which are not used in any transactions?
SQL: SELECT lot_details FROM Lots EXCEPT SELECT T1.lot_details FROM Lots AS T1 JOIN transactions_lots AS T2 ON T1.lot_id  =  T2.lot_id
Database: cre_Theme_park
Question: How many available hotels are there in total?
Paraphrased question: How many available hotels are there in total?
SQL: SELECT count(*) FROM HOTELS
Database: cre_Theme_park
Question: Find the total number of available hotels.
Paraphrased question: Find the total number of available hotels.
SQL: SELECT count(*) FROM HOTELS
Database: cre_Theme_park
Question: What are the price ranges of hotels?
Paraphrased question: What are the price ranges of hotels?
SQL: SELECT price_range FROM HOTELS
Database: cre_Theme_park
Question: Tell me the price ranges for all the hotels.
Paraphrased question: Tell me the price ranges for all the hotels.
SQL: SELECT price_range FROM HOTELS
Database: cre_Theme_park
Question: Show all distinct location names.
Paraphrased question: Show all different position names.
SQL: SELECT DISTINCT Location_Name FROM LOCATIONS
Database: cre_Theme_park
Question: What are the distinct location names?
Paraphrased question: What are the different position names?
SQL: SELECT DISTINCT Location_Name FROM LOCATIONS