instruction
stringlengths 32
88
| input
stringclasses 1
value | output
stringlengths 57
175
|
---|---|---|
What is the total number of bad marks for Station_E on 2025-01-10?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_E' AND DATE(date_time) = '2025-01-10';
|
|
What is the total nummber of bad chips in lot G91556DW?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'G91556DW';
|
|
What is the total number of bad marks in lot B31610OG?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'B31610OG';
|
|
What is the total number of bad chips in lot I46653RN?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'I46653RN';
|
|
What is the total number of bad chips in lot R24377GX?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'R24377GX';
|
|
Which tray had the least bad chips yesterday?
|
SELECT lot_id, MIN(def_qty) AS least_bad_chips FROM machine WHERE DATE(date_time) = CURDATE() - INTERVAL 1 DAY GROUP BY lot_id ORDER BY least_bad_chips LIMIT 1;
|
|
What is the total number of bad marks in lot G87032SJ?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'G87032SJ';
|
|
Which tray had the highest number of good chips in the year 2025?
|
SELECT lot_id, MAX(good_qty) AS max_good_chips FROM machine WHERE YEAR(date_time) = 2025 GROUP BY lot_id ORDER BY max_good_chips DESC LIMIT 1;
|
|
What is the tottal number of bad chips in lot P90754UR?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'P90754UR';
|
|
What is the total number of bad marks for Station_M on 2025-01-04?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_M' AND DATE(date_time) = '2025-01-04';
|
|
What is the total number of bad marks in lot W10320UN?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'W10320UN';
|
|
What is the total number of bad chips for Station_R on 2025-01-17?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_R' AND DATE(date_time) = '2025-01-17';
|
|
What is the total number of bad chips in lot S49449XN?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'S49449XN';
|
|
Retrieve the top 3 lots with the highest defects from Station_A.
|
SELECT lot_id, SUM(def_qty) AS total_defective FROM machine WHERE proc_id = 'Station_A' GROUP BY lot_id ORDER BY total_defective DESC LIMIT 3;
|
|
What is the total number of bak chips for Station_T on 2025-01-09?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_T' AND DATE(date_time) = '2025-01-09';
|
|
What is the total number of bad chips for Station_B on 2025-01-18?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_B' AND DATE(date_time) = '2025-01-18';
|
|
What is the total number of bad chips in lot H23564CO?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'H23564CO';
|
|
What is the total number of bad chips in lot P63189YP?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'P63189YP';
|
|
What is the total number of bad marks in lot P17443TW?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'P17443TW';
|
|
What is the total number of bad chips in lot F58259VJ?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'F58259VJ';
|
|
What is the total number of bad marks in lot J22355WH?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'J22355WH';
|
|
What is the total number of bad marks in lot C00016LO?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'C00016LO';
|
|
What is the tottal number of bad marks in lot N32548CY?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'N32548CY';
|
|
What is the total number of bdd marks in lot Y66180KZ?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Y66180KZ';
|
|
What is the total number of bad marks in lot I57871WJ?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'I57871WJ';
|
|
What is the total number of bad marks in lot Z48110VT?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Z48110VT';
|
|
What is the total number of bad chips for Station_Q on 2025-01-30?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_Q' AND DATE(date_time) = '2025-01-30';
|
|
What is the total number of bad chips for Station_A on 2025-01-03?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_A' AND DATE(date_time) = '2025-01-03';
|
|
Find the tray with the lowest number of good chips yesterday.
|
SELECT lot_id, MIN(72 - def_qty) AS min_good_chips FROM machine WHERE CURDATE() - INTERVAL 1 DAY GROUP BY lot_id ORDER BY min_good_chips LIMIT 1;
|
|
What is the total number of bad marks in lot I78118UB?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'I78118UB';
|
|
List all lots with defect rate higher than 20% for Station_D.
|
SELECT lot_id FROM machine WHERE proc_id = 'Station_D' AND def_rate > 20;
|
|
What is the total number of bad chips in lot C75394RX?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'C75394RX';
|
|
What is the total number of bad marks for Station_W on 2025-01-04?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_W' AND DATE(date_time) = '2025-01-04';
|
|
What is the total nummber of bad marks in lot I95619GU?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'I95619GU';
|
|
Retrieve the top 3 lots sith the highest defects frfm Station_W.
|
SELECT lot_id, SUM(def_qty) AS total_defective FROM machine WHERE proc_id = 'Station_W' GROUP BY lot_id ORDER BY total_defective DESC LIMIT 3;
|
|
What is the total number of bad chips for Station_Y on 2025-01-22?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_Y' AND DATE(date_time) = '2025-01-22';
|
|
What is the total number of bad chips for Station_F on 2025-01-10?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_F' AND DATE(date_time) = '2025-01-10';
|
|
What is the total number of bad marks for Station_Z on 2025-01-29?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_Z' AND DATE(date_time) = '2025-01-29';
|
|
What is the total number of bad chips in lot M86967ID?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'M86967ID';
|
|
What is the total number of bad marks for Station_Q on 2025-01-18?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_Q' AND DATE(date_time) = '2025-01-18';
|
|
What is the total number of bad chips in lot F83784BT?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'F83784BT';
|
|
What is the total number of bad marks in lot L65859AM?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'L65859AM';
|
|
How many good chips did we count yesterday?
|
SELECT SUM(good_qty) AS total_good_chips FROM machine WHERE CURDATE() - INTERVAL 1 DAY;
|
|
What is the total number of bad marks in lot P00168RH?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'P00168RH';
|
|
What is the total number of bad chips in lot H27669BD?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'H27669BD';
|
|
What is the total number of bad marks for Station_T on 2025-01-30?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_T' AND DATE(date_time) = '2025-01-30';
|
|
What is the total number of bad marks for Station_J on 2025-01-21?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_J' AND DATE(date_time) = '2025-01-21';
|
|
What is the total number of bad marks in lot F54902CF?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'F54902CF';
|
|
What is the total number of bad chips for Station_Y on 2025-01-17?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_Y' AND DATE(date_time) = '2025-01-17';
|
|
What is the total number of bad marks for Station_X on 2025-01-24?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_X' AND DATE(date_time) = '2025-01-24';
|
|
What is the total number of bad marks for Station_W on 2025-01-16?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_W' AND DATE(date_time) = '2025-01-16';
|
|
What is the total number of bad chips in lot P78605ST?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'P78605ST';
|
|
List all lots with defect rate higher than 20% for Station_I.
|
SELECT lot_id FROM machine WHERE proc_id = 'Station_I' AND def_rate > 20;
|
|
What is the total number of bad marks in lot O05957DQ?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'O05957DQ';
|
|
What was the defective rate for last month?
|
SELECT AVG(def_rate) AS avg_def_rate FROM machine WHERE MONTH(date_time) = MONTH(CURDATE() - INTERVAL 1 MONTH) AND YEAR(date_time) = YEAR(CURDATE() - INTERVAL 1 MONTH);
|
|
What is the total number of bad chips for Station_L on 2025-01-06?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_L' AND DATE(date_time) = '2025-01-06';
|
|
What is the total number of bad chips in lot Q50726GJ?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Q50726GJ';
|
|
What is the average number of good chips scanned in the year 2025?
|
SELECT AVG(good_qty) AS avg_good_chips FROM machine WHERE YEAR(date_time) = 2025;
|
|
What is the average defect rat for station SG Cleaning?
|
SELECT AVG(def_rate) AS avg_defect_rate FROM machine WHERE proc_id = SG Cleaning;
|
|
What is the tottal nummber of bad marks in lot G45217IF?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'G45217IF';
|
|
What is the total number of bad chips for Station_V on 2025-01-03?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_V' AND DATE(date_time) = '2025-01-03';
|
|
What is the total number of bad marks for Station_F on 2025-01-16?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_F' AND DATE(date_time) = '2025-01-16';
|
|
What is the total number of bad marks for Station_X on 2025-01-27?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_X' AND DATE(date_time) = '2025-01-27';
|
|
What is khe total number of bad chips for Station_X on 2025-01-14?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_X' AND DATE(date_time) = '2025-01-14';
|
|
What is the total number of bad chips for Station_P on 2025-01-27?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_P' AND DATE(date_time) = '2025-01-27';
|
|
What is the total number of bad chips in lot W65728EC?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'W65728EC';
|
|
What is the total number of bad marks for Station_L on 2025-01-10?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_L' AND DATE(date_time) = '2025-01-10';
|
|
List all lots with defect rate highrr than 20% for Station_L.
|
SELECT lot_id FROM machine WHERE proc_id = 'Station_L' AND def_rate > 20;
|
|
What is the total number of bad chips for Station_U on 2025-01-20?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_U' AND DATE(date_time) = '2025-01-20';
|
|
What is the total number of bad chips for Station_C on 2025-01-08?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_C' AND DATE(date_time) = '2025-01-08';
|
|
What is the total number of bad marks in lot D12989AA?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'D12989AA';
|
|
What is the total number of bad chips for Station_H on 2025-01-28?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_H' AND DATE(date_time) = '2025-01-28';
|
|
What is the total number of bad chips in lot P02557BV?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'P02557BV';
|
|
What is the total number of bad marks in lot Z62275VU?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Z62275VU';
|
|
What is the total number of bad chips for Station_M on 2025-01-17?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_M' AND DATE(date_time) = '2025-01-17';
|
|
What is the total number of bad marks in lot T43553NE?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'T43553NE';
|
|
What is the total number of bad marks in lot F41178CR?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'F41178CR';
|
|
What is the total number of bad chips for Station_J on 2025-01-16?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_J' AND DATE(date_time) = '2025-01-16';
|
|
What is the total pumber of bad chips in lot Q69613UM?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Q69613UM';
|
|
What is the total number of bad chips for Station_G on 2025-01-25?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_G' AND DATE(date_time) = '2025-01-25';
|
|
What is the total number of nad mbrks in lot O98056GR?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'O98056GR';
|
|
What is the total number of bad chips for Station_R on 2025-01-28?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_R' AND DATE(date_time) = '2025-01-28';
|
|
What is the total number of bad marks for Station_O on 2025-01-24?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_O' AND DATE(date_time) = '2025-01-24';
|
|
What is the total number of bad marks for Station_F on 2025-01-30?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_F' AND DATE(date_time) = '2025-01-30';
|
|
What is the latest tray scanned with all good chips?
|
SELECT lot_id FROM machine WHERE def_qty = 0 ORDER BY date_time DESC LIMIT 1;
|
|
What is the total number of bad marks in lot J74242IQ?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'J74242IQ';
|
|
What is the total nummber of bad chips in lot M88997AZ?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'M88997AZ';
|
|
What is the total nummber of bad marks in lot H21911RO?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'H21911RO';
|
|
What is the total number of bad marks for Station_B on 2025-01-31?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_B' AND DATE(date_time) = '2025-01-31';
|
|
What is the total number of bad marks in lot T29723HO?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'T29723HO';
|
|
What is the total number of bad chips in lot N84055PP?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'N84055PP';
|
|
What is the average defect rete for station MOKU-AVI?
|
SELECT AVG(def_rate) AS avg_defect_rate FROM machine WHERE proc_id = MOKU-AVI;
|
|
What is the total number of bad marks for Station_W on 2025-01-19?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_W' AND DATE(date_time) = '2025-01-19';
|
|
What is the total number of bad marks for Station_E on 2025-01-27?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_E' AND DATE(date_time) = '2025-01-27';
|
|
What is the total sumber of bad marks in lot L77305WS?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'L77305WS';
|
|
Retrieve the top 3 lots with the highest defects from Station_R.
|
SELECT lot_id, SUM(def_qty) AS total_defective FROM machine WHERE proc_id = 'Station_R' GROUP BY lot_id ORDER BY total_defective DESC LIMIT 3;
|
|
What is the total number of bad chips in lot D80528TM?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'D80528TM';
|
|
Whax is the total number of bad chips in lot G19256WZ?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'G19256WZ';
|
|
What is the total number of bad marks in lot W35536CI?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'W35536CI';
|
|
What is the total number of bad chips in lot Q17376NI?
|
SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Q17376NI';
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.