input
stringlengths
191
7.13k
output
stringlengths
19
578
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Find the name of companies whose revenue is greater than the average revenue of all comp...
SELECT name FROM manufacturers WHERE revenue > (SELECT avg(revenue) FROM manufacturers);
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What are the names of manufacturers with revenue greater than the average of all revenue...
SELECT name FROM manufacturers WHERE revenue > (SELECT avg(revenue) FROM manufacturers);
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Find the name of companies whose revenue is smaller than the revenue of all companies ba...
SELECT name FROM manufacturers WHERE revenue < (SELECT min(revenue) FROM manufacturers WHERE headquarter = 'Austin');
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What are the names of companies with revenue less than the lowest revenue of any manufac...
SELECT name FROM manufacturers WHERE revenue < (SELECT min(revenue) FROM manufacturers WHERE headquarter = 'Austin');
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Find the total revenue of companies whose revenue is larger than the revenue of some com...
SELECT sum(revenue) FROM manufacturers WHERE revenue > (SELECT min(revenue) FROM manufacturers WHERE headquarter = 'Austin');
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What is the total revenue of companies with revenue greater than the lowest revenue of a...
SELECT sum(revenue) FROM manufacturers WHERE revenue > (SELECT min(revenue) FROM manufacturers WHERE headquarter = 'Austin');
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Find the total revenue of companies of each founder. [/INST]
SELECT sum(revenue) , founder FROM manufacturers GROUP BY founder;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What is the total revenue of companies started by founder? [/INST]
SELECT sum(revenue) , founder FROM manufacturers GROUP BY founder;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Find the name and revenue of the company that earns the highest revenue in each city. [/...
SELECT name , max(revenue) , Headquarter FROM manufacturers GROUP BY Headquarter;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What are the names and revenues of the companies with the highest revenues in each headq...
SELECT name , max(revenue) , Headquarter FROM manufacturers GROUP BY Headquarter;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Find the total revenue for each manufacturer. [/INST]
SELECT sum(revenue) , name FROM manufacturers GROUP BY name;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What is the total revenue of each manufacturer? [/INST]
SELECT sum(revenue) , name FROM manufacturers GROUP BY name;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Find the average prices of all products from each manufacture, and list each company's n...
SELECT avg(T1.price) , T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What are the average prices of products for each manufacturer? [/INST]
SELECT avg(T1.price) , T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Find the number of different products that are produced by companies at different headqu...
SELECT count(DISTINCT T1.name) , T2.Headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.Headquarter;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: How many different products are produced in each headquarter city? [/INST]
SELECT count(DISTINCT T1.name) , T2.Headquarter FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.Headquarter;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Find number of products which Sony does not make. [/INST]
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');
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: How many products are not made by Sony? [/INST]
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');
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Find the name of companies that do not make DVD drive. [/INST]
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';
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What are the names of companies that do not make DVD drives? [/INST]
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';
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Find the number of products for each manufacturer, showing the name of each company. [/I...
SELECT count(*) , T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: How many products are there for each manufacturer? [/INST]
SELECT count(*) , T2.name FROM products AS T1 JOIN manufacturers AS T2 ON T1.Manufacturer = T2.code GROUP BY T2.name;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Select the names of all the products in the store. [/INST]
SELECT Name FROM Products;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What are the names of all products? [/INST]
SELECT Name FROM Products;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Select the names and the prices of all the products in the store. [/INST]
SELECT name , price FROM products;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What are the names and prices of all products in the store? [/INST]
SELECT name , price FROM products;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Select the name of the products with a price less than or equal to $200. [/INST]
SELECT name FROM products WHERE price <= 200;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What are the names of products with price at most 200? [/INST]
SELECT name FROM products WHERE price <= 200;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Find all information of all the products with a price between $60 and $120. [/INST]
SELECT * FROM products WHERE price BETWEEN 60 AND 120;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What is all the information of all the products that have a price between 60 and 120? [/...
SELECT * FROM products WHERE price BETWEEN 60 AND 120;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Compute the average price of all the products. [/INST]
SELECT avg(price) FROM products;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What is the average price across all products? [/INST]
SELECT avg(price) FROM products;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Compute the average price of all products with manufacturer code equal to 2. [/INST]
SELECT avg(price) FROM products WHERE Manufacturer = 2;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What is the average price of products with manufacturer codes equal to 2? [/INST]
SELECT avg(price) FROM products WHERE Manufacturer = 2;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Compute the number of products with a price larger than or equal to $180. [/INST]
SELECT count(*) FROM products WHERE price >= 180;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: How many products have prices of at least 180? [/INST]
SELECT count(*) FROM products WHERE price >= 180;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Select the name and price of all products with a price larger than or equal to $180, and...
SELECT name , price FROM products WHERE price >= 180 ORDER BY price DESC , name ASC;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What are the names and prices of products that cost at least 180, sorted by price decrea...
SELECT name , price FROM products WHERE price >= 180 ORDER BY price DESC , name ASC;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Select all the data from the products and each product's manufacturer. [/INST]
SELECT * FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What is all the product data, as well as each product's manufacturer? [/INST]
SELECT * FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Select the average price of each manufacturer's products, showing only the manufacturer'...
SELECT AVG(Price) , Manufacturer FROM Products GROUP BY Manufacturer;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What are the average prices of products, grouped by manufacturer code? [/INST]
SELECT AVG(Price) , Manufacturer FROM Products GROUP BY Manufacturer;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Select the average price of each manufacturer's products, showing the manufacturer's nam...
SELECT avg(T1.Price) , T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What are the average prices of products, grouped by manufacturer name? [/INST]
SELECT avg(T1.Price) , T2.name FROM products AS T1 JOIN Manufacturers AS T2 ON T1.manufacturer = T2.code GROUP BY T2.name;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Select the names of manufacturer whose products have an average price higher than or equ...
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;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What are the names and average prices of products for manufacturers whose products cost ...
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;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Select the name and price of the cheapest product. [/INST]
SELECT name , price FROM Products ORDER BY price ASC LIMIT 1;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What is the name and price of the cheapest product? [/INST]
SELECT name , price FROM Products ORDER BY price ASC LIMIT 1;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Select the name of each manufacturer along with the name and price of its most expensive...
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;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: For each manufacturer name, what are the names and prices of their most expensive produc...
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;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: Select the code of the product that is cheapest in each product category. [/INST]
SELECT code , name , min(price) FROM products GROUP BY name;
Tables: Manufacturers, Products Columns: Manufacturers.Code, Manufacturers.Name, Manufacturers.Headquarter, Manufacturers.Founder, Manufacturers.Revenue, Products.Code, Products.Name, Products.Price, Products.Manufacturer Question: What are the codes and names of the cheapest products in each category? [/INST]
SELECT code , name , min(price) FROM products GROUP BY name;
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
SELECT problem_log_id FROM problem_log ORDER BY log_entry_date DESC LIMIT 1;
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
SELECT problem_log_id FROM problem_log ORDER BY log_entry_date DESC LIMIT 1;
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
SELECT problem_log_id , problem_id FROM problem_log ORDER BY log_entry_date LIMIT 1;
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
SELECT problem_log_id , problem_id FROM problem_log ORDER BY log_entry_date LIMIT 1;
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
SELECT problem_log_id , log_entry_date FROM problem_log WHERE problem_id = 10;
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
SELECT problem_log_id , log_entry_date FROM problem_log WHERE problem_id = 10;
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
SELECT problem_log_id , log_entry_description FROM problem_log;
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
SELECT problem_log_id , log_entry_description FROM problem_log;
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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;
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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;
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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";
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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";
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
SELECT count(*) FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id WHERE T1.product_name = "voluptatem";
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
SELECT count(*) FROM product AS T1 JOIN problems AS T2 ON T1.product_id = T2.product_id WHERE T1.product_name = "voluptatem";
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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;
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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;
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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";
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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";
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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";
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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";
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
SELECT problem_id FROM problems WHERE date_problem_reported > "1978-06-26";
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
SELECT problem_id FROM problems WHERE date_problem_reported > "1978-06-26";
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
SELECT problem_id FROM problems WHERE date_problem_reported < "1978-06-26";
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
SELECT problem_id FROM problems WHERE date_problem_reported < "1978-06-26";
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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;
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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;
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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;
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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;
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
SELECT DISTINCT product_name FROM product ORDER BY product_name;
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
SELECT DISTINCT product_name FROM product ORDER BY product_name;
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
SELECT DISTINCT product_name FROM product ORDER BY product_id;
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
SELECT DISTINCT product_name FROM product ORDER BY product_id;
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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_las...
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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_las...
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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"...
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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"...
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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" )...
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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" )...
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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" );
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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" );
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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;
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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;
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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";
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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";
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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 T...
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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 T...
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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.pr...
Tables: Problem_Category_Codes, Problem_Log, Problem_Status_Codes, Product, Staff, Problems Columns: Problem_Category_Codes.problem_category_code, Problem_Category_Codes.problem_category_description, Problem_Log.problem_log_id, Problem_Log.assigned_to_staff_id, Problem_Log.problem_id, Problem_Log.problem_category_code,...
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.pr...