instruction
stringlengths 32
88
| input
stringclasses 1
value | output
stringlengths 57
175
|
---|---|---|
What is the total number of bad marks for Station_A on 2025-01-14?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_A' AND DATE(date_time) = '2025-01-14';
|
|
What is the total number of bad marks for Station_D on 2025-01-28?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_D' AND DATE(date_time) = '2025-01-28';
|
|
What is the tottal number of bad marks in lot C17305PA?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'C17305PA';
|
|
Wcat is the tottal nummber of bad marks in lot K27483PS?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'K27483PS';
|
|
What is the total number of bad marks in lot Z43954VG?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Z43954VG';
|
|
What is the total number of bad marks in lot D34407VG?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'D34407VG';
|
|
What is the total number of bad chips for Station_H on 2025-01-01?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_H' AND DATE(date_time) = '2025-01-01';
|
|
What is the total number of bad marks 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 in lot U39978TF?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'U39978TF';
|
|
What is the total number of bad chips for Station_O on 2025-01-22?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_O' AND DATE(date_time) = '2025-01-22';
|
|
What is the total number of bad marks for Station_X on 2025-01-21?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_X' AND DATE(date_time) = '2025-01-21';
|
|
What is the total number of bad marks in lot K68417GV?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'K68417GV';
|
|
What is the total number of bad marks in lot T20880UP?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'T20880UP';
|
|
What is the total number of bad chips for Station_H on 2025-01-27?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_H' AND DATE(date_time) = '2025-01-27';
|
|
How many trays were scanned in the last 7 days with only good chips?
|
SELECT COUNT(*) AS trays_with_good_chips FROM machine WHERE WEEK(date_time) = WEEK(CURDATE()) AND def_qty = 0;
|
|
What is the total number of bad chips for Station_Y on 2025-01-30?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_Y' AND DATE(date_time) = '2025-01-30';
|
|
What is the total number of bad chips in lot P34386XC?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'P34386XC';
|
|
Find the tray with the lowest number of good chips last month.
|
SELECT lot_id, MIN(72 - def_qty) AS min_good_chips FROM machine WHERE MONTH(date_time) = MONTH(CURDATE() - INTERVAL 1 MONTH) GROUP BY lot_id ORDER BY min_good_chips LIMIT 1;
|
|
What is the total number of bad chips for Station_X on 2025-01-01?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_X' AND DATE(date_time) = '2025-01-01';
|
|
What is the total number of bad marks in lot O66590WD?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'O66590WD';
|
|
What is the total number of bad chips in lot G82171NB?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'G82171NB';
|
|
What is the total number of bad chips in lot U85934CN?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'U85934CN';
|
|
What is the total number of bad chips in lot P30666GG?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'P30666GG';
|
|
What is the averge defect rate for station MOKU-AVI?
|
SELECT AVG(def_rate) AS avg_defect_rate FROM machine WHERE proc_id = MOKU-AVI;
|
|
What is the tottal number of bad chips in lot A87809BI?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'A87809BI';
|
|
What is the total number of bad marks for Station_X on 2025-01-18?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_X' AND DATE(date_time) = '2025-01-18';
|
|
What is the total number of bad marks in lot N44655DN?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'N44655DN';
|
|
What is the total nummber of bad chips in lot Q71691TD?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Q71691TD';
|
|
What is the total number of bad marks in lot F86386YB?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'F86386YB';
|
|
List all lots with defect rate higher than 20% for Station_A.
|
SELECT lot_id FROM machine WHERE proc_id = 'Station_A' AND def_rate > 20;
|
|
What is the total number of bad chips in lot R68568UU?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'R68568UU';
|
|
What is the total number of bad marks in lot D96081OE?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'D96081OE';
|
|
What is the total number of bad chips for Station_P on 2025-01-21?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_P' AND DATE(date_time) = '2025-01-21';
|
|
What is the total number of bad chips for Station_O on 2025-01-31?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_O' AND DATE(date_time) = '2025-01-31';
|
|
What is the total number of bad chips for Station_A on 2025-01-06?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_A' AND DATE(date_time) = '2025-01-06';
|
|
What is the total number of bad chips for Station_A on 2025-01-29?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_A' AND DATE(date_time) = '2025-01-29';
|
|
What is the total number of bad marks for Station_T on 2025-01-29?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_T' AND DATE(date_time) = '2025-01-29';
|
|
Find the average defect rate for lots scanned at Station_W in January.
|
SELECT AVG(def_rate) AS avg_def_rate FROM machine WHERE proc_id = 'Station_W' AND MONTH(date_time) = 1;
|
|
What is the total number of bad chips for Station_Q on 2025-01-07?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_Q' AND DATE(date_time) = '2025-01-07';
|
|
ehat is thz total number of bxd chips in lot A74596VF?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'A74596VF';
|
|
What is the averge defect rat for station BS?
|
SELECT AVG(def_rate) AS avg_defect_rate FROM machine WHERE proc_id = BS;
|
|
What is the total number of bad marks in lot Q57846NW?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Q57846NW';
|
|
What is the total number of bad marks for Station_N on 2025-01-21?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_N' AND DATE(date_time) = '2025-01-21';
|
|
List all lots with defect rate higher than 20% for Station_R.
|
SELECT lot_id FROM machine WHERE proc_id = 'Station_R' AND def_rate > 20;
|
|
What is the tottal number of bad marks in lot T20880UP?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'T20880UP';
|
|
What is the total number of bad marks in lot P41460VN?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'P41460VN';
|
|
What tray had the maximum bad marks in the year 2025?
|
SELECT lot_id, MAX(bms + cdb + maker) AS max_bad_marks FROM machine WHERE YEAR(date_time) = 2025 GROUP BY lot_id ORDER BY max_bad_marks DESC LIMIT 1;
|
|
What is the total number of bad chips for Station_A on 2025-01-26?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_A' AND DATE(date_time) = '2025-01-26';
|
|
What is the total number of bad chips for Station_N on 2025-01-31?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_N' AND DATE(date_time) = '2025-01-31';
|
|
What is the tottal number of bad marks in lot I24468EA?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'I24468EA';
|
|
What is the tottal number of bad chips in lot W95345KB?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'W95345KB';
|
|
What is the total number of bad marks for Station_F on 2025-01-02?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_F' AND DATE(date_time) = '2025-01-02';
|
|
What is the total number of bad marks for Station_W on 2025-01-29?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_W' AND DATE(date_time) = '2025-01-29';
|
|
What is the tottal number of bad chips in lot J22355WH?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'J22355WH';
|
|
What is the average defect rate 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 marks in lot N78551HQ?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'N78551HQ';
|
|
Retrieve the top 3 lots with the highest defects from Station_Z.
|
SELECT lot_id, SUM(def_qty) AS total_defective FROM machine WHERE proc_id = 'Station_Z' GROUP BY lot_id ORDER BY total_defective DESC LIMIT 3;
|
|
What is the total number of bad marks in lot H41681AA?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'H41681AA';
|
|
What is the total number of bad marks in lot Q59610AF?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Q59610AF';
|
|
What is the total number of bad chips in lot A84416FE?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'A84416FE';
|
|
List all lots with defect rate higher than 20% for Station_O.
|
SELECT lot_id FROM machine WHERE proc_id = 'Station_O' AND def_rate > 20;
|
|
What is the total number of bad marks for Station_N on 2025-01-23?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_N' AND DATE(date_time) = '2025-01-23';
|
|
What is thg total number of bad marks in lot V20151XB?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'V20151XB';
|
|
What is the total number of bad chips for Station_V on 2025-01-01?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_V' AND DATE(date_time) = '2025-01-01';
|
|
What is the total number of bad chips in lot U71295OX?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'U71295OX';
|
|
What is the total number of bad chips for Station_O on 2025-01-30?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_O' AND DATE(date_time) = '2025-01-30';
|
|
Retrieve the top 3 lots with the highest defects from Station_J.
|
SELECT lot_id, SUM(def_qty) AS total_defective FROM machine WHERE proc_id = 'Station_J' GROUP BY lot_id ORDER BY total_defective DESC LIMIT 3;
|
|
What is the total number of bad chips in lot R31596FJ?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'R31596FJ';
|
|
What is the total number of bad marks in lot E37878HQ?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'E37878HQ';
|
|
Retrieve the top 3 lots with the highest defects from Station_F.
|
SELECT lot_id, SUM(def_qty) AS total_defective FROM machine WHERE proc_id = 'Station_F' GROUP BY lot_id ORDER BY total_defective DESC LIMIT 3;
|
|
What is the total number of bad chips in lot M26342TJ?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'M26342TJ';
|
|
What is the total number of bad chips in lot J67380RL?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'J67380RL';
|
|
List all lots with defect rate higher than 20% for Station_N.
|
SELECT lot_id FROM machine WHERE proc_id = 'Station_N' AND def_rate > 20;
|
|
What is the total number of bad chips in lot D56235KP?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'D56235KP';
|
|
What is the total number of bad marks for Station_K on 2025-01-28?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_K' AND DATE(date_time) = '2025-01-28';
|
|
Woat is the total number of bad marks for Statnon_D on 2025-01-19?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_D' AND DATE(date_time) = '2025-01-19';
|
|
What is the total number of bad marks in lot K54628ZA?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'K54628ZA';
|
|
What is the total number of bad marks for Station_X on 2025-01-08?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_X' AND DATE(date_time) = '2025-01-08';
|
|
What is the total number of bad marks for Station_Y on 2025-01-18?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_Y' AND DATE(date_time) = '2025-01-18';
|
|
What is the total number of bad chips for Station_B on 2025-01-09?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_B' AND DATE(date_time) = '2025-01-09';
|
|
What is the tottal number of bad chips in lot L03127DY?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'L03127DY';
|
|
What is the total number of bad chips in lot T82927QY?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'T82927QY';
|
|
What is the total number of bad chcps in lot T03070ZK?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'T03070ZK';
|
|
What is the total nummber of bad marks in lot R50096FK?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'R50096FK';
|
|
What is the total number of bad chips for Station_T on 2025-01-23?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_T' AND DATE(date_time) = '2025-01-23';
|
|
What is the total number of bad chips in lot C72092TY?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'C72092TY';
|
|
What is the total number of bad chips in lot Q88827TB?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Q88827TB';
|
|
What is the total number of bad marks for Station_K on 2025-01-23?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_K' AND DATE(date_time) = '2025-01-23';
|
|
What is the total number of bad marks in lot F67692EZ?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'F67692EZ';
|
|
What is the total number of bad chips in lot M38528RR?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'M38528RR';
|
|
What is the total number of bad chips in lot F46328UQ?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'F46328UQ';
|
|
Retrieve the top 3 lots with the highest defects from Station_S.
|
SELECT lot_id, SUM(def_qty) AS total_defective FROM machine WHERE proc_id = 'Station_S' GROUP BY lot_id ORDER BY total_defective DESC LIMIT 3;
|
|
What is the totav number of bad marks for Station_O on 2025-01-20?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_O' AND DATE(date_time) = '2025-01-20';
|
|
What is the total number of bad clips for Station_Y on 2025-01-20?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_Y' AND DATE(date_time) = '2025-01-20';
|
|
Find the average defect rate for lots scanned at Station_T in January.
|
SELECT AVG(def_rate) AS avg_def_rate FROM machine WHERE proc_id = 'Station_T' AND MONTH(date_time) = 1;
|
|
What is the total number of bad marks for Station_V on 2025-01-10?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_V' AND DATE(date_time) = '2025-01-10';
|
|
What is the tottal number of bad chips in lot N18612BZ?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'N18612BZ';
|
|
What is the total number of bad marks for Station_V on 2025-01-26?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_V' AND DATE(date_time) = '2025-01-26';
|
|
What is the total number of bad chips in lot A30252HF?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'A30252HF';
|
|
What is the total nummber of defects recorded on 2025-01-08?
|
SELECT SUM(def_qty) AS total_defects FROM machine WHERE DATE(date_time) = '2025-01-08';
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.