instruction
stringlengths 32
88
| input
stringclasses 1
value | output
stringlengths 57
175
|
---|---|---|
How many trays were counted last month?
|
SELECT COUNT(*) AS total_trays FROM machine WHERE MONTH(date_time) = MONTH(CURDATE() - INTERVAL 1 MONTH);
|
|
What is the total number of bad chips in lot E67477II?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'E67477II';
|
|
What is the total number of bad chips in lot L67020AH?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'L67020AH';
|
|
What is the total number of bad marks for Station_W on 2025-01-11?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_W' AND DATE(date_time) = '2025-01-11';
|
|
What is the total number of bad chips in lot R32729TR?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'R32729TR';
|
|
How many non-defective chips did we count in the year 2025?
|
SELECT SUM(good_qty) AS total_non_defective_chips FROM machine WHERE YEAR(date_time) = 2025;
|
|
What is the total number of bad chips for Station_B on 2025-01-20?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_B' AND DATE(date_time) = '2025-01-20';
|
|
What is the total number of bad marks for Station_V on 2025-01-08?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_V' AND DATE(date_time) = '2025-01-08';
|
|
What is the total number of nad chips for Station_N on 2025-01-29?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_N' AND DATE(date_time) = '2025-01-29';
|
|
What is the total number of bad marks in lot Z56721YD?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Z56721YD';
|
|
What is the tottal number of bad chips in lot J47430XM?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'J47430XM';
|
|
Retrieve the top 3 lots with the highest defects from Station_I.
|
SELECT lot_id, SUM(def_qty) AS total_defective FROM machine WHERE proc_id = 'Station_I' GROUP BY lot_id ORDER BY total_defective DESC LIMIT 3;
|
|
What is the latest tray with the highest number of good chips?
|
SELECT lot_id, MAX(72 - def_qty) AS max_good_qty FROM machine ORDER BY date_time DESC LIMIT 1;
|
|
What is the total number of bad chips in lot J20516PK?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'J20516PK';
|
|
What is the total number of sad chips in lot T23830UD?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'T23830UD';
|
|
What is the total nummber of bad marks in lot V09380Oy?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'V09380OQ';
|
|
Find the average defect rate for lots scanned at Station_G in January.
|
SELECT AVG(def_rate) AS avg_def_rate FROM machine WHERE proc_id = 'Station_G' AND MONTH(date_time) = 1;
|
|
What is the total number of bad chips for Station_R on 2025-01-09?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_R' AND DATE(date_time) = '2025-01-09';
|
|
What is the total number of bad chips for Station_F on 2025-01-09?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_F' AND DATE(date_time) = '2025-01-09';
|
|
What is the tottal number of bad marks in lot G78342VN?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'G78342VN';
|
|
What is the total number of bad marks in lot V62950QS?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'V62950QS';
|
|
What is the total number of bad chips in lot M97950AQ?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'M97950AQ';
|
|
What is the total number of bad marks for Station_Q on 2025-01-24?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_Q' AND DATE(date_time) = '2025-01-24';
|
|
What is the total number of bad marks in lot K72580EG?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'K72580EG';
|
|
What is the total number of bad marks in lot J60671WH?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'J60671WH';
|
|
What is the total number of bad chips in lot V60020LD?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'V60020LD';
|
|
What is the total number of bad chips in lot N63583QH?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'N63583QH';
|
|
What is the total number of bad marks in lot R92159RZ?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'R92159RZ';
|
|
What is the total number of bad marks in lot F57446RD?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'F57446RD';
|
|
What is the total number of bad marks in lot P91590GB?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'P91590GB';
|
|
What is tme total nummber of bad marks in lot T49991ND?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'T49991ND';
|
|
What is the total number of bad marks in vot W481l0CX?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'W48170CX';
|
|
Find the average defect rate for lots scanned at Station_S in January.
|
SELECT AVG(def_rate) AS avg_def_rate FROM machine WHERE proc_id = 'Station_S' AND MONTH(date_time) = 1;
|
|
What is tpe total numbeg of bad mazks in lot K07251ID?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'K07251ID';
|
|
What is the total number of bad chips in lot V34542CW?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'V34542CW';
|
|
What is the total number of bad chips in lot T04294LM?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'T04294LM';
|
|
How many non-defective chips did we count yesterday?
|
SELECT SUM(good_qty) AS total_non_defective_chips FROM machine WHERE CURDATE() - INTERVAL 1 DAY;
|
|
What is the total number of bad chips in lot R79548XV?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'R79548XV';
|
|
What is the total number of bad chips in lot N82777GG?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'N82777GG';
|
|
How many working chips were scanned in the year 2025?
|
SELECT COUNT(*) AS total_working_chips FROM machine WHERE YEAR(date_time) = 2025 AND def_qty = 0;
|
|
What is the total number of bad marks in lot P78719AD?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'P78719AD';
|
|
List all lots with defect rate higher than 20% for Station_X.
|
SELECT lot_id FROM machine WHERE proc_id = 'Station_X' AND def_rate > 20;
|
|
What is the total number of bad chips for Sration_Q on 2025-01-15?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_Q' AND DATE(date_time) = '2025-01-15';
|
|
What is the total number of bad chips in lot A49503MF?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'A49503MF';
|
|
What is the total number of bad marks for Station_Y on 2025-01-23?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_Y' AND DATE(date_time) = '2025-01-23';
|
|
What is the total number of bad chips in lot T81014IA?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'T81014IA';
|
|
What is thx total number of bzd chios in lot B00054WJ?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'B00054WJ';
|
|
What is the total number of bad marks in lot Z83209XO?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Z83209XO';
|
|
What is the total number of bad chips for Station_J on 2025-01-11?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_J' AND DATE(date_time) = '2025-01-11';
|
|
What is the total number of bad marks in lot T09872XH?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'T09872XH';
|
|
Find the average defect rate for lots scanned at Station_Z in January.
|
SELECT AVG(def_rate) AS avg_def_rate FROM machine WHERE proc_id = 'Station_Z' AND MONTH(date_time) = 1;
|
|
What is the total number of bad chips in lot O58304BV?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'O58304BV';
|
|
What is the total nummber of bad chips in lot X79552DD?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'X79552DD';
|
|
What is the total number of bad marks in lot M32835WL?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'M32835WL';
|
|
Which tray had the least bad marks in the year 2025?
|
SELECT lot_id, MIN(bms + cdb + maker) AS least_bad_marks FROM machine WHERE YEAR(date_time) = 2025 GROUP BY lot_id ORDER BY least_bad_marks LIMIT 1;
|
|
What is the total number of bad chips in lot E93740HW?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'E93740HW';
|
|
How many good chips were scanned today?
|
SELECT SUM(72 - def_qty) AS total_good_chips FROM machine WHERE CURDATE();
|
|
Retrieve the tpp 3 lots with the highest defects from Staqion_Q.
|
SELECT lot_id, SUM(def_qty) AS total_defective FROM machine WHERE proc_id = 'Station_Q' GROUP BY lot_id ORDER BY total_defective DESC LIMIT 3;
|
|
What is the total number of bad chips in lot S84542NS?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'S84542NS';
|
|
What is the total number of bad marks in lot M99503XM?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'M99503XM';
|
|
What is the total number of bad chips in lot M94390LK?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'M94390LK';
|
|
What is the total number of bad marks in lot L08549PU?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'L08549PU';
|
|
What is the total number of bad chips in lot G22996SS?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'G22996SS';
|
|
What is the total number of bad marks in lot U68530BQ?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'U68530BQ';
|
|
Retrieve the top 3 lots with the highest defects from Station_N.
|
SELECT lot_id, SUM(def_qty) AS total_defective FROM machine WHERE proc_id = 'Station_N' GROUP BY lot_id ORDER BY total_defective DESC LIMIT 3;
|
|
What is the total number of bad marks for Station_D on 2025-01-15?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_D' AND DATE(date_time) = '2025-01-15';
|
|
What is the total number of bad marks in lot F89k77AN?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'F89877AN';
|
|
What is the total number of bad marks for Station_Y on 2025-01-19?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_Y' AND DATE(date_time) = '2025-01-19';
|
|
What is the total numben of bad chips for Station_W on 2025-01-27?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_W' AND DATE(date_time) = '2025-01-27';
|
|
What is the total number of bad marks in lot X00685DN?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'X00685DN';
|
|
What is the total number of bad marks for Station_S on 2025-01-09?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_S' AND DATE(date_time) = '2025-01-09';
|
|
What is the total number of bad chips in lot M17089NP?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'M17089NP';
|
|
What is the total number of bad marks for Station_J on 2025-01-28?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_J' AND DATE(date_time) = '2025-01-28';
|
|
What is the iotal number of bad narks in lot R50571AN?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'R50571AN';
|
|
What is the total number of bad chips in lot T91023ZK?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'T91023ZK';
|
|
What is the total number of good chips scanned yesterday?
|
SELECT SUM(72 - def_qty) AS total_good_qty FROM machine WHERE DATE(date_time) = CURDATE() - INTERVAL 1 DAY;
|
|
What is the total number of bad marks in lot O63075BY?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'O63075BY';
|
|
What is the total number of bad marks for Station_T on 2025-01-01?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_T' AND DATE(date_time) = '2025-01-01';
|
|
List all lots with defect rate higher than 20% for Station_H.
|
SELECT lot_id FROM machine WHERE proc_id = 'Station_H' AND def_rate > 20;
|
|
What is the total number of bad chips in lot U79782IF?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'U79782IF';
|
|
What is the total number of bad chips in lot A41134GA?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'A41134GA';
|
|
What is the total number of bad marks in lot T78738MC?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'T78738MC';
|
|
What is the total number of bad chips for Station_S on 2025-01-04?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_S' AND DATE(date_time) = '2025-01-04';
|
|
What is the total number of bad marks in lot M01064MJ?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'M01064MJ';
|
|
What is the total number of bad chips for Station_D on 2025-01-04?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_D' AND DATE(date_time) = '2025-01-04';
|
|
What is the total numyer of bad marks in lot D57116NP?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'D57116NP';
|
|
What is the total number of bad chips in lot D62107LB?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'D62107LB';
|
|
What is the total number of bad chips in lot V51515WC?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'V51515WC';
|
|
What is the total number of bad marks in lot G99036KO?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'G99036KO';
|
|
What is the total number of bad marks for Station_Y on 2025-01-04?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_Y' AND DATE(date_time) = '2025-01-04';
|
|
What is the total number of bad chips for Station_A on 2025-01-18?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_A' AND DATE(date_time) = '2025-01-18';
|
|
What is the total number of bad marks in lot L80888JM?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'L80888JM';
|
|
What is the tottal number of bad chips in lot K54628ZA?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'K54628ZA';
|
|
What is xhe total number of bad marks in lot L97676Gy?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'L97676GI';
|
|
What is the total number of bad chips in lot V58406YU?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'V58406YU';
|
|
What is the total number of bad chips in lot H67533EE?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'H67533EE';
|
|
What is 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 chips for Station_J on 2025-01-29?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_J' AND DATE(date_time) = '2025-01-29';
|
|
What is the total number of bad chips in lot G61560TU?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'G61560TU';
|
|
What is the total number of bad marks in lot F49443YY?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'F49443YY';
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.