aherntech/spider-syn huggingface dataset:
Database: product_catalog
Question: What are the average and minimum price (in Euro) of all products?
Paraphrased question: What are the average and minimum price (in Euro) of all products?
SQL: SELECT avg(price_in_euros) ,  min(price_in_euros) FROM catalog_contents
Database: product_catalog
Question: Give me the average and minimum price (in Euro) of the products.
Paraphrased question: Give me the average and minimum price (in Euro) of the products.
SQL: SELECT avg(price_in_euros) ,  min(price_in_euros) FROM catalog_contents
Database: product_catalog
Question: What is the product with the highest height? Give me the catalog entry name.
Paraphrased question: What is the products with the highest height? Give me the catalogue entry name.
SQL: SELECT catalog_entry_name FROM catalog_contents ORDER BY height DESC LIMIT 1
Database: product_catalog
Question: Which catalog content has the highest height? Give me the catalog entry name.
Paraphrased question: Which catalogue content has the highest height? Give me the catalogue entry name.
SQL: SELECT catalog_entry_name FROM catalog_contents ORDER BY height DESC LIMIT 1
Database: product_catalog
Question: Find the name of the product that has the smallest capacity.
Paraphrased question: Find the name of the product that has the smallest capacity.
SQL: SELECT catalog_entry_name FROM catalog_contents ORDER BY capacity ASC LIMIT 1
Database: product_catalog
Question: Which catalog content has the smallest capacity? Return the catalog entry name.
Paraphrased question: Which catalogue content has the smallest capacity? Return the catalogue entry name.
SQL: SELECT catalog_entry_name FROM catalog_contents ORDER BY capacity ASC LIMIT 1
Database: product_catalog
Question: Find the names of all the products whose stock number starts with "2".
Paraphrased question: Find the names of all the products whose stock number starts with "2".
SQL: SELECT catalog_entry_name FROM catalog_contents WHERE product_stock_number LIKE "2%"
Database: product_catalog
Question: Which catalog contents have a product stock number that starts from "2"? Show the catalog entry names.
Paraphrased question: Which catalogue contents have a product stock number that starts from "2"? Show the catalogue entry names.
SQL: SELECT catalog_entry_name FROM catalog_contents WHERE product_stock_number LIKE "2%"
Database: product_catalog
Question: Find the names of catalog entries with level number 8.
Paraphrased question: Find the names of catalogue entries with level number 8.
SQL: SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id  =  t2.catalog_entry_id WHERE t2.catalog_level_number  =  "8"
Database: product_catalog
Question: What are the names of catalog entries with level number 8?
Paraphrased question: What are the names of catalogue entries with level number 8?
SQL: SELECT t1.catalog_entry_name FROM Catalog_Contents AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.catalog_entry_id  =  t2.catalog_entry_id WHERE t2.catalog_level_number  =  "8"
Database: product_catalog
Question: Find the names of the products with length smaller than 3 or height greater than 5.
Paraphrased question: Find the names of the products with length smaller than 3 or height greater than 5.
SQL: SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH  <  3 OR width  >  5
Database: product_catalog
Question: Which catalog contents have length below 3 or above 5? Find the catalog entry names.
Paraphrased question: Which catalogue contents have length below 3 or above 5? Find the catalogue entry names.
SQL: SELECT catalog_entry_name FROM catalog_contents WHERE LENGTH  <  3 OR width  >  5
Database: product_catalog
Question: Find the name and attribute ID of the attribute definitions with attribute value 0.
Paraphrased question: Find the name and feature ID of the feature definitions with feature value 0.
SQL: SELECT t1.attribute_name ,  t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id  =  t2.attribute_id WHERE t2.attribute_value  =  0
Database: product_catalog
Question: Which attribute definitions have attribute value 0? Give me the attribute name and attribute ID.
Paraphrased question: Which feature definitions have feature value 0? Give me the feature name and feature ID.
SQL: SELECT t1.attribute_name ,  t1.attribute_id FROM Attribute_Definitions AS t1 JOIN Catalog_Contents_Additional_Attributes AS t2 ON t1.attribute_id  =  t2.attribute_id WHERE t2.attribute_value  =  0
Database: product_catalog
Question: Find the name and capacity of products with price greater than 700 (in USD).
Paraphrased question: Find the name and capacity of products with price greater than 700 (in USD).
SQL: SELECT catalog_entry_name ,  capacity FROM Catalog_Contents WHERE price_in_dollars  >  700
Database: product_catalog
Question: Which catalog contents has price above 700 dollars? Show their catalog entry names and capacities.
Paraphrased question: Which catalog contents has price above 700 dollars? Show their catalog entry names and capacities.
SQL: SELECT catalog_entry_name ,  capacity FROM Catalog_Contents WHERE price_in_dollars  >  700
Database: product_catalog
Question: Find the dates on which more than one revisions were made.
Paraphrased question: Find the days on which more than one revisions were made.
SQL: SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING count(*)  >  1
Database: product_catalog
Question: On which days more than one revisions were made on catalogs.
Paraphrased question: On which days more than one revisions were made on catalogs.
SQL: SELECT date_of_latest_revision FROM Catalogs GROUP BY date_of_latest_revision HAVING count(*)  >  1
Database: product_catalog
Question: How many products are there in the records?
Paraphrased question: How many goods are there in the records?
SQL: SELECT count(*) FROM catalog_contents
Database: product_catalog
Question: Find the total number of catalog contents.
Paraphrased question: Find the total number of catalog contents.
SQL: SELECT count(*) FROM catalog_contents
Database: product_catalog
Question: Name all the products with next entry ID greater than 8.
Paraphrased question: Name all the products with next entry ID greater than 8.
SQL: SELECT catalog_entry_name FROM catalog_contents WHERE next_entry_id  >  8
Database: product_catalog
Question: What are the catalog entry names of the products with next entry ID above 8?
Paraphrased question: What are the catalogue entry names of the products with next entry ID above 8?
SQL: SELECT catalog_entry_name FROM catalog_contents WHERE next_entry_id  >  8
Database: flight_1
Question: How many aircrafts do we have?
Paraphrased question: How many airplanes do we have?
SQL: SELECT count(*) FROM Aircraft
Database: flight_1
Question: How many aircrafts exist in the database?
Paraphrased question: How many airplanes exist in the database?
SQL: SELECT count(*) FROM Aircraft
Database: flight_1
Question: Show name and distance for all aircrafts.
Paraphrased question: Show name and flight length for all airplanes.
SQL: SELECT name ,  distance FROM Aircraft
Database: flight_1
Question: What are the names and distances for all airplanes?
Paraphrased question: What are the names and flight length for all airplanes?
SQL: SELECT name ,  distance FROM Aircraft
Database: flight_1
Question: Show ids for all aircrafts with more than 1000 distance.
Paraphrased question: Show ids for all airplanes with more than 1000 distance.
SQL: SELECT aid FROM Aircraft WHERE distance  >  1000
Database: flight_1
Question: What are the ids of all aircrafts that can cover a distance of more than 1000?
Paraphrased question: What are the ids of all airplanes that can cover a distance of more than 1000?
SQL: SELECT aid FROM Aircraft WHERE distance  >  1000
Database: flight_1
Question: How many aircrafts have distance between 1000 and 5000?
Paraphrased question: How many airplanes have flight length between 1000 and 5000?
SQL: SELECT count(*) FROM Aircraft WHERE distance BETWEEN 1000 AND 5000
Database: flight_1
Question: What is the count of aircrafts that have a distance between 1000 and 5000?
Paraphrased question: What is the count of plane that have a distance between 1000 and 5000?
SQL: SELECT count(*) FROM Aircraft WHERE distance BETWEEN 1000 AND 5000
Database: flight_1
Question: What is the name and distance for aircraft with id 12?
Paraphrased question: What is the name and flight length for plane with id 12?
SQL: SELECT name ,  distance FROM Aircraft WHERE aid  =  12
Database: flight_1
Question: What is the name and distance for the aircraft that has an id of 12?
Paraphrased question: What is the name and flight length for the plane that has an id of 12?
SQL: SELECT name ,  distance FROM Aircraft WHERE aid  =  12
Database: flight_1
Question: What is the minimum, average, and maximum distance of all aircrafts.
Paraphrased question: What is the minimum, average, and maximum flight length of all airplanes.
SQL: SELECT min(distance) ,  avg(distance) ,  max(distance) FROM Aircraft
Database: flight_1
Question: Return the minimum, average and maximum distances traveled across all aircrafts.
Paraphrased question: Return the minimum, average and maximum flight length traveled across all airplanes.
SQL: SELECT min(distance) ,  avg(distance) ,  max(distance) FROM Aircraft
Database: flight_1
Question: Show the id and name of the aircraft with the maximum distance.
Paraphrased question: Show the id and name of the airplane with the maximum distance.
SQL: SELECT aid ,  name FROM Aircraft ORDER BY distance DESC LIMIT 1
Database: flight_1
Question: What is the id and name of the aircraft that can cover the maximum distance?
Paraphrased question: What is the id and name of the airplane that can cover the maximum distance?
SQL: SELECT aid ,  name FROM Aircraft ORDER BY distance DESC LIMIT 1
Database: flight_1
Question: Show the name of aircrafts with top three lowest distances.
Paraphrased question: Show the name of airplanes with top three lowest distances.
SQL: SELECT name FROM Aircraft ORDER BY distance LIMIT 3
Database: flight_1
Question: What are the aircrafts with top 3 shortest lengthes? List their names.
Paraphrased question: What are the airplanes with top 3 shortest lengthes? List their names.
SQL: SELECT name FROM Aircraft ORDER BY distance LIMIT 3
Database: flight_1
Question: Show names for all aircrafts with distances more than the average.
Paraphrased question: Show names for all planes with distances more than the average.
SQL: SELECT name FROM Aircraft WHERE distance  >  (SELECT avg(distance) FROM Aircraft)
Database: flight_1
Question: What are the names of all aircrafts that can cover more distances than average?
Paraphrased question: What are the names of all planes that can cover more distances than average?
SQL: SELECT name FROM Aircraft WHERE distance  >  (SELECT avg(distance) FROM Aircraft)
Database: flight_1
Question: How many employees do we have?
Paraphrased question: How many staffs do we have?
SQL: SELECT count(*) FROM Employee
Database: flight_1
Question: What is the number of employees?
Paraphrased question: What is the number of staffs?
SQL: SELECT count(*) FROM Employee
Database: flight_1
Question: Show name and salary for all employees sorted by salary.
Paraphrased question: Show name and wage for all employees sorted by wage.
SQL: SELECT name ,  salary FROM Employee ORDER BY salary
Database: flight_1
Question: What is the name and salary of all employees in order of salary?
Paraphrased question: What is the name and wage of all staffs in order of wage?
SQL: SELECT name ,  salary FROM Employee ORDER BY salary
Database: flight_1
Question: Show ids for all employees with at least 100000 salary.
Paraphrased question: Show ids for all staffs with at least 100000 salary.
SQL: SELECT eid FROM Employee WHERE salary  >  100000
Database: flight_1
Question: What is the id of every employee who has at least a salary of  100000?
Paraphrased question: What is the id of every staff who has at least a salary of  100000?
SQL: SELECT eid FROM Employee WHERE salary  >  100000
Database: flight_1
Question: How many employees have salary between 100000 and 200000?
Paraphrased question: How many staffs have wage between 100000 and 200000?
SQL: SELECT count(*) FROM Employee WHERE salary BETWEEN 100000 AND 200000
Database: flight_1
Question: What is the number of employees that have a salary between 100000 and 200000?
Paraphrased question: What is the number of staffs that have a wage between 100000 and 200000?
SQL: SELECT count(*) FROM Employee WHERE salary BETWEEN 100000 AND 200000
Database: flight_1
Question: What is the name and salary for employee with id 242518965?
Paraphrased question: What is the name and wage for employee with id 242518965?
SQL: SELECT name ,  salary FROM Employee WHERE eid  =  242518965
Database: flight_1
Question: What is the name and salary of the employee with the id 242518965?
Paraphrased question: What is the name and wage of the employee with the id 242518965?
SQL: SELECT name ,  salary FROM Employee WHERE eid  =  242518965
Database: flight_1
Question: What is average and maximum salary of all employees.
Paraphrased question: What is average and maximum wage of all staffs.
SQL: SELECT avg(salary) ,  max(salary) FROM Employee
Database: flight_1
Question: What is the average and largest salary of all employees?
Paraphrased question: What is the average and largest wage of all employees?
SQL: SELECT avg(salary) ,  max(salary) FROM Employee
Database: flight_1
Question: Show the id and name of the employee with maximum salary.
Paraphrased question: Show the id and name of the staff with maximum wage .
SQL: SELECT eid ,  name FROM Employee ORDER BY salary DESC LIMIT 1
Database: flight_1
Question: What is the id and name of the employee with the highest salary?
Paraphrased question: What is the id and name of the staff with the highest salary?
SQL: SELECT eid ,  name FROM Employee ORDER BY salary DESC LIMIT 1
Database: flight_1
Question: Show the name of employees with three lowest salaries.
Paraphrased question: Show the name of staffs with three lowest salaries.
SQL: SELECT name FROM Employee ORDER BY salary ASC LIMIT 3
Database: flight_1
Question: What is the name of the 3 employees who get paid the least?
Paraphrased question: What is the name of the 3 staffs who get paid the least?
SQL: SELECT name FROM Employee ORDER BY salary ASC LIMIT 3
Database: flight_1
Question: Show names for all employees with salary more than the average.
Paraphrased question: Show names for all staffs with salary more than the average.
SQL: SELECT name FROM Employee WHERE salary  >  (SELECT avg(salary) FROM Employee)
Database: flight_1
Question: What are the names of all employees who have a salary higher than average?
Paraphrased question: What are the names of all staffs who have a salary higher than average?
SQL: SELECT name FROM Employee WHERE salary  >  (SELECT avg(salary) FROM Employee)
Database: flight_1
Question: Show the id and salary of Mark Young.
Paraphrased question: Show the id and wage of Mark Young.
SQL: SELECT eid ,  salary FROM Employee WHERE name  =  'Mark Young'
Database: flight_1
Question: What is the id and salary of the employee named Mark Young?
Paraphrased question: What is the id and wage of the employee named Mark Young?
SQL: SELECT eid ,  salary FROM Employee WHERE name  =  'Mark Young'
Database: flight_1
Question: How many flights do we have?
Paraphrased question: How many flights do we have?
SQL: SELECT count(*) FROM Flight
Database: flight_1
Question: What is the number of flights?
Paraphrased question: What is the number of flights?
SQL: SELECT count(*) FROM Flight
Database: flight_1
Question: Show flight number, origin, destination of all flights in the alphabetical order of the departure cities.
Paraphrased question: Show flight number, starting point, destination of all flights in the alphabetical order of the departure cities.
SQL: SELECT flno ,  origin ,  destination FROM Flight ORDER BY origin
Database: flight_1
Question: What is the flight number, origin, and destination for all flights in alphabetical order by departure cities?
Paraphrased question: What is the flight number, starting point, and destination for all flights in alphabetical order by departure cities?
SQL: SELECT flno ,  origin ,  destination FROM Flight ORDER BY origin
Database: flight_1
Question: Show all flight number from Los Angeles.
Paraphrased question: Show all flight number from Los Angeles.
SQL: SELECT flno FROM Flight WHERE origin  =  "Los Angeles"
Database: flight_1
Question: What are the numbers of all flights coming from Los Angeles?
Paraphrased question: What are the numbers of all flights coming from Los Angeles?
SQL: SELECT flno FROM Flight WHERE origin  =  "Los Angeles"
Database: flight_1
Question: Show origins of all flights with destination Honolulu.
Paraphrased question: Show starting point of all flights with terminal Honolulu.
SQL: SELECT origin FROM Flight WHERE destination  =  "Honolulu"
Database: flight_1
Question: What are the origins of all flights that are headed to Honolulu?
Paraphrased question: What are the starting point of all flights that are headed to Honolulu?
SQL: SELECT origin FROM Flight WHERE destination  =  "Honolulu"
Database: flight_1
Question: Show me the departure date and arrival date for all flights from Los Angeles to Honolulu.
Paraphrased question: Show me the leaving day and arriving day for all flights from Los Angeles to Honolulu.
SQL: SELECT departure_date ,  arrival_date FROM Flight WHERE origin  =  "Los Angeles" AND destination  =  "Honolulu"
Database: flight_1
Question: What are the departure and arrival dates of all flights from LA to Honolulu?
Paraphrased question: What are the leaving and arriving days of all flights from LA to Honolulu?
SQL: SELECT departure_date ,  arrival_date FROM Flight WHERE origin  =  "Los Angeles" AND destination  =  "Honolulu"
Database: flight_1
Question: Show flight number for all flights with more than 2000 distance.
Paraphrased question: Show flight number for all flights with more than 2000 distance.
SQL: SELECT flno FROM Flight WHERE distance  >  2000
Database: flight_1
Question: What are the numbers of all flights that can cover a distance of more than 2000?
Paraphrased question: What are the numbers of all flights that can cover a distance of more than 2000?
SQL: SELECT flno FROM Flight WHERE distance  >  2000
Database: flight_1
Question: What is the average price for flights from Los Angeles to Honolulu.
Paraphrased question: What is the average price for flights from Los Angeles to Honolulu.
SQL: SELECT avg(price) FROM Flight WHERE origin  =  "Los Angeles" AND destination  =  "Honolulu"
Database: flight_1
Question: What is the average price for flights from LA to Honolulu?
Paraphrased question: What is the average price for flights from LA to Honolulu?
SQL: SELECT avg(price) FROM Flight WHERE origin  =  "Los Angeles" AND destination  =  "Honolulu"
Database: flight_1
Question: Show origin and destination for flights with price higher than 300.
Paraphrased question: Show starting point and destination for flights with price higher than 300.
SQL: SELECT origin ,  destination FROM Flight WHERE price  >  300
Database: flight_1
Question: What is the origin and destination for all flights whose price is higher than 300?
Paraphrased question: What is the starting point and terminal for all flights whose price is higher than 300?
SQL: SELECT origin ,  destination FROM Flight WHERE price  >  300
Database: flight_1
Question: Show the flight number and distance of the flight with maximum price.
Paraphrased question: Show the flight number and flight length of the flight with maximum price.
SQL: SELECT flno ,  distance FROM Flight ORDER BY price DESC LIMIT 1
Database: flight_1
Question: What is the flight number and its distance for the one with the maximum price?
Paraphrased question: What is the flight number and its flight length for the one with the maximum price?
SQL: SELECT flno ,  distance FROM Flight ORDER BY price DESC LIMIT 1
Database: flight_1
Question: Show the flight number of flights with three lowest distances.
Paraphrased question: Show the flight number of flights with three lowest flight length.
SQL: SELECT flno FROM Flight ORDER BY distance ASC LIMIT 3
Database: flight_1
Question: What are the numbers of the shortest flights?
Paraphrased question: What are the numbers of the shortest flights?
SQL: SELECT flno FROM Flight ORDER BY distance ASC LIMIT 3
Database: flight_1
Question: What is the average distance and average price for flights from Los Angeles.
Paraphrased question: What is the average flight length and average price for flights from Los Angeles.
SQL: SELECT avg(distance) ,  avg(price) FROM Flight WHERE origin  =  "Los Angeles"
Database: flight_1
Question: What is the average distance and price for all flights from LA?
Paraphrased question: What is the average flight length and price for all flights from LA?
SQL: SELECT avg(distance) ,  avg(price) FROM Flight WHERE origin  =  "Los Angeles"
Database: flight_1
Question: Show all origins and the number of flights from each origin.
Paraphrased question: Show all starting point and the number of flights from each starting point.
SQL: SELECT origin ,  count(*) FROM Flight GROUP BY origin
Database: flight_1
Question: For each origin, how many flights came from there?
Paraphrased question: For each starting point, how many flights came from there?
SQL: SELECT origin ,  count(*) FROM Flight GROUP BY origin
Database: flight_1
Question: Show all destinations and the number of flights to each destination.
Paraphrased question: Show all destinations and the number of flights to each terminal.
SQL: SELECT destination ,  count(*) FROM Flight GROUP BY destination
Database: flight_1
Question: What are the destinations and number of flights to each one?
Paraphrased question: What are the destinations and number of flights to each one?
SQL: SELECT destination ,  count(*) FROM Flight GROUP BY destination
Database: flight_1
Question: Which origin has most number of flights?
Paraphrased question: Which starting point has most number of flights?
SQL: SELECT origin FROM Flight GROUP BY origin ORDER BY count(*) DESC LIMIT 1
Database: flight_1
Question: What place has the most flights coming from there?
Paraphrased question: What place has the most flights coming from there?
SQL: SELECT origin FROM Flight GROUP BY origin ORDER BY count(*) DESC LIMIT 1
Database: flight_1
Question: Which destination has least number of flights?
Paraphrased question: Which terminal has least number of flights?
SQL: SELECT destination FROM Flight GROUP BY destination ORDER BY count(*) LIMIT 1
Database: flight_1
Question: What destination has the fewest number of flights?
Paraphrased question: What destination has the fewest number of flights?
SQL: SELECT destination FROM Flight GROUP BY destination ORDER BY count(*) LIMIT 1
Database: flight_1
Question: What is the aircraft name for the flight with number 99
Paraphrased question: What is the airplane name for the flight with number 99
SQL: SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid WHERE T1.flno  =  99
Database: flight_1
Question: What is the name of the aircraft that was on flight number 99?
Paraphrased question: What is the name of the airplane that was on flight number 99?
SQL: SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid WHERE T1.flno  =  99
Database: flight_1
Question: Show all flight numbers with aircraft Airbus A340-300.
Paraphrased question: Show all flight numbers with airplane Airbus A340-300.
SQL: SELECT T1.flno FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid WHERE T2.name  =  "Airbus A340-300"
Database: flight_1
Question: What are the flight numbers for the aircraft Airbus A340-300?
Paraphrased question: What are the flight numbers for the airplane Airbus A340-300?
SQL: SELECT T1.flno FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid WHERE T2.name  =  "Airbus A340-300"
Database: flight_1
Question: Show aircraft names and number of flights for each aircraft.
Paraphrased question: Show plane names and number of flights for each plane.
SQL: SELECT T2.name ,  count(*) FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid GROUP BY T1.aid
Database: flight_1
Question: What is the name of each aircraft and how many flights does each one complete?
Paraphrased question: What is the name of each plane and how many flights does each one complete?
SQL: SELECT T2.name ,  count(*) FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid GROUP BY T1.aid
Database: flight_1
Question: Show names for all aircraft with at least two flights.
Paraphrased question: Show names for all plane with at least two flights.
SQL: SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid GROUP BY T1.aid HAVING count(*)  >= 2
Database: flight_1
Question: What are the names for all aircrafts with at least 2 flights?
Paraphrased question: What are the names for all planes with at least 2 flights?
SQL: SELECT T2.name FROM Flight AS T1 JOIN Aircraft AS T2 ON T1.aid  =  T2.aid GROUP BY T1.aid HAVING count(*)  >= 2
Database: flight_1
Question: How many employees have certificate.
Paraphrased question: How many staffs have certificate.
SQL: SELECT count(DISTINCT eid) FROM Certificate
Database: flight_1
Question: What is the count of distinct employees with certificates?
Paraphrased question: What is the count of different staffs with certificates?
SQL: SELECT count(DISTINCT eid) FROM Certificate
Database: flight_1
Question: Show ids for all employees who don't have a certificate.
Paraphrased question: Show ids for all staffs who don't have a certificate.
SQL: SELECT eid FROM Employee EXCEPT SELECT eid FROM Certificate
Database: flight_1
Question: What are the ids of all employees that don't have certificates?
Paraphrased question: What are the ids of all staffs that don't have certificates?
SQL: SELECT eid FROM Employee EXCEPT SELECT eid FROM Certificate
Database: flight_1
Question: Show names for all aircrafts of which John Williams has certificates.
Paraphrased question: Show names for all aircrafts of which John Williams has credentials.
SQL: SELECT T3.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T1.name  =  "John Williams"
Database: flight_1
Question: What are the names of all aircrafts that John Williams have certificates to be able to fly?
Paraphrased question: What are the names of all plane that John Williams have certificates to be able to fly?
SQL: SELECT T3.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T1.name  =  "John Williams"
Database: flight_1
Question: Show names for all employees who have certificate of Boeing 737-800.
Paraphrased question: Show names for all staffs who have certificate of Boeing 737-800.
SQL: SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  "Boeing 737-800"
Database: flight_1
Question: What are the names of all employees who have a certificate to fly Boeing 737-800?
Paraphrased question: What are the names of all staffs who have a certificate to fly Boeing 737-800?
SQL: SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  "Boeing 737-800"
Database: flight_1
Question: Show names for all employees who have certificates on both Boeing 737-800 and Airbus A340-300.
Paraphrased question: Show names for all staffs who have credentials on both Boeing 737-800 and Airbus A340-300.
SQL: SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  "Boeing 737-800" INTERSECT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  "Airbus A340-300"
Database: flight_1
Question: What are the names of all employees who can fly both the Boeing 737-800 and the Airbus A340-300?
Paraphrased question: What are the names of all staffs who can fly both the Boeing 737-800 and the Airbus A340-300?
SQL: SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  "Boeing 737-800" INTERSECT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  "Airbus A340-300"
Database: flight_1
Question: Show names for all employees who do not have certificate of Boeing 737-800.
Paraphrased question: Show names for all staffs who do not have certificate of Boeing 737-800.
SQL: SELECT name FROM Employee EXCEPT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  "Boeing 737-800"
Database: flight_1
Question: What are the names of all employees who are not certified to fly Boeing 737-800s?
Paraphrased question: What are the names of all staffs who are not certified to fly Boeing 737-800s?
SQL: SELECT name FROM Employee EXCEPT SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.name  =  "Boeing 737-800"
Database: flight_1
Question: Show the name of aircraft which fewest people have its certificate.
Paraphrased question: Show the name of plane which fewest people have its certificate.
SQL: SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid  =  T1.aid GROUP BY T1.aid ORDER BY count(*) DESC LIMIT 1
Database: flight_1
Question: What are the names of the aircraft that the least people are certified to fly?
Paraphrased question: What are the names of the plane that the least people are certified to fly?
SQL: SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid  =  T1.aid GROUP BY T1.aid ORDER BY count(*) DESC LIMIT 1
Database: flight_1
Question: Show the name and distance of the aircrafts with more than 5000 distance and which at least 5 people have its certificate.
Paraphrased question: Show the name and flight length of the aircrafts with more than 5000 distance and which at least 5 people have its certificate.
SQL: SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid  =  T1.aid WHERE T2.distance  >  5000 GROUP BY T1.aid ORDER BY count(*)  >=  5
Database: flight_1
Question: What is the name and distance of every aircraft that can cover a distance of more than 5000 and which at least 5 people can fly?
Paraphrased question: What is the name and flight length of every aircraft that can cover a distance of more than 5000 and which at least 5 people can fly?
SQL: SELECT T2.name FROM Certificate AS T1 JOIN Aircraft AS T2 ON T2.aid  =  T1.aid WHERE T2.distance  >  5000 GROUP BY T1.aid ORDER BY count(*)  >=  5
Database: flight_1
Question: what is the salary and name of the employee who has the most number of aircraft certificates?
Paraphrased question: what is the wage and name of the employee who has the most number of aircraft certificates?
SQL: SELECT T1.name ,  T1.salary FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid GROUP BY T1.eid ORDER BY count(*) DESC LIMIT 1
Database: flight_1
Question: What is the salaray and name of the employee that is certified to fly the most planes?
Paraphrased question: What is the wage and name of the employee that is certified to fly the most planes?
SQL: SELECT T1.name ,  T1.salary FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid GROUP BY T1.eid ORDER BY count(*) DESC LIMIT 1
Database: flight_1
Question: What is the salary and name of the employee who has the most number of certificates on aircrafts with distance more than 5000?
Paraphrased question: What is the wage and name of the staff who has the most number of certificates on aircrafts with distance more than 5000?
SQL: SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.distance  >  5000 GROUP BY T1.eid ORDER BY count(*) DESC LIMIT 1
Database: flight_1
Question: What is the salaray and name of the employee with the most certificates to fly planes more than 5000?
Paraphrased question: What is the wage and name of the employee with the most certificates to fly planes more than 5000?
SQL: SELECT T1.name FROM Employee AS T1 JOIN Certificate AS T2 ON T1.eid  =  T2.eid JOIN Aircraft AS T3 ON T3.aid  =  T2.aid WHERE T3.distance  >  5000 GROUP BY T1.eid ORDER BY count(*) DESC LIMIT 1
Database: allergy_1
Question: How many allergies are there?
Paraphrased question: How many hypersensitivities are there?
SQL: SELECT count(DISTINCT allergy) FROM Allergy_type
Database: allergy_1
Question: How many allergy entries are there?
Paraphrased question: How many hypersensitivity entries are there?
SQL: SELECT count(DISTINCT allergy) FROM Allergy_type
Database: allergy_1
Question: How many different allergy types exist?
Paraphrased question: How many different hypersensitivity categories exist?
SQL: SELECT count(DISTINCT allergytype) FROM Allergy_type
Database: allergy_1
Question: How many distinct allergies are there?
Paraphrased question: How many different hypersensitivities are there?
SQL: SELECT count(DISTINCT allergytype) FROM Allergy_type
Database: allergy_1
Question: Show all allergy types.
Paraphrased question: Show all hypersensitivity categories.
SQL: SELECT DISTINCT allergytype FROM Allergy_type
Database: allergy_1
Question: What are the different allergy types?
Paraphrased question: What are the different hypersensitivity categories?
SQL: SELECT DISTINCT allergytype FROM Allergy_type
Database: allergy_1
Question: Show all allergies and their types.
Paraphrased question: Show all hypersensitivities and their categories.
SQL: SELECT allergy ,  allergytype FROM Allergy_type
Database: allergy_1
Question: What are the allergies and their types?
Paraphrased question: What are the hypersensitivities and their categories?
SQL: SELECT allergy ,  allergytype FROM Allergy_type
Database: allergy_1
Question: Show all allergies with type food.
Paraphrased question: Show all hypersensitivities with type food.
SQL: SELECT DISTINCT allergy FROM Allergy_type WHERE allergytype  =  "food"
Database: allergy_1
Question: What are all the different food allergies?
Paraphrased question: What are all the different food hypersensitivities?
SQL: SELECT DISTINCT allergy FROM Allergy_type WHERE allergytype  =  "food"
Database: allergy_1
Question: What is the type of allergy Cat?
Paraphrased question: What is the category of allergy Cat?
SQL: SELECT allergytype FROM Allergy_type WHERE allergy  =  "Cat"
Database: allergy_1
Question: What is allergy type of a cat allergy?
Paraphrased question: What is allergy category of a cat allergy?
SQL: SELECT allergytype FROM Allergy_type WHERE allergy  =  "Cat"
Database: allergy_1
Question: How many allergies have type animal?
Paraphrased question: How many hypersensitivities have type animal?
SQL: SELECT count(*) FROM Allergy_type WHERE allergytype  =  "animal"
Database: allergy_1
Question: How many animal type allergies exist?
Paraphrased question: How many animal category allergies exist?
SQL: SELECT count(*) FROM Allergy_type WHERE allergytype  =  "animal"
Database: allergy_1
Question: Show all allergy types and the number of allergies in each type.
Paraphrased question: Show all hypersensitivity categories and the number of hypersensitivities in each category.
SQL: SELECT allergytype ,  count(*) FROM Allergy_type GROUP BY allergytype
Database: allergy_1
Question: What are the allergy types and how many allergies correspond to each one?
Paraphrased question: What are the hypersensitivity categories and how many hypersensitivities correspond to each one?
SQL: SELECT allergytype ,  count(*) FROM Allergy_type GROUP BY allergytype
Database: allergy_1
Question: Which allergy type has most number of allergies?
Paraphrased question: Which hypersensitivity category has most number of hypersensitivities?
SQL: SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) DESC LIMIT 1
Database: allergy_1
Question: Which allergy type is most common?
Paraphrased question: Which hypersensitivity category is most common?
SQL: SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) DESC LIMIT 1
Database: allergy_1
Question: Which allergy type has least number of allergies?
Paraphrased question: Which hypersensitivity category has least number of hypersensitivities?
SQL: SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) ASC LIMIT 1
Database: allergy_1
Question: Which allergy type is the least common?
Paraphrased question: Which hypersensitivity category is the least common?
SQL: SELECT allergytype FROM Allergy_type GROUP BY allergytype ORDER BY count(*) ASC LIMIT 1
Database: allergy_1
Question: How many students are there?
Paraphrased question: How many students are there?
SQL: SELECT count(*) FROM Student
Database: allergy_1
Question: What is the total number of students?
Paraphrased question: What is the total number of students?
SQL: SELECT count(*) FROM Student
Database: allergy_1
Question: Show first name and last name for all students.
Paraphrased question: Show forename and surname for all students.
SQL: SELECT Fname ,  Lname FROM Student
Database: allergy_1
Question: What are the full names of all students
Paraphrased question: What are the full names of all students
SQL: SELECT Fname ,  Lname FROM Student
Database: allergy_1
Question: How many different advisors are listed?
Paraphrased question: How many different advisers are listed?
SQL: SELECT count(DISTINCT advisor) FROM Student
Database: allergy_1
Question: How many advisors are there?
Paraphrased question: How many advisers are there?
SQL: SELECT count(DISTINCT advisor) FROM Student
Database: allergy_1
Question: Show all majors.
Paraphrased question: Show all discipline.
SQL: SELECT DISTINCT Major FROM Student
Database: allergy_1
Question: What are the different majors?
Paraphrased question: What are the different discipline?
SQL: SELECT DISTINCT Major FROM Student
Database: allergy_1
Question: Show all cities where students live.
Paraphrased question: Show all towns where students live.
SQL: SELECT DISTINCT city_code FROM Student
Database: allergy_1
Question: What cities do students live in?
Paraphrased question: What towns do students live in?
SQL: SELECT DISTINCT city_code FROM Student
Database: allergy_1
Question: Show first name, last name, age for all female students. Their sex is F.
Paraphrased question: Show forename, family name, age for all female students. Their sex is F.
SQL: SELECT Fname ,  Lname ,  Age FROM Student WHERE Sex  =  'F'
Database: allergy_1
Question: What are the full names and ages for all female students whose sex is F?
Paraphrased question: What are the full names and ages for all female students whose sex is F?
SQL: SELECT Fname ,  Lname ,  Age FROM Student WHERE Sex  =  'F'
Database: allergy_1
Question: Show student ids for all male students.
Paraphrased question: Show student ids for all male students.
SQL: SELECT StuID FROM Student WHERE Sex  =  'M'
Database: allergy_1
Question: What are the student ids for all male students?
Paraphrased question: What are the student ids for all male students?
SQL: SELECT StuID FROM Student WHERE Sex  =  'M'
Database: allergy_1
Question: How many students are age 18?
Paraphrased question: How many students are age 18?
SQL: SELECT count(*) FROM Student WHERE age  =  18
Database: allergy_1
Question: How many students are 18 years old?
Paraphrased question: How many students are 18 years old?
SQL: SELECT count(*) FROM Student WHERE age  =  18
Database: allergy_1
Question: Show all student ids who are older than 20.
Paraphrased question: Show all student ids who are older than 20.
SQL: SELECT StuID FROM Student WHERE age  >  20
Database: allergy_1
Question: What are the student ids for students over 20 years old?
Paraphrased question: What are the student ids for students over 20 years old?
SQL: SELECT StuID FROM Student WHERE age  >  20
Database: allergy_1
Question: Which city does the student whose last name is "Kim" live in?
Paraphrased question: Which town does the student whose surname is "Kim" live in?
SQL: SELECT city_code FROM Student WHERE LName  =  "Kim"
Database: allergy_1
Question: Give the city that the student whose family name is Kim lives in.
Paraphrased question: Give the town that the student whose surname is Kim lives in.
SQL: SELECT city_code FROM Student WHERE LName  =  "Kim"
Database: allergy_1
Question: Who is the advisor of student with ID 1004?
Paraphrased question: Who is the adviser of student with ID 1004?
SQL: SELECT Advisor FROM Student WHERE StuID  =  1004
Database: allergy_1
Question: Who advises student 1004?
Paraphrased question: Who advises student 1004?
SQL: SELECT Advisor FROM Student WHERE StuID  =  1004
Database: allergy_1
Question: How many students live in HKG or CHI?
Paraphrased question: How many students live in HKG or CHI?
SQL: SELECT count(*) FROM Student WHERE city_code  =  "HKG" OR city_code  =  "CHI"
Database: allergy_1
Question: Give the number of students living in either HKG or CHI.
Paraphrased question: Give the number of students living in either HKG or CHI.
SQL: SELECT count(*) FROM Student WHERE city_code  =  "HKG" OR city_code  =  "CHI"
Database: allergy_1
Question: Show the minimum, average, and maximum age of all students.
Paraphrased question: Show the minimum, average, and maximum age of all students.
SQL: SELECT min(age) ,  avg(age) ,  max(age) FROM Student
Database: allergy_1
Question: What is the minimum, mean, and maximum age across all students?
Paraphrased question: What is the minimum, mean, and maximum age across all students?
SQL: SELECT min(age) ,  avg(age) ,  max(age) FROM Student
Database: allergy_1
Question: What is the last name of the youngest student?
Paraphrased question: What is the surname of the youngest student?
SQL: SELECT LName FROM Student WHERE age  =  (SELECT min(age) FROM Student)
Database: allergy_1
Question: Provide the last name of the youngest student.
Paraphrased question: Provide the surname of the youngest student.
SQL: SELECT LName FROM Student WHERE age  =  (SELECT min(age) FROM Student)
Database: allergy_1
Question: Show the student id of the oldest student.
Paraphrased question: Show the student id of the oldest student.
SQL: SELECT StuID FROM Student WHERE age  =  (SELECT max(age) FROM Student)
Database: allergy_1
Question: What student id corresponds to the oldest student?
Paraphrased question: What student id corresponds to the oldest student?
SQL: SELECT StuID FROM Student WHERE age  =  (SELECT max(age) FROM Student)
Database: allergy_1
Question: Show all majors and corresponding number of students.
Paraphrased question: Show all discipline and corresponding number of students.
SQL: SELECT major ,  count(*) FROM Student GROUP BY major
Database: allergy_1
Question: How many students are there for each major?
Paraphrased question: How many students are there for each discipline?
SQL: SELECT major ,  count(*) FROM Student GROUP BY major
Database: allergy_1
Question: Which major has most number of students?
Paraphrased question: Which discipline has most number of students?
SQL: SELECT major FROM Student GROUP BY major ORDER BY count(*) DESC LIMIT 1
Database: allergy_1
Question: What is the largest major?
Paraphrased question: What is the largest discipline?
SQL: SELECT major FROM Student GROUP BY major ORDER BY count(*) DESC LIMIT 1
Database: allergy_1
Question: Show all ages and corresponding number of students.
Paraphrased question: Show all ages and corresponding number of students.
SQL: SELECT age ,  count(*) FROM Student GROUP BY age
Database: allergy_1
Question: How old is each student and how many students are each age?
Paraphrased question: How old is each student and how many students are each age?
SQL: SELECT age ,  count(*) FROM Student GROUP BY age
Database: allergy_1
Question: Show the average age for male and female students.
Paraphrased question: Show the average age for schoolboy and schoolgirl .
SQL: SELECT avg(age) ,  sex FROM Student GROUP BY sex
Database: allergy_1
Question: What are the average ages for male and female students?
Paraphrased question: What are the average ages for schoolboy and schoolgirl?
SQL: SELECT avg(age) ,  sex FROM Student GROUP BY sex
Database: allergy_1
Question: Show all cities and corresponding number of students.
Paraphrased question: Show all towns and corresponding number of students.
SQL: SELECT city_code ,  count(*) FROM Student GROUP BY city_code
Database: allergy_1
Question: How many students live in each city?
Paraphrased question: How many students live in each town?
SQL: SELECT city_code ,  count(*) FROM Student GROUP BY city_code
Database: allergy_1
Question: Show all advisors and corresponding number of students.
Paraphrased question: Show all advisers and corresponding number of students.
SQL: SELECT advisor ,  count(*) FROM Student GROUP BY advisor
Database: allergy_1
Question: How many students does each advisor have?
Paraphrased question: How many students does each adviser have?
SQL: SELECT advisor ,  count(*) FROM Student GROUP BY advisor
Database: allergy_1
Question: Which advisor has most number of students?
Paraphrased question: Which adviser has most number of students?
SQL: SELECT advisor FROM Student GROUP BY advisor ORDER BY count(*) DESC LIMIT 1
Database: allergy_1
Question: Give the advisor with the most students.
Paraphrased question: Give the adviser with the most students.
SQL: SELECT advisor FROM Student GROUP BY advisor ORDER BY count(*) DESC LIMIT 1
Database: allergy_1
Question: How many students have cat allergies?
Paraphrased question: How many students have cat allergies?
SQL: SELECT count(*) FROM Has_allergy WHERE Allergy  =  "Cat"
Database: allergy_1
Question: How many students are affected by cat allergies?
Paraphrased question: How many students are affected by cat allergies?
SQL: SELECT count(*) FROM Has_allergy WHERE Allergy  =  "Cat"
Database: allergy_1
Question: Show all student IDs who have at least two allergies.
Paraphrased question: Show all student IDs who have at least two allergies.
SQL: SELECT StuID FROM Has_allergy GROUP BY StuID HAVING count(*)  >=  2
Database: allergy_1
Question: What are the students ids of students who have more than one allergy?
Paraphrased question: What are the students ids of students who have more than one allergy?
SQL: SELECT StuID FROM Has_allergy GROUP BY StuID HAVING count(*)  >=  2
Database: allergy_1
Question: What are the student ids of students who don't have any allergies?
Paraphrased question: What are the student ids of students who don't have any allergies?
SQL: SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy
Database: allergy_1
Question: Which students are unaffected by allergies?
Paraphrased question: Which students are unaffected by allergies?
SQL: SELECT StuID FROM Student EXCEPT SELECT StuID FROM Has_allergy
Database: allergy_1
Question: How many female students have milk or egg allergies?
Paraphrased question: How many schoolgirl have milk or egg allergies?
SQL: SELECT count(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID  =  T2.StuID WHERE T2.sex  =  "F" AND T1.allergy  =  "Milk" OR T1.allergy  =  "Eggs"
Database: allergy_1
Question: How many students who are female are allergic to milk or eggs?
Paraphrased question: How many students who are female are allergic to milk or eggs?
SQL: SELECT count(*) FROM has_allergy AS T1 JOIN Student AS T2 ON T1.StuID  =  T2.StuID WHERE T2.sex  =  "F" AND T1.allergy  =  "Milk" OR T1.allergy  =  "Eggs"
Database: allergy_1
Question: How many students have a food allergy?
Paraphrased question: How many students have a food allergy?
SQL: SELECT count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy  =  T2.allergy WHERE T2.allergytype  =  "food"
Database: allergy_1
Question: How many students are affected by food related allergies?
Paraphrased question: How many students are affected by food related allergies?
SQL: SELECT count(*) FROM Has_allergy AS T1 JOIN Allergy_type AS T2 ON T1.allergy  =  T2.allergy WHERE T2.allergytype  =  "food"
Database: allergy_1
Question: Which allergy has most number of students affected?
Paraphrased question: Which hypersensitivity has most number of students affected?
SQL: SELECT Allergy FROM Has_allergy GROUP BY Allergy ORDER BY count(*) DESC LIMIT 1