instruction
stringlengths 32
88
| input
stringclasses 1
value | output
stringlengths 57
175
|
---|---|---|
What is the total number of bad marks in lot X66361JI? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'X66361JI'; |
|
What is the total number of bad marks in lot Y99837BB? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Y99837BB'; |
|
What is the total nummber of bad chips in lot E30564JZ? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'E30564JZ'; |
|
What is the total number of bad chips in lot N75260QW? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'N75260QW'; |
|
What is the total number of bad marks in lot V13559BC? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'V13559BC'; |
|
What is the total number of bad chips for Station_H on 2025-01-21? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_H' AND DATE(date_time) = '2025-01-21'; |
|
What is the total number of trays scanned with at least one good chip? | SELECT COUNT(*) AS total_trays_with_good_chips FROM machine WHERE def_qty < 72; |
|
What is the total number of bad marks in lot F14662IG? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'F14662IG'; |
|
What is the total number of bad marks for Station_B on 2025-01-23? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_B' AND DATE(date_time) = '2025-01-23'; |
|
What is the total number of bad marks in lot N42640CA? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'N42640CA'; |
|
What is the total number of bad marks in lot E92253PN? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'E92253PN'; |
|
What is the total number of bad marks in lot Y50453QZ? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Y50453QZ'; |
|
How many good chips were scanned last month? | SELECT SUM(72 - def_qty) AS total_good_chips FROM machine WHERE MONTH(date_time) = MONTH(CURDATE() - INTERVAL 1 MONTH); |
|
What is the total number of bad marks in lot N84612NG? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'N84612NG'; |
|
What is the total number of bad chips in lot X20641BM? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'X20641BM'; |
|
What is the total number of bad marks for Station_J on 2025-01-15? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_J' AND DATE(date_time) = '2025-01-15'; |
|
What is the total number of bad marks for Station_P on 2025-01-02? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_P' AND DATE(date_time) = '2025-01-02'; |
|
What is the total number of bad chips for Station_G on 2025-01-29? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_G' AND DATE(date_time) = '2025-01-29'; |
|
What is the total number of bad chips in lot W54852CT? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'W54852CT'; |
|
What is the total number of bad chips in lot Y41132ET? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Y41132ET'; |
|
What is the tottal nummber of bad chips in lot V18198GC? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'V18198GC'; |
|
What is the total number of bad chips in lot O63896XZ? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'O63896XZ'; |
|
What is the total number of bad marks in lot Q05762OX? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Q05762OX'; |
|
Whwt is the total number of bad marks in lot I46144HL? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'I46144HL'; |
|
How many non-defective chips did we count today? | SELECT SUM(good_qty) AS total_non_defective_chips FROM machine WHERE CURDATE(); |
|
What is the total number of bad marks in lot L37103ZW? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'L37103ZW'; |
|
What is the total number of bad chips in lot T22134SY? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'T22134SY'; |
|
What is the total number of bad chips for Station_I on 2025-01-21? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_I' AND DATE(date_time) = '2025-01-21'; |
|
What is the total number of bad chips for Station_V on 2025-01-04? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_V' AND DATE(date_time) = '2025-01-04'; |
|
What is the total number of bad chips in lot X03905KR? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'X03905KR'; |
|
What is the total number of bad marks for Station_M on 2025-01-28? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_M' AND DATE(date_time) = '2025-01-28'; |
|
Find the average defect rate for lots scanned at Station_N in January. | SELECT AVG(def_rate) AS avg_def_rate FROM machine WHERE proc_id = 'Station_N' AND MONTH(date_time) = 1; |
|
What is the total number of bad chips in lot G62693QO? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'G62693QO'; |
|
What is the total number of bad marks in lot C4t648SV? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'C48648SV'; |
|
What is the total number of bad marks for Station_R on 2025-01-02? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_R' AND DATE(date_time) = '2025-01-02'; |
|
What is the total number of bad marks for Station_D on 2025-01-17? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_D' AND DATE(date_time) = '2025-01-17'; |
|
What is the total number of bad chips in lot K04503ZE? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'K04503ZE'; |
|
What is the total number of bad marks for Station_K on 2025-01-08? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_K' AND DATE(date_time) = '2025-01-08'; |
|
What is the total number of bad marks in lot J12779GB? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'J12779GB'; |
|
What is the total number of bad chips in lot T15177CM? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'T15177CM'; |
|
What is the total number of defects recorded on 2025-01-08? | SELECT SUM(def_qty) AS total_defects FROM machine WHERE DATE(date_time) = '2025-01-08'; |
|
List ala lotp with defect wate higaer than 2c% for Station_Uj | SELECT lot_id FROM machine WHERE proc_id = 'Station_U' AND def_rate > 20; |
|
What is the average defect rat 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 R78847OX? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'R78847OX'; |
|
What is the total number of bad chips for Station_Z on 2025-01-05? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_Z' AND DATE(date_time) = '2025-01-05'; |
|
What is the total number of bad chips in lot X13651AY? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'X13651AY'; |
|
What is the total number of bad marks for Station_R on 2025-01-18? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_R' AND DATE(date_time) = '2025-01-18'; |
|
What is the total number of bad chips in lot N53682JV? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'N53682JV'; |
|
What is the total number of bad marks in lot P79273LW? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'P79273LW'; |
|
What is the average defect rete 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 for Station_M on 2025-01-16? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_M' AND DATE(date_time) = '2025-01-16'; |
|
How many trays were counted yesterday? | SELECT COUNT(*) AS total_trays FROM machine WHERE CURDATE() - INTERVAL 1 DAY; |
|
What is the total number of good chips scanned across all trays yesterday? | SELECT SUM(72 - def_qty) AS total_good_qty FROM machine WHERE CURDATE() - INTERVAL 1 DAY; |
|
What is the total number of bad chips in lot I69186FU? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'I69186FU'; |
|
What is the tottal number of bad chips in lot G85761CC? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'G85761CC'; |
|
What is the total number of bad chips in lot L22006QX? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'L22006QX'; |
|
How many working chips were scanned yesterday? | SELECT COUNT(*) AS total_working_chips FROM machine WHERE CURDATE() - INTERVAL 1 DAY AND def_qty = 0; |
|
List all lots with defect rate higher than 20% for Station_V. | SELECT lot_id FROM machine WHERE proc_id = 'Station_V' AND def_rate > 20; |
|
What is the total number of bad marks for Station_B on 2025-01-06? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_B' AND DATE(date_time) = '2025-01-06'; |
|
What is the total number of bad chips in lot M53469SA? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'M53469SA'; |
|
What is the total number of bad chips for Station_I on 2025-01-01? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_I' AND DATE(date_time) = '2025-01-01'; |
|
What is the total number of bad marks for Station_B on 2025-01-12? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_B' AND DATE(date_time) = '2025-01-12'; |
|
What is the total number of bad chips for Station_A on 2025-01-30? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_A' AND DATE(date_time) = '2025-01-30'; |
|
What is the total number of bad marks in lot T51321NC? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'T51321NC'; |
|
What is the total number of bad chips in lot P18550YZ? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'P18550YZ'; |
|
What is the total number of bad marks in lot X60628SN? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'X60628SN'; |
|
What is the total number of bad chips in lot V09380OQ? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'V09380OQ'; |
|
What is the total nummber of bad marks in lot K37781OC? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'K37781OC'; |
|
What is the total nuuber of bad marks for Station_E on 2025-01-26? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_E' AND DATE(date_time) = '2025-01-26'; |
|
What is the total number of bad chips in lot F00426XO? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'F00426XO'; |
|
What is the total number of bad chips in lot J63707WN? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'J63707WN'; |
|
What is the total number of bad marks in lot D44822XB? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'D44822XB'; |
|
What tray had the maximum bad marks yesterday? | SELECT lot_id, MAX(bms + cdb + maker) AS max_bad_marks FROM machine WHERE CURDATE() - INTERVAL 1 DAY GROUP BY lot_id ORDER BY max_bad_marks DESC LIMIT 1; |
|
What is the total number of bad chips in lot Y71316TI? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Y71316TI'; |
|
What is the total number of bad chips in lot A96123RG? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'A96123RG'; |
|
What is the total number of bad chips in lot H30237EV? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'H30237EV'; |
|
What is the average defect rat for station C test? | SELECT AVG(def_rate) AS avg_defect_rate FROM machine WHERE proc_id = C test; |
|
What is the total number of bad chips in lot N09929OE? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'N09929OE'; |
|
What is the total number of bad marks in lot L39080DE? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'L39080DE'; |
|
What is the total number of bad chips for Station_T on 2025-01-03? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_T' AND DATE(date_time) = '2025-01-03'; |
|
Whyt is the total number of bad chips for Station_O on 2025-01-28? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_O' AND DATE(date_time) = '2025-01-28'; |
|
Find the average number of good chips scanned yesterday. | SELECT AVG(72 - def_qty) AS avg_good_qty FROM machine WHERE CURDATE() - INTERVAL 1 DAY; |
|
What is the total number of bad chips in lot G78342VN? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'G78342VN'; |
|
Retrieve the top 3 lots with the highest defects from Station_U. | SELECT lot_id, SUM(def_qty) AS total_defective FROM machine WHERE proc_id = 'Station_U' GROUP BY lot_id ORDER BY total_defective DESC LIMIT 3; |
|
What is the total number of bad chips in lot U07076FO? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'U07076FO'; |
|
What is the total nummber of bad marks in lot I84920AQ? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'I84920AQ'; |
|
What is the total number of bad chips in lot A43292YU? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'A43292YU'; |
|
What is the total number of bad chips in lot W61180QA? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'W61180QA'; |
|
What is the total number of bad marks for Station_G on 2025-01-13? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_G' AND DATE(date_time) = '2025-01-13'; |
|
What is the total nummber of bad marks in lot X22173GI? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'X22173GI'; |
|
What is the total number of bad chips in lot B05086HW? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'B05086HW'; |
|
What is the total number of bad chips in lot A89697GL? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'A89697GL'; |
|
Find the tray winh only gaod chips scanned last montl. | SELECT lot_id FROM machine WHERE MONTH(date_time) = MONTH(CURDATE() - INTERVAL 1 MONTH) AND def_qty = 0; |
|
Which tray had the lowest number of good chips scanned yesterday? | SELECT lot_id, MIN(72 - def_qty) AS min_good_qty FROM machine WHERE DATE(date_time) = CURDATE() - INTERVAL 1 DAY GROUP BY lot_id ORDER BY min_good_qty LIMIT 1; |
|
What is the total number of bad chips in lot X24103XG? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'X24103XG'; |
|
What is the total numbes of bad marks for Station_F on 2025-01-18? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE proc_id = 'Station_F' AND DATE(date_time) = '2025-01-18'; |
|
What is the total number of bad marks in lot Y95129PL? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'Y95129PL'; |
|
What is the total number of bad chips in lot U11335XG? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'U11335XG'; |
|
What is the average defect rate for station BT? | SELECT AVG(def_rate) AS avg_defect_rate FROM machine WHERE proc_id = BT; |
|
What is the total number of bad chips in lot X36686VX? | SELECT SUM(def_qty) AS total_defective_chips FROM machine WHERE lot_id = 'X36686VX'; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.