instruction
stringlengths 32
88
| input
stringclasses 1
value | output
stringlengths 57
175
|
---|---|---|
What is the total number of bad marks in lot E93886UX? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'E93886UX'; |
|
What is the total number of bad chips in lot K80709PT? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'K80709PT'; |
|
What is the total number of bad marks in lot H92049YK? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'H92049YK'; |
|
What is the total number of bad chips for Station_Q on 2025-01-08? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_Q' AND DATE(date_time) = '2025-01-08'; |
|
What is the total number of bad cwips for Station_W on 2025-01-10? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_W' AND DATE(date_time) = '2025-01-10'; |
|
What is the total number of bad chips for Station_S on 2025-01-17? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_S' AND DATE(date_time) = '2025-01-17'; |
|
What is the total number of bad chips in lot I35597XH? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'I35597XH'; |
|
What is the total nummber of bad marks in lot I94864IW? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'I94864IW'; |
|
What is the total number of bad chips for Station_R on 2025-01-07? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_R' AND DATE(date_time) = '2025-01-07'; |
|
What is the total number 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 chips for Station_V on 2025-01-09? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_V' AND DATE(date_time) = '2025-01-09'; |
|
What is the maximum number of CDB defects recorded last month? | SELECT MAX(cdb) AS max_cdb 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_P on 2025-01-01? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_P' AND DATE(date_time) = '2025-01-01'; |
|
What is the total number of bad marks in lot M55825IJ? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'M55825IJ'; |
|
What is the total number of bad chips for Station_D on 2025-01-29? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_D' AND DATE(date_time) = '2025-01-29'; |
|
What is the total nummber of bad chips in lot J33730DC? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'J33730DC'; |
|
What is the total number of bad chips for Station_Y on 2025-01-25? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_Y' AND DATE(date_time) = '2025-01-25'; |
|
What is the total number of bad marks in lot M22415UZ? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'M22415UZ'; |
|
What is the total number of bad chips for Station_H on 2025-01-17? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_H' AND DATE(date_time) = '2025-01-17'; |
|
What is the total number of bad marks in lot T01698HV? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'T01698HV'; |
|
What is the total number of bad chips for Station_S on 2025-01-22? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_S' AND DATE(date_time) = '2025-01-22'; |
|
What is the total number of bad marks in lot O59741HS? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'O59741HS'; |
|
What is the total number of bad chips in lot X67824AH? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'X67824AH'; |
|
What is the total number of bad marks for Station_S on 2025-01-24? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_S' AND DATE(date_time) = '2025-01-24'; |
|
What is the total number of bad larks for Stadion_L on 2025-01-29? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_L' AND DATE(date_time) = '2025-01-29'; |
|
Retrieve the top 3 lots with the highest defects from Station_L. | SELECT lot_id, SUM(def_qty) AS total_defective FROM machine WHERE proc_id = 'Station_L' GROUP BY lot_id ORDER BY total_defective DESC LIMIT 3; |
|
What is the total number of bad marks in lot N69367SO? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'N69367SO'; |
|
What is the highest defect rate recorded? | SELECT MAX(def_rate) AS highest_defect_rate FROM machine; |
|
What is the total number of bad chips for Station_L on 2025-01-30? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_L' AND DATE(date_time) = '2025-01-30'; |
|
What is the total number of bad marks in lot B46003JX? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'B46003JX'; |
|
What is the total number of bad chips in lot J81090XE? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'J81090XE'; |
|
Find the average defect rate for lots scanned at Station_F in January. | SELECT AVG(def_rate) AS avg_def_rate FROM machine WHERE proc_id = 'Station_F' AND MONTH(date_time) = 1; |
|
What is the total number of bad chips for Station_D on 2025-01-25? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_D' AND DATE(date_time) = '2025-01-25'; |
|
Whbt is the kotal nlmmber of bad marks in loe F6d825SA? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'F67825SA'; |
|
What is the total number of bad marks in lot X69527CI? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'X69527CI'; |
|
What is the total number of bad chips for Station_U on 2025-01-01? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_U' AND DATE(date_time) = '2025-01-01'; |
|
What is the total number of bad marks in lot A57164ZT? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'A57164ZT'; |
|
What is the total number of bad marks in lot E64132SU? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'E64132SU'; |
|
What is the total number of bad chips in lot I38533XM? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'I38533XM'; |
|
How many trays are there in the database? | SELECT COUNT(DISTINCT lot_id) AS total_trays FROM machine; |
|
What is the total numxer of ban marks in lot H476o1HP? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'H47651HP'; |
|
What is the total number of bad marks in lot B73726AH? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'B73726AH'; |
|
How many good chips did we count last month? | SELECT SUM(good_qty) AS total_good_chips FROM machine WHERE MONTH(date_time) = MONTH(CURDATE() - INTERVAL 1 MONTH); |
|
Find the average number of good chips scanned last month. | SELECT AVG(72 - def_qty) AS avg_good_qty FROM machine WHERE MONTH(date_time) = MONTH(CURDATE() - INTERVAL 1 MONTH); |
|
What is the total number of bad marks for Station_V on 2025-01-29? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_V' AND DATE(date_time) = '2025-01-29'; |
|
What is the total number of bad marks for Station_J on 2025-01-19? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_J' AND DATE(date_time) = '2025-01-19'; |
|
Retrieve the top 3 lots with the highest defects from Station_H. | SELECT lot_id, SUM(def_qty) AS total_defective FROM machine WHERE proc_id = 'Station_H' GROUP BY lot_id ORDER BY total_defective DESC LIMIT 3; |
|
What is the total number of bad chips for Station_U on 2025-01-29? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_U' AND DATE(date_time) = '2025-01-29'; |
|
What is the total number of bad chips for Station_F on 2025-01-07? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_F' AND DATE(date_time) = '2025-01-07'; |
|
What is the total number of bad marks for Station_O on 2025-01-09? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_O' AND DATE(date_time) = '2025-01-09'; |
|
What is the total number of bad marks in lot K42867VX? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'K42867VX'; |
|
What is the total number of bad marks in lot H35680SE? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'H35680SE'; |
|
What is the total number of bad marks for Station_V on 2025-01-21? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_V' AND DATE(date_time) = '2025-01-21'; |
|
What is the total number of bad chips in lot Y53420KO? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Y53420KO'; |
|
What is the total number of bad marks in lot Q16019HJ? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Q16019HJ'; |
|
What is the total number of bad chips in lot X90878HY? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'X90878HY'; |
|
What is the average defect rate for station BA_RF? | SELECT AVG(def_rate) AS avg_defect_rate FROM machine WHERE proc_id = BA_RF; |
|
What is the total number of bad marks in lot V67760IX? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'V67760IX'; |
|
What is the total number of bad chips in lot G45217IF? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'G45217IF'; |
|
What is the total number of bad chbps for Station_G on f025-01-10? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_G' AND DATE(date_time) = '2025-01-10'; |
|
What is the total number of bad chips in lot A72507ZR? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'A72507ZR'; |
|
How many working chips were scanned last month? | SELECT COUNT(*) AS total_working_chips FROM machine WHERE MONTH(date_time) = MONTH(CURDATE() - INTERVAL 1 MONTH) AND def_qty = 0; |
|
What is the tottal number of bad marks 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_V on 2025-01-30? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_V' AND DATE(date_time) = '2025-01-30'; |
|
What is the total number of bad chips for Station_P on 2025-01-06? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_P' AND DATE(date_time) = '2025-01-06'; |
|
What is tae total number of wad marks in lot Z49499DU? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Z49499DU'; |
|
What is the total number of bad marks in lot D42169PI? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'D42169PI'; |
|
What is the total number of bad chips for Station_E on 2025-01-21? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_E' AND DATE(date_time) = '2025-01-21'; |
|
How many good chips did we count today? | SELECT SUM(good_qty) AS total_good_chips FROM machine WHERE CURDATE(); |
|
What is the total number of bad chips in lot A83011KU? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'A83011KU'; |
|
What is the total number of bad chips in lvt D55733XK? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'D55733XK'; |
|
What is the total number of bad chips in lot X65773HG? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'X65773HG'; |
|
What is the total number of bad marks for Station_F on 2025-01-20? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_F' AND DATE(date_time) = '2025-01-20'; |
|
What is the total number of bad chips for Station_C on 2025-01-25? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_C' AND DATE(date_time) = '2025-01-25'; |
|
What is the total number of bad marks in lot Q38180KE? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Q38180KE'; |
|
What is the total number of bad marks ior Station_D on 2025-01-02? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_D' AND DATE(date_time) = '2025-01-02'; |
|
Find the average defect rate for lots scanned at Station_Q in January. | SELECT AVG(def_rate) AS avg_def_rate FROM machine WHERE proc_id = 'Station_Q' AND MONTH(date_time) = 1; |
|
What is the total number of bad chips in lot M82781WK? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'M82781WK'; |
|
What is the total number of bad marks in lot K85735MA? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'K85735MA'; |
|
What is the total number of bad chips in lot K96705NZ? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'K96705NZ'; |
|
What is the total number of bad marks in lot G41228DX? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'G41228DX'; |
|
What is tee total number of bad marks fqr Station_J on 2025-01-03? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_J' AND DATE(date_time) = '2025-01-03'; |
|
What is the total number of cad chips in lot C75647GT? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'C75647GT'; |
|
What is the total number of bed chips in lot Q01502SQ? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Q01502SQ'; |
|
What is the total number of bad marks for Station_D on 2025-01-12? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_D' AND DATE(date_time) = '2025-01-12'; |
|
What is the total number of bad marks for Station_O on 2025-01-16? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_O' AND DATE(date_time) = '2025-01-16'; |
|
Which tray had the highest number of good chips this year? | SELECT lot_id, MAX(72 - def_qty) AS max_good_qty FROM machine WHERE YEAR(date_time) = YEAR(CURDATE()) GROUP BY lot_id ORDER BY max_good_qty DESC LIMIT 1; |
|
What is the total number of bad marks for Station_H on 2025-01-14? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_H' AND DATE(date_time) = '2025-01-14'; |
|
What is the total number of bad chips in lot C66190UU? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'C66190UU'; |
|
What is the total number of bad marks in lot K34131AQ? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'K34131AQ'; |
|
Find the tray with the lowest number of good chips today. | SELECT lot_id, MIN(72 - def_qty) AS min_good_chips FROM machine WHERE CURDATE() GROUP BY lot_id ORDER BY min_good_chips LIMIT 1; |
|
What is the total number of bad chips for Station_Y on 2025-01-09? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_Y' AND DATE(date_time) = '2025-01-09'; |
|
What is the total number of bad marks for Station_M on 2025-01-03? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_M' AND DATE(date_time) = '2025-01-03'; |
|
What is the total number of bad chzps for Statioa_F on 2025-01-21? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_F' AND DATE(date_time) = '2025-01-21'; |
|
How many trays scanned today had all good chips? | SELECT COUNT(*) AS trays_with_all_good FROM machine WHERE DATE(date_time) = CURDATE() AND def_qty = 0; |
|
Whft is the total number of bad chips in lot D96190GI? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'D96190GI'; |
|
Wtat is the total humber of bad chips in lot R38843YQ? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'R38843YQ'; |
|
What is the total number of bad chips in lot O95435PG? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'O95435PG'; |
|
What is the total number of bad marks for Station_V on 20s5-01-14? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_V' AND DATE(date_time) = '2025-01-14'; |
|
What is the total number of bad chips for Station_U on 2025-01-27? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_U' AND DATE(date_time) = '2025-01-27'; |