Skip to content

A curated collection of practical AI projects implementing OCR systems, RAG, AI agents, and other AI use cases.

62.9 KB
Raw Blame
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many products are in each category?", "output": "SELECT category, COUNT(*) AS product_count FROM products GROUP BY category;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List all brake pad products with their prices.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Brake Pads';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Which products have stock below their reorder point?", "output": "SELECT p.name, p.brand, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock quantity for each warehouse?", "output": "SELECT w.name, SUM(sl.quantity) AS total_stock FROM warehouses w JOIN stock_levels sl ON w.warehouse_id = sl.warehouse_id GROUP BY w.warehouse_id, w.name;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show all pending orders with product names.", "output": "SELECT o.order_id, p.name, o.quantity, o.order_date FROM orders o JOIN products p ON o.product_id = p.product_id WHERE o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Which supplier has the most orders?", "output": "SELECT s.name, COUNT(o.order_id) AS order_count FROM suppliers s JOIN orders o ON s.supplier_id = o.supplier_id GROUP BY s.supplier_id, s.name ORDER BY order_count DESC LIMIT 1;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List the top 5 most expensive products.", "output": "SELECT name, brand, unit_price FROM products ORDER BY unit_price DESC LIMIT 5;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average unit price by category?", "output": "SELECT category, AVG(unit_price) AS avg_price FROM products GROUP BY category;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many orders were placed in May 2025?", "output": "SELECT COUNT(*) AS order_count FROM orders WHERE order_date LIKE '2025-05-%';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show all oil filters and their total stock across warehouses.", "output": "SELECT p.name, p.brand, SUM(sl.quantity) AS total_quantity FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE p.category = 'Oil Filters' GROUP BY p.product_id, p.name, p.brand;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Which warehouses are in California?", "output": "SELECT name, location, capacity FROM warehouses WHERE location LIKE '%CA%';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List all suppliers with lead time under 7 days.", "output": "SELECT name, contact_email, lead_time_days FROM suppliers WHERE lead_time_days < 7;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total inventory value at each warehouse?", "output": "SELECT w.name, SUM(p.unit_price * sl.quantity) AS inventory_value FROM warehouses w JOIN stock_levels sl ON w.warehouse_id = sl.warehouse_id JOIN products p ON sl.product_id = p.product_id GROUP BY w.warehouse_id, w.name;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show products ordered from AutoParts Global.", "output": "SELECT DISTINCT p.name, p.brand, p.category, p.unit_price FROM products p JOIN orders o ON p.product_id = o.product_id JOIN suppliers s ON o.supplier_id = s.supplier_id WHERE s.name = 'AutoParts Global';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many spark plugs are in stock at the East Coast Hub?", "output": "SELECT SUM(sl.quantity) AS total_spark_plugs FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Spark Plugs' AND w.name = 'East Coast Hub';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List all alternators with stock below 50 units.", "output": "SELECT p.name, p.brand, sl.quantity, w.name AS warehouse FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Alternators' AND sl.quantity < 50;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What orders are currently shipped?", "output": "SELECT o.order_id, p.name, o.quantity, o.order_date, s.name AS supplier FROM orders o JOIN products p ON o.product_id = p.product_id JOIN suppliers s ON o.supplier_id = s.supplier_id WHERE o.status = 'shipped';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Count products in the Suspension category.", "output": "SELECT COUNT(*) AS suspension_count FROM products WHERE category = 'Suspension';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show the cheapest product in each category.", "output": "SELECT category, name, MIN(unit_price) AS min_price FROM products GROUP BY category;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Which products need reordering at the Midwest Distribution warehouse?", "output": "SELECT p.name, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE w.name = 'Midwest Distribution' AND sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List all battery products and their order suppliers.", "output": "SELECT DISTINCT p.name, p.brand, p.unit_price, s.name AS supplier FROM products p JOIN orders o ON p.product_id = o.product_id JOIN suppliers s ON o.supplier_id = s.supplier_id WHERE p.category = 'Batteries';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total quantity ordered for brake pads?", "output": "SELECT SUM(o.quantity) AS total_ordered FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Brake Pads';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show warehouse capacity and current stock utilization.", "output": "SELECT w.name, w.capacity, SUM(sl.quantity) AS current_stock FROM warehouses w JOIN stock_levels sl ON w.warehouse_id = sl.warehouse_id GROUP BY w.warehouse_id, w.name, w.capacity;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Find all products with unit price over 100 dollars.", "output": "SELECT name, brand, category, unit_price FROM products WHERE unit_price > 100;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List delivered orders from June 2025.", "output": "SELECT o.order_id, p.name, o.quantity, o.order_date FROM orders o JOIN products p ON o.product_id = p.product_id WHERE o.status = 'delivered' AND o.order_date LIKE '2025-06-%';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many unique categories of products exist?", "output": "SELECT COUNT(DISTINCT category) AS category_count FROM products;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Which brake pads have less than 10 units in stock?", "output": "SELECT p.name, p.brand, sl.quantity, w.name AS warehouse FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Brake Pads' AND sl.quantity < 10;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Which warehouse has the most total stock?", "output": "SELECT w.name, SUM(sl.quantity) AS total_stock FROM warehouses w JOIN stock_levels sl ON w.warehouse_id = sl.warehouse_id GROUP BY w.warehouse_id, w.name ORDER BY total_stock DESC LIMIT 1;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List all cooling system products.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Cooling';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average order quantity?", "output": "SELECT AVG(quantity) AS avg_order_qty FROM orders;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show suppliers and the number of orders they have fulfilled.", "output": "SELECT s.name, s.lead_time_days, COUNT(o.order_id) AS order_count FROM suppliers s LEFT JOIN orders o ON s.supplier_id = o.supplier_id GROUP BY s.supplier_id, s.name, s.lead_time_days;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Find products with no orders.", "output": "SELECT p.name, p.brand FROM products p LEFT JOIN orders o ON p.product_id = o.product_id WHERE o.order_id IS NULL;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total value of pending orders?", "output": "SELECT SUM(p.unit_price * o.quantity) AS pending_value FROM orders o JOIN products p ON o.product_id = p.product_id WHERE o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List all air filter products sorted by price.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Air Filters' ORDER BY unit_price;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many stock entries exist per product on average?", "output": "SELECT AVG(stock_count) AS avg_entries FROM (SELECT product_id, COUNT(*) AS stock_count FROM stock_levels GROUP BY product_id);"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show the West Coast Depot stock for wiper products.", "output": "SELECT p.name, sl.quantity FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE w.name = 'West Coast Depot' AND p.category = 'Wipers';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Which products have stock in all warehouses?", "output": "SELECT p.name FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id GROUP BY p.product_id, p.name HAVING COUNT(DISTINCT sl.warehouse_id) = (SELECT COUNT(*) FROM warehouses);"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List orders for alternators.", "output": "SELECT o.order_id, p.name, o.quantity, o.status FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Alternators';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the maximum stock quantity for any product?", "output": "SELECT MAX(quantity) AS max_stock FROM stock_levels;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show products ordered from EuroBrake GmbH.", "output": "SELECT DISTINCT p.name, p.brand, p.unit_price FROM products p JOIN orders o ON p.product_id = o.product_id JOIN suppliers s ON o.supplier_id = s.supplier_id WHERE s.name = 'EuroBrake GmbH';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Count orders by status.", "output": "SELECT status, COUNT(*) AS order_count FROM orders GROUP BY status;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List belt products with their stock at Chicago warehouse.", "output": "SELECT p.name, sl.quantity FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Belts' AND w.location LIKE '%Chicago%';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total number of products?", "output": "SELECT COUNT(*) AS total_products FROM products;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show stock entries with the lowest quantities.", "output": "SELECT p.name, w.name AS warehouse, sl.quantity, sl.reorder_point FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id ORDER BY sl.quantity ASC LIMIT 10;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Find warehouses with capacity over 50000.", "output": "SELECT name, location, capacity FROM warehouses WHERE capacity > 50000;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List spark plug products under 10 dollars.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Spark Plugs' AND unit_price < 10;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock of brake pads across all warehouses?", "output": "SELECT SUM(sl.quantity) AS total_brake_pads FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id WHERE p.category = 'Brake Pads';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show order details for order ID 5.", "output": "SELECT o.order_id, p.name, s.name AS supplier, o.quantity, o.order_date, o.status FROM orders o JOIN products p ON o.product_id = p.product_id JOIN suppliers s ON o.supplier_id = s.supplier_id WHERE o.order_id = 5;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Which category has the highest average price?", "output": "SELECT category, AVG(unit_price) AS avg_price FROM products GROUP BY category ORDER BY avg_price DESC LIMIT 1;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List all products with their brand.", "output": "SELECT name, brand, category, unit_price FROM products ORDER BY brand, name;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List brake pads products that need reordering.", "output": "SELECT p.name, p.brand, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE p.category = 'Brake Pads' AND sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show pending orders for oil filters products.", "output": "SELECT o.order_id, p.name, o.quantity FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Oil Filters' AND o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average price of spark plugs products?", "output": "SELECT AVG(unit_price) AS avg_price FROM products WHERE category = 'Spark Plugs';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List alternators products from brand Monroe.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Alternators' AND brand = 'Monroe';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many suspension products do we have?", "output": "SELECT COUNT(*) AS count FROM products WHERE category = 'Suspension';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock of batteries at East Coast Hub?", "output": "SELECT SUM(sl.quantity) AS total FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Batteries' AND w.name = 'East Coast Hub';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List cooling products that need reordering.", "output": "SELECT p.name, p.brand, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE p.category = 'Cooling' AND sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show pending orders for belts products.", "output": "SELECT o.order_id, p.name, o.quantity FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Belts' AND o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average price of air filters products?", "output": "SELECT AVG(unit_price) AS avg_price FROM products WHERE category = 'Air Filters';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List wipers products from brand NGK.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Wipers' AND brand = 'NGK';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many brake pads products do we have?", "output": "SELECT COUNT(*) AS count FROM products WHERE category = 'Brake Pads';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock of oil filters at Midwest Distribution?", "output": "SELECT SUM(sl.quantity) AS total FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Oil Filters' AND w.name = 'Midwest Distribution';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List spark plugs products that need reordering.", "output": "SELECT p.name, p.brand, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE p.category = 'Spark Plugs' AND sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show pending orders for alternators products.", "output": "SELECT o.order_id, p.name, o.quantity FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Alternators' AND o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average price of suspension products?", "output": "SELECT AVG(unit_price) AS avg_price FROM products WHERE category = 'Suspension';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List batteries products from brand ACDelco.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Batteries' AND brand = 'ACDelco';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many cooling products do we have?", "output": "SELECT COUNT(*) AS count FROM products WHERE category = 'Cooling';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock of belts at West Coast Depot?", "output": "SELECT SUM(sl.quantity) AS total FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Belts' AND w.name = 'West Coast Depot';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List air filters products that need reordering.", "output": "SELECT p.name, p.brand, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE p.category = 'Air Filters' AND sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show pending orders for wipers products.", "output": "SELECT o.order_id, p.name, o.quantity FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Wipers' AND o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average price of brake pads products?", "output": "SELECT AVG(unit_price) AS avg_price FROM products WHERE category = 'Brake Pads';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List oil filters products from brand Wagner.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Oil Filters' AND brand = 'Wagner';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many spark plugs products do we have?", "output": "SELECT COUNT(*) AS count FROM products WHERE category = 'Spark Plugs';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock of alternators at Southern Regional?", "output": "SELECT SUM(sl.quantity) AS total FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Alternators' AND w.name = 'Southern Regional';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List suspension products that need reordering.", "output": "SELECT p.name, p.brand, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE p.category = 'Suspension' AND sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show pending orders for batteries products.", "output": "SELECT o.order_id, p.name, o.quantity FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Batteries' AND o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average price of cooling products?", "output": "SELECT AVG(unit_price) AS avg_price FROM products WHERE category = 'Cooling';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List belts products from brand Monroe.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Belts' AND brand = 'Monroe';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many air filters products do we have?", "output": "SELECT COUNT(*) AS count FROM products WHERE category = 'Air Filters';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock of wipers at Pacific Northwest?", "output": "SELECT SUM(sl.quantity) AS total FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Wipers' AND w.name = 'Pacific Northwest';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List brake pads products that need reordering.", "output": "SELECT p.name, p.brand, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE p.category = 'Brake Pads' AND sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show pending orders for oil filters products.", "output": "SELECT o.order_id, p.name, o.quantity FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Oil Filters' AND o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average price of spark plugs products?", "output": "SELECT AVG(unit_price) AS avg_price FROM products WHERE category = 'Spark Plugs';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List alternators products from brand NGK.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Alternators' AND brand = 'NGK';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many suspension products do we have?", "output": "SELECT COUNT(*) AS count FROM products WHERE category = 'Suspension';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock of batteries at East Coast Hub?", "output": "SELECT SUM(sl.quantity) AS total FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Batteries' AND w.name = 'East Coast Hub';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List cooling products that need reordering.", "output": "SELECT p.name, p.brand, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE p.category = 'Cooling' AND sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show pending orders for belts products.", "output": "SELECT o.order_id, p.name, o.quantity FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Belts' AND o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average price of air filters products?", "output": "SELECT AVG(unit_price) AS avg_price FROM products WHERE category = 'Air Filters';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List wipers products from brand ACDelco.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Wipers' AND brand = 'ACDelco';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many brake pads products do we have?", "output": "SELECT COUNT(*) AS count FROM products WHERE category = 'Brake Pads';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock of oil filters at Midwest Distribution?", "output": "SELECT SUM(sl.quantity) AS total FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Oil Filters' AND w.name = 'Midwest Distribution';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List spark plugs products that need reordering.", "output": "SELECT p.name, p.brand, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE p.category = 'Spark Plugs' AND sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show pending orders for alternators products.", "output": "SELECT o.order_id, p.name, o.quantity FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Alternators' AND o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average price of suspension products?", "output": "SELECT AVG(unit_price) AS avg_price FROM products WHERE category = 'Suspension';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List batteries products from brand Wagner.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Batteries' AND brand = 'Wagner';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many cooling products do we have?", "output": "SELECT COUNT(*) AS count FROM products WHERE category = 'Cooling';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock of belts at West Coast Depot?", "output": "SELECT SUM(sl.quantity) AS total FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Belts' AND w.name = 'West Coast Depot';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List air filters products that need reordering.", "output": "SELECT p.name, p.brand, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE p.category = 'Air Filters' AND sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show pending orders for wipers products.", "output": "SELECT o.order_id, p.name, o.quantity FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Wipers' AND o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average price of brake pads products?", "output": "SELECT AVG(unit_price) AS avg_price FROM products WHERE category = 'Brake Pads';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List oil filters products from brand Monroe.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Oil Filters' AND brand = 'Monroe';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many spark plugs products do we have?", "output": "SELECT COUNT(*) AS count FROM products WHERE category = 'Spark Plugs';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock of alternators at Southern Regional?", "output": "SELECT SUM(sl.quantity) AS total FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Alternators' AND w.name = 'Southern Regional';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List suspension products that need reordering.", "output": "SELECT p.name, p.brand, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE p.category = 'Suspension' AND sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show pending orders for batteries products.", "output": "SELECT o.order_id, p.name, o.quantity FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Batteries' AND o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average price of cooling products?", "output": "SELECT AVG(unit_price) AS avg_price FROM products WHERE category = 'Cooling';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List belts products from brand NGK.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Belts' AND brand = 'NGK';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many air filters products do we have?", "output": "SELECT COUNT(*) AS count FROM products WHERE category = 'Air Filters';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock of wipers at Pacific Northwest?", "output": "SELECT SUM(sl.quantity) AS total FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Wipers' AND w.name = 'Pacific Northwest';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List brake pads products that need reordering.", "output": "SELECT p.name, p.brand, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE p.category = 'Brake Pads' AND sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show pending orders for oil filters products.", "output": "SELECT o.order_id, p.name, o.quantity FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Oil Filters' AND o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average price of spark plugs products?", "output": "SELECT AVG(unit_price) AS avg_price FROM products WHERE category = 'Spark Plugs';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List alternators products from brand ACDelco.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Alternators' AND brand = 'ACDelco';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many suspension products do we have?", "output": "SELECT COUNT(*) AS count FROM products WHERE category = 'Suspension';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock of batteries at East Coast Hub?", "output": "SELECT SUM(sl.quantity) AS total FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Batteries' AND w.name = 'East Coast Hub';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List cooling products that need reordering.", "output": "SELECT p.name, p.brand, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE p.category = 'Cooling' AND sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show pending orders for belts products.", "output": "SELECT o.order_id, p.name, o.quantity FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Belts' AND o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average price of air filters products?", "output": "SELECT AVG(unit_price) AS avg_price FROM products WHERE category = 'Air Filters';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List wipers products from brand Wagner.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Wipers' AND brand = 'Wagner';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many brake pads products do we have?", "output": "SELECT COUNT(*) AS count FROM products WHERE category = 'Brake Pads';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock of oil filters at Midwest Distribution?", "output": "SELECT SUM(sl.quantity) AS total FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Oil Filters' AND w.name = 'Midwest Distribution';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List spark plugs products that need reordering.", "output": "SELECT p.name, p.brand, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE p.category = 'Spark Plugs' AND sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show pending orders for alternators products.", "output": "SELECT o.order_id, p.name, o.quantity FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Alternators' AND o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average price of suspension products?", "output": "SELECT AVG(unit_price) AS avg_price FROM products WHERE category = 'Suspension';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List batteries products from brand Monroe.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Batteries' AND brand = 'Monroe';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many cooling products do we have?", "output": "SELECT COUNT(*) AS count FROM products WHERE category = 'Cooling';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock of belts at West Coast Depot?", "output": "SELECT SUM(sl.quantity) AS total FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Belts' AND w.name = 'West Coast Depot';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List air filters products that need reordering.", "output": "SELECT p.name, p.brand, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE p.category = 'Air Filters' AND sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show pending orders for wipers products.", "output": "SELECT o.order_id, p.name, o.quantity FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Wipers' AND o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average price of brake pads products?", "output": "SELECT AVG(unit_price) AS avg_price FROM products WHERE category = 'Brake Pads';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List oil filters products from brand NGK.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Oil Filters' AND brand = 'NGK';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many spark plugs products do we have?", "output": "SELECT COUNT(*) AS count FROM products WHERE category = 'Spark Plugs';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock of alternators at Southern Regional?", "output": "SELECT SUM(sl.quantity) AS total FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Alternators' AND w.name = 'Southern Regional';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List suspension products that need reordering.", "output": "SELECT p.name, p.brand, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE p.category = 'Suspension' AND sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show pending orders for batteries products.", "output": "SELECT o.order_id, p.name, o.quantity FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Batteries' AND o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average price of cooling products?", "output": "SELECT AVG(unit_price) AS avg_price FROM products WHERE category = 'Cooling';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List belts products from brand ACDelco.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Belts' AND brand = 'ACDelco';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many air filters products do we have?", "output": "SELECT COUNT(*) AS count FROM products WHERE category = 'Air Filters';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock of wipers at Pacific Northwest?", "output": "SELECT SUM(sl.quantity) AS total FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Wipers' AND w.name = 'Pacific Northwest';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List brake pads products that need reordering.", "output": "SELECT p.name, p.brand, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE p.category = 'Brake Pads' AND sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show pending orders for oil filters products.", "output": "SELECT o.order_id, p.name, o.quantity FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Oil Filters' AND o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average price of spark plugs products?", "output": "SELECT AVG(unit_price) AS avg_price FROM products WHERE category = 'Spark Plugs';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List alternators products from brand Wagner.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Alternators' AND brand = 'Wagner';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many suspension products do we have?", "output": "SELECT COUNT(*) AS count FROM products WHERE category = 'Suspension';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock of batteries at East Coast Hub?", "output": "SELECT SUM(sl.quantity) AS total FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Batteries' AND w.name = 'East Coast Hub';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List cooling products that need reordering.", "output": "SELECT p.name, p.brand, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE p.category = 'Cooling' AND sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show pending orders for belts products.", "output": "SELECT o.order_id, p.name, o.quantity FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Belts' AND o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average price of air filters products?", "output": "SELECT AVG(unit_price) AS avg_price FROM products WHERE category = 'Air Filters';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List wipers products from brand Monroe.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Wipers' AND brand = 'Monroe';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many brake pads products do we have?", "output": "SELECT COUNT(*) AS count FROM products WHERE category = 'Brake Pads';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock of oil filters at Midwest Distribution?", "output": "SELECT SUM(sl.quantity) AS total FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Oil Filters' AND w.name = 'Midwest Distribution';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List spark plugs products that need reordering.", "output": "SELECT p.name, p.brand, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE p.category = 'Spark Plugs' AND sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show pending orders for alternators products.", "output": "SELECT o.order_id, p.name, o.quantity FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Alternators' AND o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average price of suspension products?", "output": "SELECT AVG(unit_price) AS avg_price FROM products WHERE category = 'Suspension';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List batteries products from brand NGK.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Batteries' AND brand = 'NGK';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many cooling products do we have?", "output": "SELECT COUNT(*) AS count FROM products WHERE category = 'Cooling';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock of belts at West Coast Depot?", "output": "SELECT SUM(sl.quantity) AS total FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Belts' AND w.name = 'West Coast Depot';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List air filters products that need reordering.", "output": "SELECT p.name, p.brand, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE p.category = 'Air Filters' AND sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show pending orders for wipers products.", "output": "SELECT o.order_id, p.name, o.quantity FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Wipers' AND o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average price of brake pads products?", "output": "SELECT AVG(unit_price) AS avg_price FROM products WHERE category = 'Brake Pads';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List oil filters products from brand ACDelco.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Oil Filters' AND brand = 'ACDelco';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many spark plugs products do we have?", "output": "SELECT COUNT(*) AS count FROM products WHERE category = 'Spark Plugs';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock of alternators at Southern Regional?", "output": "SELECT SUM(sl.quantity) AS total FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Alternators' AND w.name = 'Southern Regional';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List suspension products that need reordering.", "output": "SELECT p.name, p.brand, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE p.category = 'Suspension' AND sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show pending orders for batteries products.", "output": "SELECT o.order_id, p.name, o.quantity FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Batteries' AND o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average price of cooling products?", "output": "SELECT AVG(unit_price) AS avg_price FROM products WHERE category = 'Cooling';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List belts products from brand Wagner.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Belts' AND brand = 'Wagner';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many air filters products do we have?", "output": "SELECT COUNT(*) AS count FROM products WHERE category = 'Air Filters';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock of wipers at Pacific Northwest?", "output": "SELECT SUM(sl.quantity) AS total FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Wipers' AND w.name = 'Pacific Northwest';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List brake pads products that need reordering.", "output": "SELECT p.name, p.brand, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE p.category = 'Brake Pads' AND sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show pending orders for oil filters products.", "output": "SELECT o.order_id, p.name, o.quantity FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Oil Filters' AND o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average price of spark plugs products?", "output": "SELECT AVG(unit_price) AS avg_price FROM products WHERE category = 'Spark Plugs';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List alternators products from brand Monroe.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Alternators' AND brand = 'Monroe';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many suspension products do we have?", "output": "SELECT COUNT(*) AS count FROM products WHERE category = 'Suspension';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock of batteries at East Coast Hub?", "output": "SELECT SUM(sl.quantity) AS total FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Batteries' AND w.name = 'East Coast Hub';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List cooling products that need reordering.", "output": "SELECT p.name, p.brand, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE p.category = 'Cooling' AND sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show pending orders for belts products.", "output": "SELECT o.order_id, p.name, o.quantity FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Belts' AND o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average price of air filters products?", "output": "SELECT AVG(unit_price) AS avg_price FROM products WHERE category = 'Air Filters';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List wipers products from brand NGK.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Wipers' AND brand = 'NGK';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many brake pads products do we have?", "output": "SELECT COUNT(*) AS count FROM products WHERE category = 'Brake Pads';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock of oil filters at Midwest Distribution?", "output": "SELECT SUM(sl.quantity) AS total FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Oil Filters' AND w.name = 'Midwest Distribution';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List spark plugs products that need reordering.", "output": "SELECT p.name, p.brand, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE p.category = 'Spark Plugs' AND sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show pending orders for alternators products.", "output": "SELECT o.order_id, p.name, o.quantity FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Alternators' AND o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average price of suspension products?", "output": "SELECT AVG(unit_price) AS avg_price FROM products WHERE category = 'Suspension';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List batteries products from brand ACDelco.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Batteries' AND brand = 'ACDelco';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many cooling products do we have?", "output": "SELECT COUNT(*) AS count FROM products WHERE category = 'Cooling';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock of belts at West Coast Depot?", "output": "SELECT SUM(sl.quantity) AS total FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Belts' AND w.name = 'West Coast Depot';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List air filters products that need reordering.", "output": "SELECT p.name, p.brand, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE p.category = 'Air Filters' AND sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show pending orders for wipers products.", "output": "SELECT o.order_id, p.name, o.quantity FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Wipers' AND o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average price of brake pads products?", "output": "SELECT AVG(unit_price) AS avg_price FROM products WHERE category = 'Brake Pads';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List oil filters products from brand Wagner.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Oil Filters' AND brand = 'Wagner';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many spark plugs products do we have?", "output": "SELECT COUNT(*) AS count FROM products WHERE category = 'Spark Plugs';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock of alternators at Southern Regional?", "output": "SELECT SUM(sl.quantity) AS total FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Alternators' AND w.name = 'Southern Regional';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List suspension products that need reordering.", "output": "SELECT p.name, p.brand, sl.quantity, sl.reorder_point FROM products p JOIN stock_levels sl ON p.product_id = sl.product_id WHERE p.category = 'Suspension' AND sl.quantity < sl.reorder_point;"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: Show pending orders for batteries products.", "output": "SELECT o.order_id, p.name, o.quantity FROM orders o JOIN products p ON o.product_id = p.product_id WHERE p.category = 'Batteries' AND o.status = 'pending';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the average price of cooling products?", "output": "SELECT AVG(unit_price) AS avg_price FROM products WHERE category = 'Cooling';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: List belts products from brand Monroe.", "output": "SELECT name, brand, unit_price FROM products WHERE category = 'Belts' AND brand = 'Monroe';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: How many air filters products do we have?", "output": "SELECT COUNT(*) AS count FROM products WHERE category = 'Air Filters';"}
{"instruction": "Using the inventory database with tables: products, stock_levels, warehouses, suppliers, orders. Question: What is the total stock of wipers at Pacific Northwest?", "output": "SELECT SUM(sl.quantity) AS total FROM stock_levels sl JOIN products p ON sl.product_id = p.product_id JOIN warehouses w ON sl.warehouse_id = w.warehouse_id WHERE p.category = 'Wipers' AND w.name = 'Pacific Northwest';"}