aherntech/spider-syn huggingface dataset:
Database: manufactory_1
Question: What are the names, headquarters and founders of the company with the highest revenue?
Paraphrased question: What are the names, head office and establishers of the company with the highest revenue?
SQL: SELECT name ,  headquarter ,  founder FROM manufacturers ORDER BY revenue DESC LIMIT 1
Database: manufactory_1
Question: Find the name, headquarter and revenue of all manufacturers sorted by their revenue in the descending order.
Paraphrased question: Find the name, head office and total amount of income of all manufacturers sorted by their total amount of income in the descending order.
SQL: SELECT name ,  headquarter ,  revenue FROM manufacturers ORDER BY revenue DESC
Database: manufactory_1
Question: What are the names, headquarters and revenues for manufacturers, sorted by revenue descending?
Paraphrased question: What are the names, head office and total amount of incomes for manufacturers, sorted by total amount of income descending?
SQL: SELECT name ,  headquarter ,  revenue FROM manufacturers ORDER BY revenue DESC
Database: manufactory_1
Question: Find the name of companies whose revenue is greater than the average revenue of all companies.
Paraphrased question: Find the name of companies whose revenue is greater than the average revenue of all companies.
SQL: SELECT name FROM manufacturers WHERE revenue  >  (SELECT avg(revenue) FROM manufacturers)
Database: manufactory_1
Question: What are the names of manufacturers with revenue greater than the average of all revenues?
Paraphrased question: What are the names of manufacturers with total amount of income greater than the average of all total amount of incomes?
SQL: SELECT name FROM manufacturers WHERE revenue  >  (SELECT avg(revenue) FROM manufacturers)
Database: manufactory_1
Question: Find the name of companies whose revenue is smaller than the revenue of all companies based in Austin.
Paraphrased question: Find the name of enterprise whose total amount of income is smaller than the revenue of all enterprise based in Austin.
SQL: SELECT name FROM manufacturers WHERE revenue  <  (SELECT min(revenue) FROM manufacturers WHERE headquarter  =  'Austin')
Database: manufactory_1
Question: What are the names of companies with revenue less than the lowest revenue of any manufacturer in Austin?
Paraphrased question: What are the names of enterprise with total amount of income less than the lowest total amount of income of any manufacturer in Austin?
SQL: SELECT name FROM manufacturers WHERE revenue  <  (SELECT min(revenue) FROM manufacturers WHERE headquarter  =  'Austin')
Database: manufactory_1
Question: Find the total revenue of companies whose revenue is larger than the revenue of some companies based in Austin.
Paraphrased question: Find the total amount of income of enterprise whose total amount of income is larger than the total amount of income of some enterprise based in Austin.
SQL: SELECT sum(revenue) FROM manufacturers WHERE revenue  >  (SELECT min(revenue) FROM manufacturers WHERE headquarter  =  'Austin')
Database: manufactory_1
Question: What is the total revenue of companies with revenue greater than the lowest revenue of any manufacturer in Austin?
Paraphrased question: What is the total amount of income of enterprise with income greater than the lowest income of any manufacturer in Austin?
SQL: SELECT sum(revenue) FROM manufacturers WHERE revenue  >  (SELECT min(revenue) FROM manufacturers WHERE headquarter  =  'Austin')
Database: manufactory_1
Question: Find the total revenue of companies of each founder.
Paraphrased question: Find the total amount of income of enterprise of each establisher.
SQL: SELECT sum(revenue) ,  founder FROM manufacturers GROUP BY founder
Database: manufactory_1
Question: What is the total revenue of companies started by founder?
Paraphrased question: What is the total amount of income of enterprise started by establisher?
SQL: SELECT sum(revenue) ,  founder FROM manufacturers GROUP BY founder
Database: manufactory_1
Question: Find the name and revenue of the company that earns the highest revenue in each city.
Paraphrased question: Find the name and total amount of income of the enterprise that earns the highest total amount of income in each city.
SQL: SELECT name ,  max(revenue) ,  Headquarter FROM manufacturers GROUP BY Headquarter
Database: manufactory_1
Question: What are the names and revenues of the companies with the highest revenues in each headquarter city?
Paraphrased question: What are the names and total amount of incomes of the enterprise with the highest total amount of incomes in each head office city?
SQL: SELECT name ,  max(revenue) ,  Headquarter FROM manufacturers GROUP BY Headquarter
Database: manufactory_1
Question: Find the total revenue for each manufacturer.
Paraphrased question: Find the total amount of income for each manufacturer.
SQL: SELECT sum(revenue) ,  name FROM manufacturers GROUP BY name
Database: manufactory_1
Question: What is the total revenue of each manufacturer?
Paraphrased question: What is the total amount of income of each manufacturer?
SQL: SELECT sum(revenue) ,  name FROM manufacturers GROUP BY name
Database: manufactory_1
Question: Find the average prices of all products from each manufacture, and list each company's name.
Paraphrased question: Find the average prices of all goods from each manufacture, and list each enterprise's name.
SQL: SELECT avg(T1.price) ,  T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.name
Database: manufactory_1
Question: What are the average prices of products for each manufacturer?
Paraphrased question: What are the average prices of goods for each manufacturer?
SQL: SELECT avg(T1.price) ,  T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.name
Database: manufactory_1
Question: Find the number of different products that are produced by companies at different headquarter cities.
Paraphrased question: Find the number of different goods that are produced by companies at different head office cities.
SQL: SELECT count(DISTINCT T1.name) ,  T2.Headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.Headquarter
Database: manufactory_1
Question: How many different products are produced in each headquarter city?
Paraphrased question: How many different goods are produced in each head office city?
SQL: SELECT count(DISTINCT T1.name) ,  T2.Headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.Headquarter
Database: manufactory_1
Question: Find number of products which Sony does not make.
Paraphrased question: Find number of goods which Sony does not make.
SQL: SELECT count(DISTINCT name) FROM products WHERE name NOT IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T2.name  =  'Sony')
Database: manufactory_1
Question: How many products are not made by Sony?
Paraphrased question: How many goods are not made by Sony?
SQL: SELECT count(DISTINCT name) FROM products WHERE name NOT IN (SELECT T1.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T2.name  =  'Sony')
Database: manufactory_1
Question: Find the name of companies that do not make DVD drive.
Paraphrased question: Find the name of enterprise that do not make DVD drive.
SQL: SELECT name FROM manufacturers EXCEPT SELECT T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T1.name  =  'DVD drive'
Database: manufactory_1
Question: What are the names of companies that do not make DVD drives?
Paraphrased question: What are the names of enterprise that do not make DVD drives?
SQL: SELECT name FROM manufacturers EXCEPT SELECT T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code WHERE T1.name  =  'DVD drive'
Database: manufactory_1
Question: Find the number of products for each manufacturer, showing the name of each company.
Paraphrased question: Find the number of goods for each manufacturer, showing the name of each enterprise.
SQL: SELECT count(*) ,  T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.name
Database: manufactory_1
Question: How many products are there for each manufacturer?
Paraphrased question: How many goods are there for each manufacturer?
SQL: SELECT count(*) ,  T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer  =  T2.code GROUP BY T2.name
Database: manufactory_1
Question: Select the names of all the products in the store.
Paraphrased question: Select the names of all the goods in the store.
SQL: SELECT Name FROM Products
Database: manufactory_1
Question: What are the names of all products?
Paraphrased question: What are the names of all goods?
SQL: SELECT Name FROM Products
Database: manufactory_1
Question: Select the names and the prices of all the products in the store.
Paraphrased question: Select the names and the prices of all the goods in the store.
SQL: SELECT name ,  price FROM products
Database: manufactory_1
Question: What are the names and prices of all products in the store?
Paraphrased question: What are the names and prices of all goods in the store?
SQL: SELECT name ,  price FROM products
Database: manufactory_1
Question: Select the name of the products with a price less than or equal to $200.
Paraphrased question: Select the name of the goods with a price less than or equal to $200.
SQL: SELECT name FROM products WHERE price  <=  200
Database: manufactory_1
Question: What are the names of products with price at most 200?
Paraphrased question: What are the names of goods with price at most 200?
SQL: SELECT name FROM products WHERE price  <=  200
Database: manufactory_1
Question: Find all information of all the products with a price between $60 and $120.
Paraphrased question: Find all details of all the goods with a price between $60 and $120.
SQL: SELECT * FROM products WHERE price BETWEEN 60 AND 120
Database: manufactory_1
Question: What is all the information of all the products that have a price between 60 and 120?
Paraphrased question: What is all the details of all the goods that have a price between 60 and 120?
SQL: SELECT * FROM products WHERE price BETWEEN 60 AND 120
Database: manufactory_1
Question: Compute the average price of all the products.
Paraphrased question: Compute the average price of all the goods.
SQL: SELECT avg(price) FROM products
Database: manufactory_1
Question: What is the average price across all products?
Paraphrased question: What is the average price across all goods?
SQL: SELECT avg(price) FROM products
Database: manufactory_1
Question: Compute the average price of all products with manufacturer code equal to 2.
Paraphrased question: Compute the average price of all goods with manufacturer code equal to 2.
SQL: SELECT avg(price) FROM products WHERE Manufacturer  =  2
Database: manufactory_1
Question: What is the average price of products with manufacturer codes equal to 2?
Paraphrased question: What is the average price of goods with manufacturer codes equal to 2?
SQL: SELECT avg(price) FROM products WHERE Manufacturer  =  2
Database: manufactory_1
Question: Compute the number of products with a price larger than or equal to $180.
Paraphrased question: Compute the number of goods with a price larger than or equal to $180.
SQL: SELECT count(*) FROM products WHERE price >= 180
Database: manufactory_1
Question: How many products have prices of at least 180?
Paraphrased question: How many goods have prices of at least 180?
SQL: SELECT count(*) FROM products WHERE price >= 180
Database: manufactory_1
Question: Select the name and price of all products with a price larger than or equal to $180, and sort first by price (in descending order), and then by name  (in ascending order).
Paraphrased question: Select the name and price of all goods with a price larger than or equal to $180, and sort first by price (in descending order), and then by name  (in ascending order).
SQL: SELECT name ,  price FROM products WHERE price  >=  180 ORDER BY price DESC ,  name ASC
Database: manufactory_1
Question: What are the names and prices of products that cost at least 180, sorted by price decreasing and name ascending?
Paraphrased question: What are the names and prices of goods that cost at least 180, sorted by price decreasing and name ascending?
SQL: SELECT name ,  price FROM products WHERE price  >=  180 ORDER BY price DESC ,  name ASC
Database: manufactory_1
Question: Select all the data from the products and each product's manufacturer.
Paraphrased question: Select all the data from the goods and each goods's manufacturer.
SQL: SELECT * FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer  =  T2.code
Database: manufactory_1
Question: What is all the product data, as well as  each product's manufacturer?
Paraphrased question: What is all the goods data, as well as  each product's manufacturer?
SQL: SELECT * FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer  =  T2.code
Database: manufactory_1
Question: Select the average price of each manufacturer's products, showing only the manufacturer's code.
Paraphrased question: Select the average price of each manufacturer's goods, showing only the manufacturer's code.
SQL: SELECT AVG(Price) ,  Manufacturer FROM Products GROUP BY Manufacturer
Database: manufactory_1
Question: What are the average prices of products, grouped by manufacturer code?
Paraphrased question: What are the average prices of goods, grouped by manufacturer code?
SQL: SELECT AVG(Price) ,  Manufacturer FROM Products GROUP BY Manufacturer
Database: manufactory_1
Question: Select the average price of each manufacturer's products, showing the manufacturer's name.
Paraphrased question: Select the average price of each manufacturer's goods, showing the manufacturer's name.
SQL: SELECT avg(T1.Price) ,  T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer  =  T2.code GROUP BY T2.name
Database: manufactory_1
Question: What are the average prices of products, grouped by manufacturer name?
Paraphrased question: What are the average prices of goods, grouped by manufacturer name?
SQL: SELECT avg(T1.Price) ,  T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer  =  T2.code GROUP BY T2.name
Database: manufactory_1
Question: Select the names of manufacturer whose products have an average price higher than or equal to $150.
Paraphrased question: Select the names of manufacturer whose goods have an average price higher than or equal to $150.
SQL: SELECT avg(T1.Price) ,  T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer  =  T2.code GROUP BY T2.name HAVING avg(T1.price) >= 150
Database: manufactory_1
Question: What are the names and average prices of products for manufacturers whose products cost on average 150 or more?
Paraphrased question: What are the names and average prices of goods for manufacturers whose goods cost on average 150 or more?
SQL: SELECT avg(T1.Price) ,  T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer  =  T2.code GROUP BY T2.name HAVING avg(T1.price) >= 150
Database: manufactory_1
Question: Select the name and price of the cheapest product.
Paraphrased question: Select the name and price of the cheapest goods.
SQL: SELECT name ,  price FROM Products ORDER BY price ASC LIMIT 1
Database: manufactory_1
Question: What is the name and price of the cheapest product?
Paraphrased question: What is the name and price of the cheapest goods?
SQL: SELECT name ,  price FROM Products ORDER BY price ASC LIMIT 1
Database: manufactory_1
Question: Select the name of each manufacturer along with the name and price of its most expensive product.
Paraphrased question: Select the name of each manufacturer along with the name and price of its most expensive goods.
SQL: SELECT T1.Name ,  max(T1.Price) ,  T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer  =  T2.code GROUP BY T2.name
Database: manufactory_1
Question: For each manufacturer name, what are the names and prices of their most expensive product?
Paraphrased question: For each manufacturer name, what are the names and prices of their most expensive goods?
SQL: SELECT T1.Name ,  max(T1.Price) ,  T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer  =  T2.code GROUP BY T2.name
Database: manufactory_1
Question: Select the code of the product that is cheapest in each product category.
Paraphrased question: Select the number of the goods that is cheapest in each goods category.
SQL: SELECT code ,  name ,  min(price) FROM products GROUP BY name
Database: manufactory_1
Question: What are the codes and names of the cheapest products in each category?
Paraphrased question: What are the number and names of the cheapest goods in each category?
SQL: SELECT code ,  name ,  min(price) FROM products GROUP BY name
Database: tracking_software_problems
Question: What is the id of the problem log that is created most recently?
Paraphrased question: What is the id of the issue log that is created most recently?
SQL: SELECT problem_log_id FROM problem_log ORDER BY log_entry_date DESC LIMIT 1
Database: tracking_software_problems
Question: Which problem log was created most recently? Give me the log id.
Paraphrased question: Which issue log was created most recently? Give me the log id.
SQL: SELECT problem_log_id FROM problem_log ORDER BY log_entry_date DESC LIMIT 1
Database: tracking_software_problems
Question: What is the oldest log id and its corresponding problem id?
Paraphrased question: What is the oldest log id and its corresponding problem id?
SQL: SELECT problem_log_id ,  problem_id FROM problem_log ORDER BY log_entry_date LIMIT 1
Database: tracking_software_problems
Question: Find the oldest log id and its corresponding problem id.
Paraphrased question: Find the oldest log id and its corresponding issue id.
SQL: SELECT problem_log_id ,  problem_id FROM problem_log ORDER BY log_entry_date LIMIT 1
Database: tracking_software_problems
Question: Find all the ids and dates of the logs for the problem whose id is 10.
Paraphrased question: Find all the ids and day of the logs for the issue whose id is 10.
SQL: SELECT problem_log_id ,  log_entry_date FROM problem_log WHERE problem_id = 10
Database: tracking_software_problems
Question: For the problem with id 10, return the ids and dates of its problem logs.
Paraphrased question: For the issue with id 10, return the ids and day of its issue logs.
SQL: SELECT problem_log_id ,  log_entry_date FROM problem_log WHERE problem_id = 10
Database: tracking_software_problems
Question: List all the log ids and their descriptions from the problem logs.
Paraphrased question: List all the log ids and their descriptions from the issue logs.
SQL: SELECT problem_log_id ,  log_entry_description FROM problem_log
Database: tracking_software_problems
Question: What are the log id and entry description of each problem?
Paraphrased question: What are the log id and entry describing content of each issue?
SQL: SELECT problem_log_id ,  log_entry_description FROM problem_log
Database: tracking_software_problems
Question: List the first and last names of all distinct staff members who are assigned to the problem whose id is 1.
Paraphrased question: List the forename and family names of all different employee members who are assigned to the problem whose id is 1.
SQL: SELECT DISTINCT staff_first_name ,  staff_last_name FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T2.problem_id = 1
Database: tracking_software_problems
Question: Which staff members are assigned to the problem with id 1? Give me their first and last names.
Paraphrased question: Which employee members are assigned to the problem with id 1? Give me their forename and family names.
SQL: SELECT DISTINCT staff_first_name ,  staff_last_name FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T2.problem_id = 1
Database: tracking_software_problems
Question: List the problem id and log id which are assigned to the staff named Rylan Homenick.
Paraphrased question: List the issue id and log id which are assigned to the employee named Rylan Homenick.
SQL: SELECT DISTINCT T2.problem_id ,  T2.problem_log_id FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = "Rylan" AND T1.staff_last_name = "Homenick"
Database: tracking_software_problems
Question: Which problem id and log id are assigned to the staff named Rylan Homenick?
Paraphrased question: Which issue id and log id are assigned to the employee named Rylan Homenick?
SQL: SELECT DISTINCT T2.problem_id ,  T2.problem_log_id FROM staff AS T1 JOIN problem_log AS T2 ON T1.staff_id = T2.assigned_to_staff_id WHERE T1.staff_first_name = "Rylan" AND T1.staff_last_name = "Homenick"
Database: tracking_software_problems
Question: How many problems are there for product voluptatem?
Paraphrased question: How many problems are there for goods voluptatem?
SQL: SELECT count(*) FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id WHERE T1.product_name = "voluptatem"
Database: tracking_software_problems
Question: How many problems did the product called "voluptatem" have in record?
Paraphrased question: How many problems did the goods called "voluptatem" have in record?
SQL: SELECT count(*) FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id WHERE T1.product_name = "voluptatem"
Database: tracking_software_problems
Question: How many problems does the product with the most problems have? List the number of the problems and product name.
Paraphrased question: How many problems does the goods with the most problems have? List the number of the problems and goods name.
SQL: SELECT count(*) ,  T1.product_name FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_name ORDER BY count(*) DESC LIMIT 1
Database: tracking_software_problems
Question: Which product has the most problems? Give me the number of problems and the product name.
Paraphrased question: Which goods has the most problems? Give me the number of problems and the goods name.
SQL: SELECT count(*) ,  T1.product_name FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id GROUP BY T1.product_name ORDER BY count(*) DESC LIMIT 1
Database: tracking_software_problems
Question: Give me a list of descriptions of the problems that are reported by the staff whose first name is Christop.
Paraphrased question: Give me a list of descriptions of the problems that are reported by the staff whose forename is Christop.
SQL: SELECT T1.problem_description FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Christop"
Database: tracking_software_problems
Question: Which problems are reported by the staff with first name "Christop"? Show the descriptions of the problems.
Paraphrased question: Which problems are reported by the staff with first name "Christop"? Show the descriptions of the problems.
SQL: SELECT T1.problem_description FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Christop"
Database: tracking_software_problems
Question: Find the ids of the problems that are reported by the staff whose last name is Bosco.
Paraphrased question: Find the ids of the problems that are reported by the staff whose last name is Bosco.
SQL: SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_last_name = "Bosco"
Database: tracking_software_problems
Question: Which problems are reported by the staff with last name "Bosco"? Show the ids of the problems.
Paraphrased question: Which problems are reported by the staff with last name "Bosco"? Show the ids of the problems.
SQL: SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_last_name = "Bosco"
Database: tracking_software_problems
Question: What are the ids of the problems which are reported after 1978-06-26?
Paraphrased question: What are the ids of the problems which are reported after 1978-06-26?
SQL: SELECT problem_id FROM problems WHERE date_problem_reported > "1978-06-26"
Database: tracking_software_problems
Question: Find the ids of the problems reported after 1978-06-26.
Paraphrased question: Find the ids of the problems reported after 1978-06-26.
SQL: SELECT problem_id FROM problems WHERE date_problem_reported > "1978-06-26"
Database: tracking_software_problems
Question: What are the ids of the problems which are reported before 1978-06-26?
Paraphrased question: What are the ids of the problems which are reported before 1978-06-26?
SQL: SELECT problem_id FROM problems WHERE date_problem_reported < "1978-06-26"
Database: tracking_software_problems
Question: Which problems are reported before 1978-06-26? Give me the ids of the problems.
Paraphrased question: Which problems are reported before 1978-06-26? Give me the ids of the problems.
SQL: SELECT problem_id FROM problems WHERE date_problem_reported < "1978-06-26"
Database: tracking_software_problems
Question: For each product which has problems, what are the number of problems and the product id?
Paraphrased question: For each goods which has problems, what are the number of problems and the goods id?
SQL: SELECT count(*) ,  T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_id
Database: tracking_software_problems
Question: For each product with some problems, list the count of problems and the product id.
Paraphrased question: For each goods with some problems, list the count of problems and the goods id.
SQL: SELECT count(*) ,  T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_id
Database: tracking_software_problems
Question: For each product that has problems, find the number of problems reported after 1986-11-13 and the product id?
Paraphrased question: For each goods that has problems, find the number of problems reported after 1986-11-13 and the goods id?
SQL: SELECT count(*) ,  T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > "1986-11-13" GROUP BY T2.product_id
Database: tracking_software_problems
Question: What are the products that have problems reported after 1986-11-13? Give me the product id and the count of problems reported after 1986-11-13.
Paraphrased question: What are the goods that have problems reported after 1986-11-13? Give me the goods id and the count of problems reported after 1986-11-13.
SQL: SELECT count(*) ,  T2.product_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T1.date_problem_reported > "1986-11-13" GROUP BY T2.product_id
Database: tracking_software_problems
Question: List the names of all the distinct product names in alphabetical order?
Paraphrased question: List the names of all the different goods names in alphabetical order?
SQL: SELECT DISTINCT product_name FROM product ORDER BY product_name
Database: tracking_software_problems
Question: Sort all the distinct product names in alphabetical order.
Paraphrased question: Sort all the different goods names in alphabetical order.
SQL: SELECT DISTINCT product_name FROM product ORDER BY product_name
Database: tracking_software_problems
Question: List all the distinct product names ordered by product id?
Paraphrased question: List all the different goods names ordered by goods id?
SQL: SELECT DISTINCT product_name FROM product ORDER BY product_id
Database: tracking_software_problems
Question: What is the list of distinct product names sorted by product id?
Paraphrased question: What is the list of different goods names sorted by goods id?
SQL: SELECT DISTINCT product_name FROM product ORDER BY product_id
Database: tracking_software_problems
Question: What are the id of problems reported by the staff named Dameon Frami or Jolie Weber?
Paraphrased question: What are the id of problems reported by the staff named Dameon Frami or Jolie Weber?
SQL: SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Dameon" AND T2.staff_last_name = "Frami" UNION SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Jolie" AND T2.staff_last_name = "Weber"
Database: tracking_software_problems
Question: Which problems were reported by the staff named Dameon Frami or Jolie Weber? Give me the ids of the problems.
Paraphrased question: Which problems were reported by the staff named Dameon Frami or Jolie Weber? Give me the ids of the problems.
SQL: SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Dameon" AND T2.staff_last_name = "Frami" UNION SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Jolie" AND T2.staff_last_name = "Weber"
Database: tracking_software_problems
Question: What are the product ids for the problems reported by Christop Berge with closure authorised by Ashley Medhurst?
Paraphrased question: What are the goods ids for the problems reported by Christop Berge with closure authorised by Ashley Medhurst?
SQL: SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Christop" AND T2.staff_last_name = "Berge" INTERSECT SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.closure_authorised_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Ashley" AND T2.staff_last_name = "Medhurst"
Database: tracking_software_problems
Question: For which product was there a problem reported by Christop Berge, with closure authorised by Ashley Medhurst? Return the product ids.
Paraphrased question: For which goods was there a problem reported by Christop Berge, with closure authorised by Ashley Medhurst? Return the goods ids.
SQL: SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Christop" AND T2.staff_last_name = "Berge" INTERSECT SELECT product_id FROM problems AS T1 JOIN staff AS T2 ON T1.closure_authorised_by_staff_id = T2.staff_id WHERE T2.staff_first_name = "Ashley" AND T2.staff_last_name = "Medhurst"
Database: tracking_software_problems
Question: What are the ids of the problems reported before the date of any problem reported by Lysanne Turcotte?
Paraphrased question: What are the ids of the problems reported before the date of any problem reported by Lysanne Turcotte?
SQL: SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported  <  ( SELECT min(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = "Lysanne" AND T4.staff_last_name = "Turcotte" )
Database: tracking_software_problems
Question: Which problems were reported before the date of any problem reported by the staff Lysanne Turcotte? Give me the ids of the problems.
Paraphrased question: Which problems were reported before the date of any problem reported by the staff Lysanne Turcotte? Give me the ids of the problems.
SQL: SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported  <  ( SELECT min(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = "Lysanne" AND T4.staff_last_name = "Turcotte" )
Database: tracking_software_problems
Question: What are the ids of the problems reported after the date of any problems reported by Rylan Homenick?
Paraphrased question: What are the ids of the problems reported after the date of any problems reported by Rylan Homenick?
SQL: SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported  >  ( SELECT max(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = "Rylan" AND T4.staff_last_name = "Homenick" )
Database: tracking_software_problems
Question: Find the ids of the problems reported after the date of any problems reported by the staff Rylan Homenick.
Paraphrased question: Find the ids of the problems reported after the date of any problems reported by the staff Rylan Homenick.
SQL: SELECT T1.problem_id FROM problems AS T1 JOIN staff AS T2 ON T1.reported_by_staff_id = T2.staff_id WHERE date_problem_reported  >  ( SELECT max(date_problem_reported) FROM problems AS T3 JOIN staff AS T4 ON T3.reported_by_staff_id = T4.staff_id WHERE T4.staff_first_name = "Rylan" AND T4.staff_last_name = "Homenick" )
Database: tracking_software_problems
Question: Find the top 3 products which have the largest number of problems?
Paraphrased question: Find the top 3 goods which have the largest number of problems?
SQL: SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name ORDER BY count(*) DESC LIMIT 3
Database: tracking_software_problems
Question: What are the three products that have the most problems?s
Paraphrased question: What are the three goods that have the most problems?s
SQL: SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id GROUP BY T2.product_name ORDER BY count(*) DESC LIMIT 3
Database: tracking_software_problems
Question: List the ids of the problems from the product "voluptatem" that are reported after 1995?
Paraphrased question: List the ids of the problems from the goods "voluptatem" that are reported after 1995?
SQL: SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = "voluptatem" AND T1.date_problem_reported > "1995"
Database: tracking_software_problems
Question: What are the ids of the problems that are from the product "voluptatem" and are reported after 1995?
Paraphrased question: What are the ids of the problems that are from the goods "voluptatem" and are reported after 1995?
SQL: SELECT T1.problem_id FROM problems AS T1 JOIN product AS T2 ON T1.product_id = T2.product_id WHERE T2.product_name = "voluptatem" AND T1.date_problem_reported > "1995"
Database: tracking_software_problems
Question: Find the first and last name of the staff members who reported problems from the product "rem" but not "aut"?
Paraphrased question: Find the forename and surname of the employee members who reported problems from the goods "rem" but not "aut"?
SQL: SELECT T3.staff_first_name ,  T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = "rem" EXCEPT SELECT T3.staff_first_name ,  T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = "aut"
Database: tracking_software_problems
Question: Which staff members who reported problems from the product "rem" but not "aut"? Give me their first and last names.
Paraphrased question: Which employee members who reported problems from the goods "rem" but not "aut"? Give me their full names.
SQL: SELECT T3.staff_first_name ,  T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = "rem" EXCEPT SELECT T3.staff_first_name ,  T3.staff_last_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T2.product_name = "aut"
Database: tracking_software_problems
Question: Find the products which have problems reported by both Lacey Bosco and Kenton Champlin?
Paraphrased question: Find the goods which have problems reported by both Lacey Bosco and Kenton Champlin?
SQL: SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = "Lacey" AND T3.staff_last_name = "Bosco" INTERSECT SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = "Kenton" AND T3.staff_last_name = "Champlin"
Database: tracking_software_problems
Question: Which products have problems reported by both the staff named Lacey Bosco and the staff named Kenton Champlin?
Paraphrased question: Which goods have problems reported by both the staff named Lacey Bosco and the staff named Kenton Champlin?
SQL: SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = "Lacey" AND T3.staff_last_name = "Bosco" INTERSECT SELECT T2.product_name FROM problems AS T1 JOIN product AS T2 JOIN staff AS T3 ON T1.product_id = T2.product_id AND T1.reported_by_staff_id = T3.staff_id WHERE T3.staff_first_name = "Kenton" AND T3.staff_last_name = "Champlin"
Database: shop_membership
Question: How many branches where have more than average number of memberships are there?
Paraphrased question: How many branches where have more than average number of memberships are there?
SQL: SELECT count(*) FROM branch WHERE membership_amount  >  (SELECT avg(membership_amount) FROM branch)
Database: shop_membership
Question: What is the number of branches that have more than the average number of memberships?
Paraphrased question: What is the number of branches that have more than the average number of memberships?
SQL: SELECT count(*) FROM branch WHERE membership_amount  >  (SELECT avg(membership_amount) FROM branch)
Database: shop_membership
Question: Show name, address road, and city for all branches sorted by open year.
Paraphrased question: Show name, location road, and city for all branches sorted by year of opening.
SQL: SELECT name ,  address_road ,  city FROM branch ORDER BY open_year
Database: shop_membership
Question: What are the names, address roads, and cities of the branches ordered by opening year?
Paraphrased question: What are the names, location roads, and cities of the branches ordered by opening year?
SQL: SELECT name ,  address_road ,  city FROM branch ORDER BY open_year
Database: shop_membership
Question: What are names for top three branches with most number of membership?
Paraphrased question: What are names for top three branches with most number of membership?
SQL: SELECT name FROM branch ORDER BY membership_amount DESC LIMIT 3
Database: shop_membership
Question: What are the names for the 3 branches that have the most memberships?
Paraphrased question: What are the names for the 3 branches that have the most memberships?
SQL: SELECT name FROM branch ORDER BY membership_amount DESC LIMIT 3
Database: shop_membership
Question: Show all distinct city where branches with at least 100 memberships are located.
Paraphrased question: Show all different city where branches with at least 100 memberships are located.
SQL: SELECT DISTINCT city FROM branch WHERE membership_amount  >=  100
Database: shop_membership
Question: What are the different cities that have more than 100 memberships?
Paraphrased question: What are the different cities that have more than 100 memberships?
SQL: SELECT DISTINCT city FROM branch WHERE membership_amount  >=  100
Database: shop_membership
Question: List all open years when at least two shops are opened.
Paraphrased question: List all open years when at least two shops are opened.
SQL: SELECT open_year FROM branch GROUP BY open_year HAVING count(*)  >=  2
Database: shop_membership
Question: What are the opening years in which at least two shops opened?
Paraphrased question: What are the opening years in which at least two shops opened?
SQL: SELECT open_year FROM branch GROUP BY open_year HAVING count(*)  >=  2
Database: shop_membership
Question: Show minimum and maximum amount of memberships for all branches opened in 2011 or located at city London.
Paraphrased question: Show minimum and maximum amount of memberships for all branches opened in 2011 or located at city London.
SQL: SELECT min(membership_amount) ,  max(membership_amount) FROM branch WHERE open_year  =  2011 OR city  =  'London'
Database: shop_membership
Question: What are the minimum and maximum membership amounts for all branches that either opened in 2011 or are located in London?
Paraphrased question: What are the minimum and maximum membership amounts for all branches that either opened in 2011 or are located in London?
SQL: SELECT min(membership_amount) ,  max(membership_amount) FROM branch WHERE open_year  =  2011 OR city  =  'London'
Database: shop_membership
Question: Show the city and the number of branches opened before 2010 for each city.
Paraphrased question: Show the city and the number of branches opened before 2010 for each city.
SQL: SELECT city ,  count(*) FROM branch WHERE open_year  <  2010 GROUP BY city
Database: shop_membership
Question: For each city, how many branches opened before 2010?
Paraphrased question: For each city, how many branches opened before 2010?
SQL: SELECT city ,  count(*) FROM branch WHERE open_year  <  2010 GROUP BY city
Database: shop_membership
Question: How many different levels do members have?
Paraphrased question: How many different ranks do members have?
SQL: SELECT count(DISTINCT LEVEL) FROM member
Database: shop_membership
Question: What are the different membership levels?
Paraphrased question: What are the different membership ranks?
SQL: SELECT count(DISTINCT LEVEL) FROM member
Database: shop_membership
Question: Show card number, name, and hometown for all members in a descending order of level.
Paraphrased question: Show card number, name, and birthplace for all members in a descending order of level.
SQL: SELECT card_number ,  name ,  hometown FROM member ORDER BY LEVEL DESC
Database: shop_membership
Question: What are the card numbers, names, and hometowns of every member ordered by descending level?
Paraphrased question: What are the card numbers, names, and birthplace of every member ordered by descending level?
SQL: SELECT card_number ,  name ,  hometown FROM member ORDER BY LEVEL DESC
Database: shop_membership
Question: Show the membership level with most number of members.
Paraphrased question: Show the membership rank with most number of members.
SQL: SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY count(*) DESC LIMIT 1
Database: shop_membership
Question: What is the membership level with the most people?
Paraphrased question: What is the membership rank with the most people?
SQL: SELECT LEVEL FROM member GROUP BY LEVEL ORDER BY count(*) DESC LIMIT 1
Database: shop_membership
Question: Show all member names and registered branch names sorted by register year.
Paraphrased question: Show all member names and registered branch names sorted by register year.
SQL: SELECT T3.name ,  T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id JOIN member AS T3 ON T1.member_id  =  T3.member_id ORDER BY T1.register_year
Database: shop_membership
Question: What are the names of the members and branches at which they are registered sorted by year of registration?
Paraphrased question: What are the names of the members and branches at which they are registered sorted by year of registration?
SQL: SELECT T3.name ,  T2.name FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id JOIN member AS T3 ON T1.member_id  =  T3.member_id ORDER BY T1.register_year
Database: shop_membership
Question: Show all branch names with the number of members in each branch registered after 2015.
Paraphrased question: Show all branch names with the number of members in each branch registered after 2015.
SQL: SELECT T2.name ,  count(*) FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id WHERE T1.register_year  >  2015 GROUP BY T2.branch_id
Database: shop_membership
Question: For each branch id, what are the names of the branches that were registered after 2015?
Paraphrased question: For each branch id, what are the names of the branches that were registered after 2015?
SQL: SELECT T2.name ,  count(*) FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id WHERE T1.register_year  >  2015 GROUP BY T2.branch_id
Database: shop_membership
Question: Show member names without any registered branch.
Paraphrased question: Show member names without any registered branch.
SQL: SELECT name FROM member WHERE member_id NOT IN (SELECT member_id FROM membership_register_branch)
Database: shop_membership
Question: What are the names of the members that have never registered at any branch?
Paraphrased question: What are the names of the members that have never registered at any branch?
SQL: SELECT name FROM member WHERE member_id NOT IN (SELECT member_id FROM membership_register_branch)
Database: shop_membership
Question: List the branch name and city without any registered members.
Paraphrased question: List the branch name and city without any registered members.
SQL: SELECT name ,  city FROM branch WHERE branch_id NOT IN (SELECT branch_id FROM membership_register_branch)
Database: shop_membership
Question: What are the names and cities of the branches that do not have any registered members?
Paraphrased question: What are the names and cities of the branches that do not have any registered members?
SQL: SELECT name ,  city FROM branch WHERE branch_id NOT IN (SELECT branch_id FROM membership_register_branch)
Database: shop_membership
Question: What is the name and open year for the branch with most number of memberships registered in 2016?
Paraphrased question: What is the name and open year for the branch with most number of memberships registered in 2016?
SQL: SELECT T2.name ,  T2.open_year FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id WHERE T1.register_year  =  2016 GROUP BY T2.branch_id ORDER BY count(*) DESC LIMIT 1
Database: shop_membership
Question: What is the name and opening year for the branch that registered the most members in 2016?
Paraphrased question: What is the name and opening year for the branch that registered the most members in 2016?
SQL: SELECT T2.name ,  T2.open_year FROM membership_register_branch AS T1 JOIN branch AS T2 ON T1.branch_id  =  T2.branch_id WHERE T1.register_year  =  2016 GROUP BY T2.branch_id ORDER BY count(*) DESC LIMIT 1
Database: shop_membership
Question: Show the member name and hometown who registered a branch in 2016.
Paraphrased question: Show the member name and birthplace who registered a branch in 2016.
SQL: SELECT T2.name ,  T2.hometown FROM membership_register_branch AS T1 JOIN member AS T2 ON T1.member_id  =  T2.member_id WHERE T1.register_year  =  2016
Database: shop_membership
Question: What are the member names and hometowns of those who registered at a branch in 2016?
Paraphrased question: What are the member names and birthplaces of those who registered at a branch in 2016?
SQL: SELECT T2.name ,  T2.hometown FROM membership_register_branch AS T1 JOIN member AS T2 ON T1.member_id  =  T2.member_id WHERE T1.register_year  =  2016
Database: shop_membership
Question: Show all city with a branch opened in 2001 and a branch with more than 100 membership.
Paraphrased question: Show all city with a branch opened in 2001 and a branch with more than 100 membership.
SQL: SELECT city FROM branch WHERE open_year  =  2001 AND membership_amount  >  100
Database: shop_membership
Question: What are the cities that have a branch that opened in 2001 and a branch with more than 100 members?
Paraphrased question: What are the cities that have a branch that opened in 2001 and a branch with more than 100 members?
SQL: SELECT city FROM branch WHERE open_year  =  2001 AND membership_amount  >  100
Database: shop_membership
Question: Show all cities without a branch having more than 100 memberships.
Paraphrased question: Show all cities without a branch having more than 100 memberships.
SQL: SELECT city FROM branch EXCEPT SELECT city FROM branch WHERE membership_amount  >  100
Database: shop_membership
Question: What are the cities that do not have any branches with more than 100 members?
Paraphrased question: What are the cities that do not have any branches with more than 100 members?
SQL: SELECT city FROM branch EXCEPT SELECT city FROM branch WHERE membership_amount  >  100