aherntech/spider-syn huggingface dataset:
Database: student_1
Question: Count the number of students the teacher LORIA ONDERSMA teaches.
Paraphrased question: Count the number of students the teacher LORIA ONDERSMA teaches.
SQL: SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  "LORIA" AND T2.lastname  =  "ONDERSMA"
Database: student_1
Question: How many students does KAWA GORDON teaches?
Paraphrased question: How many students does KAWA GORDON teaches?
SQL: SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  "KAWA" AND T2.lastname  =  "GORDON"
Database: student_1
Question: Find the number of students taught by the teacher KAWA GORDON.
Paraphrased question: Find the number of students taught by the teacher KAWA GORDON.
SQL: SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  "KAWA" AND T2.lastname  =  "GORDON"
Database: student_1
Question: Find the number of students taught by TARRING LEIA.
Paraphrased question: Find the number of students taught by TARRING LEIA.
SQL: SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  "TARRING" AND T2.lastname  =  "LEIA"
Database: student_1
Question: How many students are taught by teacher TARRING LEIA?
Paraphrased question: How many students are taught by teacher TARRING LEIA?
SQL: SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  "TARRING" AND T2.lastname  =  "LEIA"
Database: student_1
Question: How many teachers does the student named CHRISSY NABOZNY have?
Paraphrased question: How many teachers does the student named CHRISSY NABOZNY have?
SQL: SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.firstname  =  "CHRISSY" AND T1.lastname  =  "NABOZNY"
Database: student_1
Question: Find the number of teachers who teach the student called CHRISSY NABOZNY.
Paraphrased question: Find the number of teachers who teach the student called CHRISSY NABOZNY.
SQL: SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.firstname  =  "CHRISSY" AND T1.lastname  =  "NABOZNY"
Database: student_1
Question: How many teachers does the student named MADLOCK RAY have?
Paraphrased question: How many teachers does the student named MADLOCK RAY have?
SQL: SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.firstname  =  "MADLOCK" AND T1.lastname  =  "RAY"
Database: student_1
Question: Find the number of teachers who teach the student called MADLOCK RAY.
Paraphrased question: Find the number of teachers who teach the student called MADLOCK RAY.
SQL: SELECT count(*) FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.firstname  =  "MADLOCK" AND T1.lastname  =  "RAY"
Database: student_1
Question: Find all first-grade students who are NOT taught by OTHA MOYER. Report their first and last names.
Paraphrased question: Find all first-grade students who are NOT taught by OTHA MOYER. Report their forename and surname.
SQL: SELECT DISTINCT T1.firstname ,  T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.grade  =  1 EXCEPT SELECT T1.firstname ,  T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  "OTHA" AND T2.lastname  =  "MOYER"
Database: student_1
Question: What are the first and last names of the first-grade students who are NOT taught by teacher OTHA MOYER?
Paraphrased question: What are the forename and surname of the first-grade students who are NOT taught by teacher OTHA MOYER?
SQL: SELECT DISTINCT T1.firstname ,  T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.grade  =  1 EXCEPT SELECT T1.firstname ,  T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T2.firstname  =  "OTHA" AND T2.lastname  =  "MOYER"
Database: student_1
Question: Find the last names of the students in third grade that are not taught by COVIN JEROME.
Paraphrased question: Find the family names of the students in third grade that are not taught by COVIN JEROME.
SQL: SELECT DISTINCT T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.grade  =  3 AND T2.firstname != "COVIN" AND T2.lastname != "JEROME"
Database: student_1
Question: Which students in third grade are not taught by teacher COVIN JEROME? Give me the last names of the students.
Paraphrased question: Which students in third grade are not taught by teacher COVIN JEROME? Give me the family names of the students.
SQL: SELECT DISTINCT T1.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom WHERE T1.grade  =  3 AND T2.firstname != "COVIN" AND T2.lastname != "JEROME"
Database: student_1
Question: For each grade, report the grade, the number of classrooms in which it is taught and the total number of students in the grade.
Paraphrased question: For each grade, report the grade, the number of schoolrooms in which it is taught and the total number of students in the grade.
SQL: SELECT grade ,  count(DISTINCT classroom) ,  count(*) FROM list GROUP BY grade
Database: student_1
Question: For each grade, return the grade number, the number of classrooms used for the grade, and the total number of students enrolled in the grade.
Paraphrased question: For each grade, return the grade number, the number of schoolrooms used for the grade, and the total number of students enrolled in the grade.
SQL: SELECT grade ,  count(DISTINCT classroom) ,  count(*) FROM list GROUP BY grade
Database: student_1
Question: For each classroom, report the classroom number and the number of grades using it.
Paraphrased question: For each class room, report the class room number and the number of grades using it.
SQL: SELECT classroom ,  count(DISTINCT grade) FROM list GROUP BY classroom
Database: student_1
Question: For each classroom, show the classroom number and count the number of distinct grades that use the room.
Paraphrased question: For each class room, show the class room number and count the number of different grades that use the room.
SQL: SELECT classroom ,  count(DISTINCT grade) FROM list GROUP BY classroom
Database: student_1
Question: Which classroom has the most students?
Paraphrased question: Which class room has the most students?
SQL: SELECT classroom FROM list GROUP BY classroom ORDER BY count(*) DESC LIMIT 1
Database: student_1
Question: Find the classroom that the most students use.
Paraphrased question: Find the class room that the most students use.
SQL: SELECT classroom FROM list GROUP BY classroom ORDER BY count(*) DESC LIMIT 1
Database: student_1
Question: Report the number of students in each classroom.
Paraphrased question: Report the number of students in each class room.
SQL: SELECT classroom ,  count(*) FROM list GROUP BY classroom
Database: student_1
Question: For each classroom, show the classroom number and find how many students are using it.
Paraphrased question: For each class room, show the class room number and find how many students are using it.
SQL: SELECT classroom ,  count(*) FROM list GROUP BY classroom
Database: student_1
Question: For each grade 0 classroom, report the total number of students.
Paraphrased question: For each grade 0 class room, report the total number of students.
SQL: SELECT classroom ,  count(*) FROM list WHERE grade  =  "0" GROUP BY classroom
Database: student_1
Question: For each grade 0 classroom, return the classroom number and the count of students.
Paraphrased question: For each grade 0 class room, return the class room number and the count of students.
SQL: SELECT classroom ,  count(*) FROM list WHERE grade  =  "0" GROUP BY classroom
Database: student_1
Question: Report the total number of students for each fourth-grade classroom.
Paraphrased question: Report the total number of students for each fourth-grade class room.
SQL: SELECT classroom ,  count(*) FROM list WHERE grade  =  "4" GROUP BY classroom
Database: student_1
Question: For each fourth-grade classroom, show the classroom number and the total number of students using it.
Paraphrased question: For each fourth-grade class room, show the class room number and the total number of students using it.
SQL: SELECT classroom ,  count(*) FROM list WHERE grade  =  "4" GROUP BY classroom
Database: student_1
Question: Find the name of the teacher who teaches the largest number of students.
Paraphrased question: Find the name of the teacher who teaches the largest number of students.
SQL: SELECT T2.firstname ,  T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom GROUP BY T2.firstname ,  T2.lastname ORDER BY count(*) DESC LIMIT 1
Database: student_1
Question: Which teacher teaches the most students? Give me the first name and last name of the teacher.
Paraphrased question: Which teacher teaches the most students? Give me the forename and surname of the teacher.
SQL: SELECT T2.firstname ,  T2.lastname FROM list AS T1 JOIN teachers AS T2 ON T1.classroom  =  T2.classroom GROUP BY T2.firstname ,  T2.lastname ORDER BY count(*) DESC LIMIT 1
Database: student_1
Question: Find the number of students in one classroom.
Paraphrased question: Find the number of students in one class room.
SQL: SELECT count(*) ,  classroom FROM list GROUP BY classroom
Database: student_1
Question: How many students does one classroom have?
Paraphrased question: How many students does one class room have?
SQL: SELECT count(*) ,  classroom FROM list GROUP BY classroom
Database: company_employee
Question: How many companies are headquartered in the US?
Paraphrased question: How many enterprise are headquartered in the US?
SQL: SELECT count(*) FROM company WHERE Headquarters  =  'USA'
Database: company_employee
Question: List the names of companies by ascending number of sales.
Paraphrased question: List the names of enterprise by ascending number of sales.
SQL: SELECT Name FROM company ORDER BY Sales_in_Billion ASC
Database: company_employee
Question: What are the headquarters and industries of all companies?
Paraphrased question: What are the head office and industries of all enterprises?
SQL: SELECT Headquarters ,  Industry FROM company
Database: company_employee
Question: Show the names of companies in the banking or retailing industry?
Paraphrased question: Show the names of enterprises in the banking or retailing industry?
SQL: SELECT Name FROM company WHERE Industry  =  "Banking" OR Industry  =  "Retailing"
Database: company_employee
Question: What is the maximum and minimum market value of companies?
Paraphrased question: What is the maximum and minimum market value of enterprises?
SQL: SELECT max(Market_Value_in_Billion) ,  min(Market_Value_in_Billion) FROM company
Database: company_employee
Question: What is the headquarter of the company with the largest sales?
Paraphrased question: What is the head office of the enterprise with the largest sales?
SQL: SELECT Headquarters FROM company ORDER BY Sales_in_Billion DESC LIMIT 1
Database: company_employee
Question: Show the different headquarters and number of companies at each headquarter.
Paraphrased question: Show the different head office and number of enterprises at each head office.
SQL: SELECT Headquarters ,  COUNT(*) FROM company GROUP BY Headquarters
Database: company_employee
Question: Show the most common headquarter for companies.
Paraphrased question: Show the most common head office for enterprises.
SQL: SELECT Headquarters FROM company GROUP BY Headquarters ORDER BY COUNT(*) DESC LIMIT 1
Database: company_employee
Question: Show the headquarters that have at least two companies.
Paraphrased question: Show the head office that have at least two enterprises.
SQL: SELECT Headquarters FROM company GROUP BY Headquarters HAVING COUNT(*)  >=  2
Database: company_employee
Question: Show the headquarters that have both companies in banking industry and companies in oil and gas industry.
Paraphrased question: Show the head office that have both companies in banking industry and companies in oil and gas industry.
SQL: SELECT Headquarters FROM company WHERE Industry  =  "Banking" INTERSECT SELECT Headquarters FROM company WHERE Industry  =  "Oil and gas"
Database: company_employee
Question: Show the names of companies and of employees.
Paraphrased question: Show the names of enterprises and of staffs.
SQL: SELECT T3.Name ,  T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID
Database: company_employee
Question: Show names of companies and that of employees in descending order of number of years working for that employee.
Paraphrased question: Show names of companies and that of staffs in descending order of number of years working for that staff.
SQL: SELECT T3.Name ,  T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID ORDER BY T1.Year_working
Database: company_employee
Question: Show the names of employees that work for companies with sales bigger than 200.
Paraphrased question: Show the names of staffs that work for companies with sales bigger than 200.
SQL: SELECT T2.Name FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID WHERE T3.Sales_in_Billion  >  200
Database: company_employee
Question: Show the names of companies and the number of employees they have
Paraphrased question: Show the names of enterprises and the number of staffs they have
SQL: SELECT T3.Name ,  COUNT(*) FROM employment AS T1 JOIN people AS T2 ON T1.People_ID  =  T2.People_ID JOIN company AS T3 ON T1.Company_ID  =  T3.Company_ID GROUP BY T3.Name
Database: company_employee
Question: List the names of people that are not employed by any company
Paraphrased question: List the names of people that are not employed by any company
SQL: SELECT Name FROM people WHERE People_ID NOT IN (SELECT People_ID FROM employment)
Database: company_employee
Question: list the names of the companies with more than 200 sales in the descending order of sales and profits.
Paraphrased question: list the names of the enterprises with more than 200 sales in the descending order of sales and profits.
SQL: SELECT name FROM company WHERE Sales_in_Billion  >  200 ORDER BY Sales_in_Billion ,  Profits_in_Billion DESC
Database: film_rank
Question: How many film are there?
Paraphrased question: How many movie are there?
SQL: SELECT count(*) FROM film
Database: film_rank
Question: Count the number of films.
Paraphrased question: Count the number of movies.
SQL: SELECT count(*) FROM film
Database: film_rank
Question: List the distinct director of all films.
Paraphrased question: List the different director of all movies.
SQL: SELECT DISTINCT Director FROM film
Database: film_rank
Question: What are the different film Directors?
Paraphrased question: What are the different movie Directors?
SQL: SELECT DISTINCT Director FROM film
Database: film_rank
Question: What is the average ticket sales gross in dollars of films?
Paraphrased question: What is the average ticket sales gross in dollars of movies?
SQL: SELECT avg(Gross_in_dollar) FROM film
Database: film_rank
Question: Return the average gross sales in dollars across all films.
Paraphrased question: Return the average gross sales in dollars across all movies.
SQL: SELECT avg(Gross_in_dollar) FROM film
Database: film_rank
Question: What are the low and high estimates of film markets?
Paraphrased question: What are the low and high estimates of film markets?
SQL: SELECT Low_Estimate ,  High_Estimate FROM film_market_estimation
Database: film_rank
Question: Return the low and high estimates for all film markets.
Paraphrased question: Return the low and high estimates for all film markets.
SQL: SELECT Low_Estimate ,  High_Estimate FROM film_market_estimation
Database: film_rank
Question: What are the types of film market estimations in year 1995?
Paraphrased question: What are the categories of film market estimates in year 1995?
SQL: SELECT TYPE FROM film_market_estimation WHERE YEAR  =  1995
Database: film_rank
Question: Return the types of film market estimations in 1995.
Paraphrased question: Return the categories of film market estimates in 1995.
SQL: SELECT TYPE FROM film_market_estimation WHERE YEAR  =  1995
Database: film_rank
Question: What are the maximum and minimum number of cities in all markets.
Paraphrased question: What are the maximum and minimum number of towns in all markets.
SQL: SELECT max(Number_cities) ,  min(Number_cities) FROM market
Database: film_rank
Question: Return the maximum and minimum number of cities across all markets.
Paraphrased question: Return the maximum and minimum number of towns across all markets.
SQL: SELECT max(Number_cities) ,  min(Number_cities) FROM market
Database: film_rank
Question: How many markets have number of cities smaller than 300?
Paraphrased question: How many markets have number of towns smaller than 300?
SQL: SELECT count(*) FROM market WHERE Number_cities  <  300
Database: film_rank
Question: Count the number of markets that have a number of cities lower than 300.
Paraphrased question: Count the number of markets that have a number of towns lower than 300.
SQL: SELECT count(*) FROM market WHERE Number_cities  <  300
Database: film_rank
Question: List all countries of markets in ascending alphabetical order.
Paraphrased question: List all nations of markets in ascending alphabetical order.
SQL: SELECT Country FROM market ORDER BY Country ASC
Database: film_rank
Question: What are the countries for each market, ordered alphabetically?
Paraphrased question: What are the nations for each market, ordered alphabetically?
SQL: SELECT Country FROM market ORDER BY Country ASC
Database: film_rank
Question: List all countries of markets in descending order of number of cities.
Paraphrased question: List all nations of markets in descending order of number of towns.
SQL: SELECT Country FROM market ORDER BY Number_cities DESC
Database: film_rank
Question: What are the countries for each market ordered by decreasing number of cities?
Paraphrased question: What are the nations for each market ordered by decreasing number of cities?
SQL: SELECT Country FROM market ORDER BY Number_cities DESC
Database: film_rank
Question: Please show the titles of films and the types of market estimations.
Paraphrased question: Please show the names of movies and the types of market estimations.
SQL: SELECT T1.Title ,  T2.Type FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID  =  T2.Film_ID
Database: film_rank
Question: What are the titles of films and corresponding types of market estimations?
Paraphrased question: What are the names of movies and corresponding types of market estimations?
SQL: SELECT T1.Title ,  T2.Type FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID  =  T2.Film_ID
Database: film_rank
Question: Show the distinct director of films with market estimation in the year of 1995.
Paraphrased question: Show the different director of movies with market estimation in the year of 1995.
SQL: SELECT DISTINCT T1.Director FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID  =  T2.Film_ID WHERE T2.Year  =  1995
Database: film_rank
Question: Who are the different directors of films which had market estimation in 1995?
Paraphrased question: Who are the different directors of movies which had market estimation in 1995?
SQL: SELECT DISTINCT T1.Director FROM film AS T1 JOIN film_market_estimation AS T2 ON T1.Film_ID  =  T2.Film_ID WHERE T2.Year  =  1995
Database: film_rank
Question: What is the average number of cities of markets with low film market estimate bigger than 10000?
Paraphrased question: What is the average number of towns of markets with low film market estimate bigger than 10000?
SQL: SELECT avg(T2.Number_cities) FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID WHERE T1.Low_Estimate  >  10000
Database: film_rank
Question: Give the average number of cities within markets that had a low market estimation larger than 10000?
Paraphrased question: Give the average number of towns within markets that had a low market estimation larger than 10000?
SQL: SELECT avg(T2.Number_cities) FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID WHERE T1.Low_Estimate  >  10000
Database: film_rank
Question: Please list the countries and years of film market estimations.
Paraphrased question: Please list the nations and years of movie market estimations.
SQL: SELECT T2.Country ,  T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID
Database: film_rank
Question: What are the countries of markets and their corresponding years of market estimation?
Paraphrased question: What are the nations of markets and their corresponding years of market estimation?
SQL: SELECT T2.Country ,  T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID
Database: film_rank
Question: Please list the years of film market estimations when the market is in country "Japan" in descending order.
Paraphrased question: Please list the years of movie market estimations when the market is in country "Japan" in descending order.
SQL: SELECT T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID WHERE T2.Country  =  "Japan" ORDER BY T1.Year DESC
Database: film_rank
Question: What are the years of film market estimation for the market of Japan, ordered by year descending?
Paraphrased question: What are the years of movie market estimation for the market of Japan, ordered by year descending?
SQL: SELECT T1.Year FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.Market_ID  =  T2.Market_ID WHERE T2.Country  =  "Japan" ORDER BY T1.Year DESC
Database: film_rank
Question: List the studios of each film and the number of films produced by that studio.
Paraphrased question: List the studios of each movie and the number of movies produced by that studio.
SQL: SELECT Studio ,  COUNT(*) FROM film GROUP BY Studio
Database: film_rank
Question: How films are produced by each studio?
Paraphrased question: How movies are produced by each studio?
SQL: SELECT Studio ,  COUNT(*) FROM film GROUP BY Studio
Database: film_rank
Question: List the name of film studio that have the most number of films.
Paraphrased question: List the name of movie studio that have the most number of movies.
SQL: SELECT Studio FROM film GROUP BY Studio ORDER BY COUNT(*) DESC LIMIT 1
Database: film_rank
Question: What is the name of teh studio that created the most films?
Paraphrased question: What is the name of teh studio that created the most movies?
SQL: SELECT Studio FROM film GROUP BY Studio ORDER BY COUNT(*) DESC LIMIT 1
Database: film_rank
Question: List the names of studios that have at least two films.
Paraphrased question: List the names of studios that have at least two movies.
SQL: SELECT Studio FROM film GROUP BY Studio HAVING COUNT(*)  >=  2
Database: film_rank
Question: What are the names of studios that have made two or more films?
Paraphrased question: What are the names of studios that have made two or more movies?
SQL: SELECT Studio FROM film GROUP BY Studio HAVING COUNT(*)  >=  2
Database: film_rank
Question: List the title of films that do not have any market estimation.
Paraphrased question: List the name of movies that do not have any market estimation.
SQL: SELECT Title FROM film WHERE Film_ID NOT IN (SELECT Film_ID FROM film_market_estimation)
Database: film_rank
Question: What are the titles of films that do not have a film market estimation?
Paraphrased question: What are the names of movies that do not have a movie market estimation?
SQL: SELECT Title FROM film WHERE Film_ID NOT IN (SELECT Film_ID FROM film_market_estimation)
Database: film_rank
Question: Show the studios that have produced films with director "Nicholas Meyer" and "Walter Hill".
Paraphrased question: Show the studios that have produced movies with director "Nicholas Meyer" and "Walter Hill".
SQL: SELECT Studio FROM film WHERE Director  =  "Nicholas Meyer" INTERSECT SELECT Studio FROM film WHERE Director  =  "Walter Hill"
Database: film_rank
Question: What are the names of studios that have produced films with both Nicholas Meyer and Walter Hill?
Paraphrased question: What are the names of studios that have produced movies with both Nicholas Meyer and Walter Hill?
SQL: SELECT Studio FROM film WHERE Director  =  "Nicholas Meyer" INTERSECT SELECT Studio FROM film WHERE Director  =  "Walter Hill"
Database: film_rank
Question: Find the titles and studios of the films that are produced by some film studios that contained the word "Universal".
Paraphrased question: Find the names and studios of the films that are produced by some movie studios that contained the word "Universal".
SQL: SELECT title ,  Studio FROM film WHERE Studio LIKE "%Universal%"
Database: film_rank
Question: What are the titles and studios of films that have been produced by a studio whose name contains "Universal"?
Paraphrased question: What are the names and studios of movies that have been produced by a studio whose name contains "Universal"?
SQL: SELECT title ,  Studio FROM film WHERE Studio LIKE "%Universal%"
Database: film_rank
Question: Show the studios that have not produced films with director "Walter Hill".
Paraphrased question: Show the studios that have not produced movies with director "Walter Hill".
SQL: SELECT Studio FROM film EXCEPT SELECT Studio FROM film WHERE Director  =  "Walter Hill"
Database: film_rank
Question: Which studios have never worked with the director Walter Hill?
Paraphrased question: Which studios have never worked with the director Walter Hill?
SQL: SELECT Studio FROM film EXCEPT SELECT Studio FROM film WHERE Director  =  "Walter Hill"
Database: film_rank
Question: List the studios which average gross is above 4500000.
Paraphrased question: List the studios which average gross is above 4500000.
SQL: SELECT Studio FROM film GROUP BY Studio HAVING avg(Gross_in_dollar)  >=  4500000
Database: film_rank
Question: Which studios have an average gross of over 4500000?
Paraphrased question: Which studios have an average gross of over 4500000?
SQL: SELECT Studio FROM film GROUP BY Studio HAVING avg(Gross_in_dollar)  >=  4500000
Database: film_rank
Question: What is the title of the film that has the highest high market estimation.
Paraphrased question: What is the name of the movie that has the highest high market estimation.
SQL: SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2  ON T1.Film_ID  =  T2.Film_ID ORDER BY high_estimate DESC LIMIT 1
Database: film_rank
Question: Return the title of the film with the highest high estimate?
Paraphrased question: Return the name of the movie with the highest high estimate?
SQL: SELECT t1.title FROM film AS T1 JOIN film_market_estimation AS T2  ON T1.Film_ID  =  T2.Film_ID ORDER BY high_estimate DESC LIMIT 1
Database: film_rank
Question: What are the titles and directors of the films were never presented in China?
Paraphrased question: What are the names and directors of the movies were never presented in China?
SQL: SELECT title ,  director FROM film WHERE film_id NOT IN (SELECT film_id FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.market_id  =  T2.Market_ID WHERE country  =  'China')
Database: film_rank
Question: Return the titles and directors of films that were never in the market of China.
Paraphrased question: Return the names and directors of movies that were never in the market of China.
SQL: SELECT title ,  director FROM film WHERE film_id NOT IN (SELECT film_id FROM film_market_estimation AS T1 JOIN market AS T2 ON T1.market_id  =  T2.Market_ID WHERE country  =  'China')
Database: cre_Doc_Tracking_DB
Question: How many calendar items do we have?
Paraphrased question: How many calendar items do we have?
SQL: SELECT count(*) FROM Ref_calendar
Database: cre_Doc_Tracking_DB
Question: Count the number of all the calendar items.
Paraphrased question: Count the number of all the calendar items.
SQL: SELECT count(*) FROM Ref_calendar
Database: cre_Doc_Tracking_DB
Question: Show all calendar dates and day Numbers.
Paraphrased question: Show all calendar dates and day Numbers.
SQL: SELECT calendar_date ,  day_Number FROM Ref_calendar
Database: cre_Doc_Tracking_DB
Question: What are all the calendar dates and day Numbers?
Paraphrased question: What are all the calendar dates and day Numbers?
SQL: SELECT calendar_date ,  day_Number FROM Ref_calendar
Database: cre_Doc_Tracking_DB
Question: Show the number of document types.
Paraphrased question: Show the number of file categories.
SQL: SELECT count(*) FROM Ref_document_types
Database: cre_Doc_Tracking_DB
Question: How many document types are there?
Paraphrased question: How many file categories are there?
SQL: SELECT count(*) FROM Ref_document_types
Database: cre_Doc_Tracking_DB
Question: List all document type codes and document type names.
Paraphrased question: List all file category codes and file category names.
SQL: SELECT document_type_code ,  document_type_name FROM Ref_document_types
Database: cre_Doc_Tracking_DB
Question: What are all the document type codes and document type names?
Paraphrased question: What are all the file category codes and file category names?
SQL: SELECT document_type_code ,  document_type_name FROM Ref_document_types
Database: cre_Doc_Tracking_DB
Question: What is the name and description for document type code RV?
Paraphrased question: What is the name and describing content for file category code RV?
SQL: SELECT document_type_name ,  document_type_description FROM Ref_document_types WHERE document_type_code  =  "RV"
Database: cre_Doc_Tracking_DB
Question: Give me the name and description of the document type code RV.
Paraphrased question: Give me the name and describing content of the file category code RV.
SQL: SELECT document_type_name ,  document_type_description FROM Ref_document_types WHERE document_type_code  =  "RV"
Database: cre_Doc_Tracking_DB
Question: What is the document type code for document type "Paper"?
Paraphrased question: What is the file category code for file category "Paper"?
SQL: SELECT document_type_code FROM Ref_document_types WHERE document_type_name  =  "Paper"
Database: cre_Doc_Tracking_DB
Question: Find the code of the document type "Paper".
Paraphrased question: Find the code of the file category "Paper".
SQL: SELECT document_type_code FROM Ref_document_types WHERE document_type_name  =  "Paper"
Database: cre_Doc_Tracking_DB
Question: Show the number of documents with document type code CV or BK.
Paraphrased question: Show the number of files with file category code CV or BK.
SQL: SELECT count(*) FROM All_documents WHERE document_type_code  =  "CV" OR document_type_code  =  "BK"
Database: cre_Doc_Tracking_DB
Question: How many documents have document type code CV or BK?
Paraphrased question: How many files have file category code CV or BK?
SQL: SELECT count(*) FROM All_documents WHERE document_type_code  =  "CV" OR document_type_code  =  "BK"
Database: cre_Doc_Tracking_DB
Question: What is the date when the document "Marry CV" was stored?
Paraphrased question: What is the day when the file "Marry CV" was stored?
SQL: SELECT date_stored FROM All_documents WHERE Document_name  =  "Marry CV"
Database: cre_Doc_Tracking_DB
Question: When was the document named "Marry CV" stored? Give me the date.
Paraphrased question: When was the file named "Marry CV" stored? Give me the day.
SQL: SELECT date_stored FROM All_documents WHERE Document_name  =  "Marry CV"
Database: cre_Doc_Tracking_DB
Question: What is the day Number and date of all the documents?
Paraphrased question: What is the day Number and date of all the files?
SQL: SELECT T2.day_Number ,  T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.date_stored  =  T2.calendar_date
Database: cre_Doc_Tracking_DB
Question: Return the day Number and stored date for all the documents.
Paraphrased question: Return the day Number and stored date for all the files.
SQL: SELECT T2.day_Number ,  T1.Date_Stored FROM All_documents AS T1 JOIN Ref_calendar AS T2 ON T1.date_stored  =  T2.calendar_date
Database: cre_Doc_Tracking_DB
Question: What is the document type name for the document with name "How to read a book"?
Paraphrased question: What is the file category name for the file with name "How to read a book"?
SQL: SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code  =  T2.document_type_code WHERE T1.document_name  =  "How to read a book"
Database: cre_Doc_Tracking_DB
Question: Find the document type name of the document named "How to read a book".
Paraphrased question: Find the file category name of the file named "How to read a book".
SQL: SELECT T2.document_type_name FROM All_documents AS T1 JOIN Ref_document_types AS T2 ON T1.document_type_code  =  T2.document_type_code WHERE T1.document_name  =  "How to read a book"
Database: cre_Doc_Tracking_DB
Question: Show the number of locations.
Paraphrased question: Show the number of cities.
SQL: SELECT count(*) FROM Ref_locations
Database: cre_Doc_Tracking_DB
Question: How many locations are listed in the database?
Paraphrased question: How many cities are listed in the database?
SQL: SELECT count(*) FROM Ref_locations
Database: cre_Doc_Tracking_DB
Question: List all location codes and location names.
Paraphrased question: List all city codes and city names.
SQL: SELECT location_code ,  location_name FROM Ref_locations
Database: cre_Doc_Tracking_DB
Question: What are all the location codes and location names?
Paraphrased question: What are all the city codes and city names?
SQL: SELECT location_code ,  location_name FROM Ref_locations
Database: cre_Doc_Tracking_DB
Question: What are the name and description for location code x?
Paraphrased question: What are the name and describing content for city code x?
SQL: SELECT location_name ,  location_description FROM Ref_locations WHERE location_code  =  "x"
Database: cre_Doc_Tracking_DB
Question: Give me the name and description of the location with code x.
Paraphrased question: Give me the name and describing content of the city with code x.
SQL: SELECT location_name ,  location_description FROM Ref_locations WHERE location_code  =  "x"
Database: cre_Doc_Tracking_DB
Question: What is the location code for the country "Canada"?
Paraphrased question: What is the city code for the country "Canada"?
SQL: SELECT location_code FROM Ref_locations WHERE location_name  =  "Canada"
Database: cre_Doc_Tracking_DB
Question: Show the location code of the country "Canada".
Paraphrased question: Show the city code of the country "Canada".
SQL: SELECT location_code FROM Ref_locations WHERE location_name  =  "Canada"
Database: cre_Doc_Tracking_DB
Question: How many roles are there?
Paraphrased question: How many roles are there?
SQL: SELECT count(*) FROM ROLES
Database: cre_Doc_Tracking_DB
Question: Count the total number of roles listed.
Paraphrased question: Count the total number of roles listed.
SQL: SELECT count(*) FROM ROLES
Database: cre_Doc_Tracking_DB
Question: List all role codes, role names, and role descriptions.
Paraphrased question: List all role codes, role names, and role describing contents.
SQL: SELECT role_code ,  role_name ,  role_description FROM ROLES
Database: cre_Doc_Tracking_DB
Question: What are all the role codes, role names, and role descriptions?
Paraphrased question: What are all the role codes, role names, and role describing contents?
SQL: SELECT role_code ,  role_name ,  role_description FROM ROLES
Database: cre_Doc_Tracking_DB
Question: What are the name and description for role code "MG"?
Paraphrased question: What are the name and describing content for role code "MG"?
SQL: SELECT role_name ,  role_description FROM ROLES WHERE role_code  =  "MG"
Database: cre_Doc_Tracking_DB
Question: Find the name and description of the role with code "MG".
Paraphrased question: Find the name and describing content of the role with code "MG".
SQL: SELECT role_name ,  role_description FROM ROLES WHERE role_code  =  "MG"
Database: cre_Doc_Tracking_DB
Question: Show the description for role name "Proof Reader".
Paraphrased question: Show the describing content for role name "Proof Reader".
SQL: SELECT role_description FROM ROLES WHERE role_name  =  "Proof Reader"
Database: cre_Doc_Tracking_DB
Question: What is the description of the role named "Proof Reader"?
Paraphrased question: What is the describing content of the role named "Proof Reader"?
SQL: SELECT role_description FROM ROLES WHERE role_name  =  "Proof Reader"
Database: cre_Doc_Tracking_DB
Question: How many employees do we have?
Paraphrased question: How many staffs do we have?
SQL: SELECT count(*) FROM Employees
Database: cre_Doc_Tracking_DB
Question: Find the number of employees we have.
Paraphrased question: Find the number of staffs we have.
SQL: SELECT count(*) FROM Employees
Database: cre_Doc_Tracking_DB
Question: Show the name, role code, and date of birth for the employee with name 'Armani'.
Paraphrased question: Show the name, role code, and birthday for the staff with name 'Armani'.
SQL: SELECT employee_name ,  role_code ,  date_of_birth FROM Employees WHERE employee_Name  =  'Armani'
Database: cre_Doc_Tracking_DB
Question: What are the name, role code, and date of birth of the employee named 'Armani'?
Paraphrased question: What are the name, role code, and birthday of the staff named 'Armani'?
SQL: SELECT employee_name ,  role_code ,  date_of_birth FROM Employees WHERE employee_Name  =  'Armani'
Database: cre_Doc_Tracking_DB
Question: What is the id for the employee called Ebba?
Paraphrased question: What is the id for the staff called Ebba?
SQL: SELECT employee_ID FROM Employees WHERE employee_name  =  "Ebba"
Database: cre_Doc_Tracking_DB
Question: Show the id of the employee named Ebba.
Paraphrased question: Show the id of the staff named Ebba.
SQL: SELECT employee_ID FROM Employees WHERE employee_name  =  "Ebba"
Database: cre_Doc_Tracking_DB
Question: Show the names of all the employees with role "HR".
Paraphrased question: Show the names of all the staffs with role "HR".
SQL: SELECT employee_name FROM Employees WHERE role_code  =  "HR"
Database: cre_Doc_Tracking_DB
Question: Which employees have the role with code "HR"? Find their names.
Paraphrased question: Which staffs have the role with code "HR"? Find their names.
SQL: SELECT employee_name FROM Employees WHERE role_code  =  "HR"
Database: cre_Doc_Tracking_DB
Question: Show all role codes and the number of employees in each role.
Paraphrased question: Show all role codes and the number of staffs in each role.
SQL: SELECT role_code ,  count(*) FROM Employees GROUP BY role_code
Database: cre_Doc_Tracking_DB
Question: What is the code of each role and the number of employees in each role?
Paraphrased question: What is the code of each role and the number of staffs in each role?
SQL: SELECT role_code ,  count(*) FROM Employees GROUP BY role_code
Database: cre_Doc_Tracking_DB
Question: What is the role code with the largest number of employees?
Paraphrased question: What is the role code with the largest number of staffs?
SQL: SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) DESC LIMIT 1
Database: cre_Doc_Tracking_DB
Question: Find the code of the role that have the most employees.
Paraphrased question: Find the code of the role that have the most staffs.
SQL: SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) DESC LIMIT 1
Database: cre_Doc_Tracking_DB
Question: Show all role codes with at least 3 employees.
Paraphrased question: Show all role codes with at least 3 staffs.
SQL: SELECT role_code FROM Employees GROUP BY role_code HAVING count(*)  >=  3
Database: cre_Doc_Tracking_DB
Question: What are the roles with three or more employees? Give me the role codes.
Paraphrased question: What are the roles with three or more staffs? Give me the role codes.
SQL: SELECT role_code FROM Employees GROUP BY role_code HAVING count(*)  >=  3
Database: cre_Doc_Tracking_DB
Question: Show the role code with the least employees.
Paraphrased question: Show the role code with the least staffs.
SQL: SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) ASC LIMIT 1
Database: cre_Doc_Tracking_DB
Question: What is the role with the smallest number of employees? Find the role codes.
Paraphrased question: What is the role with the smallest number of staffs? Find the role codes.
SQL: SELECT role_code FROM Employees GROUP BY role_code ORDER BY count(*) ASC LIMIT 1
Database: cre_Doc_Tracking_DB
Question: What is the role name and role description for employee called Ebba?
Paraphrased question: What is the role name and role describing content for staff called Ebba?
SQL: SELECT T2.role_name ,  T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code  =  T2.role_code WHERE T1.employee_name  =  "Ebba"
Database: cre_Doc_Tracking_DB
Question: Show the name and description of the role played by the employee named Ebba.
Paraphrased question: Show the name and describing content of the role played by the staff named Ebba.
SQL: SELECT T2.role_name ,  T2.role_description FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code  =  T2.role_code WHERE T1.employee_name  =  "Ebba"
Database: cre_Doc_Tracking_DB
Question: Show the names of employees with role name Editor.
Paraphrased question: Show the names of staffs with role name Editor.
SQL: SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code  =  T2.role_code WHERE T2.role_name  =  "Editor"
Database: cre_Doc_Tracking_DB
Question: Find the names of all the employees whose the role name is "Editor".
Paraphrased question: Find the names of all the staffs whose the role name is "Editor".
SQL: SELECT T1.employee_name FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code  =  T2.role_code WHERE T2.role_name  =  "Editor"
Database: cre_Doc_Tracking_DB
Question: Show the employee ids for all employees with role name "Human Resource" or "Manager".
Paraphrased question: Show the staff ids for all staffs with role name "Human Resource" or "Manager".
SQL: SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code  =  T2.role_code WHERE T2.role_name  =  "Human Resource" OR T2.role_name  =  "Manager"
Database: cre_Doc_Tracking_DB
Question: What are the employee ids of the employees whose role name is "Human Resource" or "Manager"?
Paraphrased question: What are the staff ids of the staffs whose role name is "Human Resource" or "Manager"?
SQL: SELECT T1.employee_id FROM Employees AS T1 JOIN ROLES AS T2 ON T1.role_code  =  T2.role_code WHERE T2.role_name  =  "Human Resource" OR T2.role_name  =  "Manager"
Database: cre_Doc_Tracking_DB
Question: What are the different location codes for documents?
Paraphrased question: What are the different city codes for files?
SQL: SELECT DISTINCT location_code FROM Document_locations
Database: cre_Doc_Tracking_DB
Question: Give me all the distinct location codes for documents.
Paraphrased question: Give me all the different city codes for files.
SQL: SELECT DISTINCT location_code FROM Document_locations
Database: cre_Doc_Tracking_DB
Question: Show the location name for document "Robin CV".
Paraphrased question: Show the city name for file "Robin CV".
SQL: SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id  =  T2.document_id JOIN Ref_locations AS T3 ON T2.location_code  =  T3.location_code WHERE T1.document_name  =  "Robin CV"
Database: cre_Doc_Tracking_DB
Question: What is the location name of the document "Robin CV"?
Paraphrased question: What is the city name of the file "Robin CV"?
SQL: SELECT T3.location_name FROM All_documents AS T1 JOIN Document_locations AS T2 ON T1.document_id  =  T2.document_id JOIN Ref_locations AS T3 ON T2.location_code  =  T3.location_code WHERE T1.document_name  =  "Robin CV"
Database: cre_Doc_Tracking_DB
Question: Show the location code, the starting date and ending data in that location for all the documents.
Paraphrased question: Show the city code, the starting day and ending data in that city for all the files.
SQL: SELECT location_code ,  date_in_location_from ,  date_in_locaton_to FROM Document_locations
Database: cre_Doc_Tracking_DB
Question: What are each document's location code, and starting date and ending data in that location?
Paraphrased question: What are each document's city code, and starting day and ending data in that city?
SQL: SELECT location_code ,  date_in_location_from ,  date_in_locaton_to FROM Document_locations
Database: cre_Doc_Tracking_DB
Question: What is "the date in location from" and "the date in location to" for the document with name "Robin CV"?
Paraphrased question: What is "the date in city from" and "the date in city to" for the document with name "Robin CV"?
SQL: SELECT T1.date_in_location_from ,  T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id  =  T2.document_id WHERE T2.document_name  =  "Robin CV"
Database: cre_Doc_Tracking_DB
Question: Find the starting date and ending data in location for the document named "Robin CV".
Paraphrased question: Find the starting day and ending data in city for the document named "Robin CV".
SQL: SELECT T1.date_in_location_from ,  T1.date_in_locaton_to FROM Document_locations AS T1 JOIN All_documents AS T2 ON T1.document_id  =  T2.document_id WHERE T2.document_name  =  "Robin CV"
Database: cre_Doc_Tracking_DB
Question: Show the location codes and the number of documents in each location.
Paraphrased question: Show the city codes and the number of documents in each city.
SQL: SELECT location_code ,  count(*) FROM Document_locations GROUP BY location_code
Database: cre_Doc_Tracking_DB
Question: What is the code of each location and the number of documents in that location?
Paraphrased question: What is the code of each city and the number of documents in that city?
SQL: SELECT location_code ,  count(*) FROM Document_locations GROUP BY location_code
Database: cre_Doc_Tracking_DB
Question: What is the location code with the most documents?
Paraphrased question: What is the city code with the most files?
SQL: SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY count(*) DESC LIMIT 1
Database: cre_Doc_Tracking_DB
Question: Find the code of the location with the largest number of documents.
Paraphrased question: Find the code of the city with the largest number of files.
SQL: SELECT location_code FROM Document_locations GROUP BY location_code ORDER BY count(*) DESC LIMIT 1
Database: cre_Doc_Tracking_DB
Question: Show the location codes with at least 3 documents.
Paraphrased question: Show the city codes with at least 3 files.
SQL: SELECT location_code FROM Document_locations GROUP BY location_code HAVING count(*)  >=  3
Database: cre_Doc_Tracking_DB
Question: What are the codes of the locations with at least three documents?
Paraphrased question: What are the codes of the cities with at least three files?
SQL: SELECT location_code FROM Document_locations GROUP BY location_code HAVING count(*)  >=  3
Database: cre_Doc_Tracking_DB
Question: Show the location name and code with the least documents.
Paraphrased question: Show the city name and code with the least files.
SQL: SELECT T2.location_name ,  T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code  =  T2.location_code GROUP BY T1.location_code ORDER BY count(*) ASC LIMIT 1
Database: cre_Doc_Tracking_DB
Question: What are the name and code of the location with the smallest number of documents?
Paraphrased question: What are the name and code of the city with the smallest number of files?
SQL: SELECT T2.location_name ,  T1.location_code FROM Document_locations AS T1 JOIN Ref_locations AS T2 ON T1.location_code  =  T2.location_code GROUP BY T1.location_code ORDER BY count(*) ASC LIMIT 1
Database: cre_Doc_Tracking_DB
Question: What are the names of the employees who authorised the destruction and the employees who destroyed the corresponding documents?
Paraphrased question: What are the names of the staffs who authorised the destruction and the staffs who destroyed the corresponding documents?
SQL: SELECT T2.employee_name ,  T3.employee_name FROM Documents_to_be_destroyed AS T1 JOIN Employees AS T2 ON T1.Destruction_Authorised_by_Employee_ID = T2.employee_id JOIN Employees AS T3 ON T1.Destroyed_by_Employee_ID = T3.employee_id;