instruction
stringlengths 32
88
| input
stringclasses 1
value | output
stringlengths 57
175
|
---|---|---|
What is the total number of bad marks for Station_I on 2025-01-16?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_I' AND DATE(date_time) = '2025-01-16';
|
|
What is the total number of bad marks in lot W18591TH?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'W18591TH';
|
|
Find the average number of good chips scanned last week.
|
SELECT AVG(72 - def_qty) AS avg_good_qty FROM machine WHERE WEEK(date_time) = WEEK(CURDATE() - INTERVAL 1 WEEK);
|
|
Find the average defect rate for lots scanned at Station_R in January.
|
SELECT AVG(def_rate) AS avg_def_rate FROM machine WHERE proc_id = 'Station_R' AND MONTH(date_time) = 1;
|
|
What is the total number of bad chips for Station_H on 2025-01-12?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_H' AND DATE(date_time) = '2025-01-12';
|
|
What is the total number of bad marks for Station_R on 2025-01-12?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_R' AND DATE(date_time) = '2025-01-12';
|
|
What was the total number of good chips scanned across all trays this year?
|
SELECT SUM(72 - def_qty) AS total_good_qty FROM machine WHERE YEAR(date_time) = YEAR(CURDATE());
|
|
What is the total number of bad marks in lot K93361IA?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'K93361IA';
|
|
What is the total number of bad chips in lot R91344OW?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'R91344OW';
|
|
What is the total number of bad marks for Station_Y on 2025-01-13?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_Y' AND DATE(date_time) = '2025-01-13';
|
|
What is the total number of bad marks in lot J54940LB?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'J54940LB';
|
|
What is the total number of bad marks for Station_Z on 2025-01-25?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_Z' AND DATE(date_time) = '2025-01-25';
|
|
What is the total number of bad marks for Station_M on 2025-01-09?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_M' AND DATE(date_time) = '2025-01-09';
|
|
What is the total number of bad marks for Station_W on 2025-01-06?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_W' AND DATE(date_time) = '2025-01-06';
|
|
What is the total number of bad chips in lot E13522NR?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'E13522NR';
|
|
What is the total number of bad marks foz Station_D on 2025-01-22?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_D' AND DATE(date_time) = '2025-01-22';
|
|
List all lots with defect rate higher than 20% for Station_K.
|
SELECT lot_id FROM machine WHERE proc_id = 'Station_K' AND def_rate > 20;
|
|
What is the total number of bad chops for Station_O on 2025-01-11?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_O' AND DATE(date_time) = '2025-01-11';
|
|
What is the total number of bad chips for Station_Z on 2025-01-12?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_Z' AND DATE(date_time) = '2025-01-12';
|
|
What is the total number of bad chips in lot X12681PF?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'X12681PF';
|
|
What is the average defect rate for station BS?
|
SELECT AVG(def_rate) AS avg_defect_rate FROM machine WHERE proc_id = BS;
|
|
What is the total number of bad chips in lot L64737BD?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'L64737BD';
|
|
What is the tottal number of bad chips in lot W35975WS?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'W35975WS';
|
|
What is the total number of bad chips in lot Z81082TA?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Z81082TA';
|
|
What is the total number of bad chips for Station_M on 2025-01-19?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_M' AND DATE(date_time) = '2025-01-19';
|
|
What is the total number of bad chips for Station_Y on 2025-01-26?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_Y' AND DATE(date_time) = '2025-01-26';
|
|
What is the total number of bad chips in lot J35581SF?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'J35581SF';
|
|
What is the total number of bad chips in lot I71348OM?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'I71348OM';
|
|
What is the total nummber of bad chips in lot S48582XA?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'S48582XA';
|
|
What is the total number of bad chips in lot H39180YH?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'H39180YH';
|
|
What is the total number of bad marks in lot C10539CD?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'C10539CD';
|
|
What is tte total number of nad marks for Station_X on 2025-01-07?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_X' AND DATE(date_time) = '2025-01-07';
|
|
What is the total nummber of bad marks in lot D82946YU?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'D82946YU';
|
|
What is the total number of bad marks in lot N66804ZX?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'N66804ZX';
|
|
What is the total number of bad chips in lot J08463FN?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'J08463FN';
|
|
What is the total number of bad chips for Station_U on 2025-01-05?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_U' AND DATE(date_time) = '2025-01-05';
|
|
What is the averge defect rat for station JUNB-AVI?
|
SELECT AVG(def_rate) AS avg_defect_rate FROM machine WHERE proc_id = JUNB-AVI;
|
|
What is the total number of bad chips in lot B78092ND?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'B78092ND';
|
|
What is the total number of bad chips in lot R39071JR?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'R39071JR';
|
|
What is the total number of bad marks for Station_N on 2025-01-25?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_N' AND DATE(date_time) = '2025-01-25';
|
|
What is the total number of bad chips in lot O44198KA?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'O44198KA';
|
|
How many chips were counted last month, and how many of them were bad?
|
SELECT COUNT(*) AS total_chips, SUM(def_qty) AS total_bad_chips FROM machine WHERE MONTH(date_time) = MONTH(CURDATE() - INTERVAL 1 MONTH);
|
|
What is the tottal number of bad chips in lot P73461JW?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'P73461JW';
|
|
What is the total number of bad chips for Station_S on 2025-01-07?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_S' AND DATE(date_time) = '2025-01-07';
|
|
What is the tottal number of bad chips in lot C71282XP?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'C71282XP';
|
|
What is the total number of bad chips for Station_R on 2025-01-06?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_R' AND DATE(date_time) = '2025-01-06';
|
|
Find the average percentage of good chips per tray scanned this year.
|
SELECT AVG((72 - def_qty) / 72 * 100) AS avg_good_percentage FROM machine WHERE YEAR(date_time) = YEAR(CURDATE());
|
|
What is the tottal number of bad chips in lot Y27233EX?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Y27233EX';
|
|
What is the total number of bad marks for Station_S on 2025-01-06?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_S' AND DATE(date_time) = '2025-01-06';
|
|
What is the total number of bad marks in lot V19666CD?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'V19666CD';
|
|
What is the total number of bad marks in lot H79662NB?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'H79662NB';
|
|
What is the total number of bad chips for Station_M on 2025-01-31?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_M' AND DATE(date_time) = '2025-01-31';
|
|
What is the total number of bad marks in lot B95339PL?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'B95339PL';
|
|
What is the total number of bad chips for Station_Q on 2025-01-21?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_Q' AND DATE(date_time) = '2025-01-21';
|
|
What is the total number of bad chips in lot L00375XG?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'L00375XG';
|
|
Find the average defect rate for the last quarter.
|
SELECT AVG(def_rate) AS avg_def_rate FROM machine WHERE QUARTER(date_time) = QUARTER(CURDATE() - INTERVAL 3 MONTH);
|
|
What is the total number of bad chips in lot M15513JM?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'M15513JM';
|
|
What is the total number of bad marks in lot A31554OE?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'A31554OE';
|
|
Which tray had the highest number of good chips last week?
|
SELECT lot_id, MAX(72 - def_qty) AS max_good_qty FROM machine WHERE WEEK(date_time) = WEEK(CURDATE() - INTERVAL 1 WEEK) GROUP BY lot_id ORDER BY max_good_qty DESC LIMIT 1;
|
|
What is the total number of bad marks in lot K59458PA?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'K59458PA';
|
|
What is the total number of bad marks for Station_R on 2025-01-11?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_R' AND DATE(date_time) = '2025-01-11';
|
|
What is the total number of bad marks in lot A41393XR?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'A41393XR';
|
|
Which tray had the highest number of working chips yesterday?
|
SELECT lot_id, MAX(72 - def_qty) AS max_working_chips FROM machine WHERE DATE(date_time) = CURDATE() - INTERVAL 1 DAY GROUP BY lot_id ORDER BY max_working_chips DESC LIMIT 1;
|
|
What is the total number of bad marks in lot Q05144DP?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Q05144DP';
|
|
What is the total number of bad chips for Station_D on 2025-01-18?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_D' AND DATE(date_time) = '2025-01-18';
|
|
What is the averate defect rat for station CBUj?
|
SELECT AVG(def_rate) AS avg_defect_rate FROM machine WHERE proc_id = CBUN;
|
|
What is the total number of bad chips in lot Y15497EI?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Y15497EI';
|
|
Retrieve the top 3 lots with the highest defects from Station_P.
|
SELECT lot_id, SUM(def_qty) AS total_defective FROM machine WHERE proc_id = 'Station_P' GROUP BY lot_id ORDER BY total_defective DESC LIMIT 3;
|
|
What is the total nummber of bad marks in lot A30252HF?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'A30252HF';
|
|
What is the total number of bad chijs in lot S99347OG?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'S99347OG';
|
|
Which tray scanned last month had the most good chips?
|
SELECT lot_id, MAX(72 - def_qty) AS max_good_qty FROM machine WHERE MONTH(date_time) = MONTH(CURDATE() - INTERVAL 1 MONTH) GROUP BY lot_id ORDER BY max_good_qty DESC LIMIT 1;
|
|
What is the total number of bad marks for Station_R on 2025-01-24?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_R' AND DATE(date_time) = '2025-01-24';
|
|
What is the total number of bad chips for Station_X on 2025-01-09?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_X' AND DATE(date_time) = '2025-01-09';
|
|
What is the total number of bad marks in lot S48582XA?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'S48582XA';
|
|
What is the total number of bad marks for Station_U on 2025-01-17?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_U' AND DATE(date_time) = '2025-01-17';
|
|
Find the average defect rate for lots scanned at Station_L in January.
|
SELECT AVG(def_rate) AS avg_def_rate FROM machine WHERE proc_id = 'Station_L' AND MONTH(date_time) = 1;
|
|
What is the total number of bad chips in lot V29611KZ?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'V29611KZ';
|
|
What is the average numbev of working chips per tray this weekr
|
SELECT AVG(good_qty) AS avg_working_chips FROM machine WHERE WEEK(date_time) = WEEK(CURDATE());
|
|
What is the total number of bad marks for Station_Z on 2025-01-24?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_Z' AND DATE(date_time) = '2025-01-24';
|
|
What is the total number of bad marks for Station_U on 2025-01-11?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_U' AND DATE(date_time) = '2025-01-11';
|
|
What is the total number of bad chips for Station_F on 2025-01-23?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_F' AND DATE(date_time) = '2025-01-23';
|
|
What is the total number of bad marks in lot M55179UM?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'M55179UM';
|
|
What is the total number of bad marks in lot R25316BY?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'R25316BY';
|
|
What is the total number of bad chips in lot L80667WU?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'L80667WU';
|
|
What is the total number of bad marks for Station_S on 2025-01-20?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_S' AND DATE(date_time) = '2025-01-20';
|
|
List all lots with defect rate higher than 20% for Station_M.
|
SELECT lot_id FROM machine WHERE proc_id = 'Station_M' AND def_rate > 20;
|
|
What is the total number of bad chips in lot X26114VQ?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'X26114VQ';
|
|
What is the tottal number of bad chips in lot G26893FT?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'G26893FT';
|
|
What is the total number of bad marks for Station_G on 2025-01-04?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_G' AND DATE(date_time) = '2025-01-04';
|
|
What is the total number of bad chips in lot E66817LL?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'E66817LL';
|
|
What is the total number of bad chips in lot I85217EY?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'I85217EY';
|
|
What is the total number of bad chips in lot F91634GL?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'F91634GL';
|
|
What is the total number of bad chips for Station_N on 2025-01-26?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_N' AND DATE(date_time) = '2025-01-26';
|
|
What is the total number of bad chips in lot P15126YV?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'P15126YV';
|
|
What is thb total number of bad marks in lot B82968CK?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'B82968CK';
|
|
What is the total number of bad chips for Station_A on 2025-01-12?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_A' AND DATE(date_time) = '2025-01-12';
|
|
What is the total number of bad chips for Station_C on 2025-01-30?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_C' AND DATE(date_time) = '2025-01-30';
|
|
What is the total number of bad marks for Station_S on 2025-01-03?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_S' AND DATE(date_time) = '2025-01-03';
|
|
Whht is the total number of bav marks for Station_V on 2025-01-16?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_V' AND DATE(date_time) = '2025-01-16';
|
|
What is the total number of bad marks in lot V82252TA?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'V82252TA';
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.