Upload llamaTuningTwo.json
Browse files- llamaTuningTwo.json +282 -0
llamaTuningTwo.json
ADDED
@@ -0,0 +1,282 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[
|
2 |
+
{
|
3 |
+
"instruction": "The database contains a 'transactionalplms.trip' table with columns like 'id', 'status', 'gateOut', and 'vehicleNumber'. The task is to retrieve the latest trip information for a vehicle number. Limit the results to the most recent trip.",
|
4 |
+
"input": "Where is vehicle JH11AG0663?",
|
5 |
+
"output": "SELECT id AS trip_id, status, gateOut FROM transactionalplms.trip WHERE vehicleNumber = 'JH11AG0663' ORDER BY gateOut DESC LIMIT 1;"
|
6 |
+
},
|
7 |
+
{
|
8 |
+
"instruction": "The 'transactionalplms.trip' table has a 'mapPlantStageLocation' column that tracks where vehicles are in the plant. The task is to count vehicles that are in the 'YARD-IN' stage, indicating they are at the plant.",
|
9 |
+
"input": "How many vehicles are currently at our plant?",
|
10 |
+
"output": "SELECT COUNT(*) AS vehicle_count FROM transactionalplms.trip WHERE mapPlantStageLocation = 'YARD-IN';"
|
11 |
+
},
|
12 |
+
{
|
13 |
+
"instruction": "The 'transactionalplms.trip' table contains a 'packingOut' column that indicates the timestamp when a vehicle completes tareweight. The task is to retrieve the latest tareweight completion time for a vehicle.",
|
14 |
+
"input": "When did vehicle JH11AG0663 complete tareweight?",
|
15 |
+
"output": "SELECT packingOut FROM transactionalplms.trip WHERE vehicleNumber = 'JH11AG0663' ORDER BY packingOut DESC LIMIT 1;"
|
16 |
+
},
|
17 |
+
{
|
18 |
+
"instruction": "The 'transactionalplms.trip' table contains a 'driverId' column that tracks the driver assigned to a vehicle. The task is to retrieve the driver ID for the latest trip of the vehicle.",
|
19 |
+
"input": "Who is the assigned driver for vehicle JH09AR8268?",
|
20 |
+
"output": "SELECT driverId FROM transactionalplms.trip WHERE vehicleNumber = 'JH09AR8268' ORDER BY gateIn DESC LIMIT 1;"
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"instruction": "The 'transactionalplms.trip' table has a 'gateIn' column that records the time a vehicle enters the plant. The task is to retrieve the gate-in time for the given vehicle number.",
|
24 |
+
"input": "When did vehicle UP32AA1010 enter the plant?",
|
25 |
+
"output": "SELECT gateIn FROM transactionalplms.trip WHERE vehicleNumber = 'UP32AA1010' ORDER BY gateIn DESC LIMIT 1;"
|
26 |
+
},
|
27 |
+
{
|
28 |
+
"instruction": "The 'transactionalplms.trip' table contains a 'materialType_code' column that tracks the type of goods loaded in a vehicle. The task is to retrieve the material type for the latest trip of the vehicle.",
|
29 |
+
"input": "What goods are loaded in vehicle JH09AR8268?",
|
30 |
+
"output": "SELECT materialType_code FROM transactionalplms.trip WHERE vehicleNumber = 'JH09AR8268' ORDER BY gateIn DESC LIMIT 1;"
|
31 |
+
},
|
32 |
+
{
|
33 |
+
"instruction": "The 'transactionalplms.trip' table has a 'gateOut' column that records the time a vehicle leaves the plant. The task is to retrieve the gate-out time for the last vehicle that unloaded at the plant, filtered by the 'GATE-OUT' location.",
|
34 |
+
"input": "When did the last vehicle unload at the plant?",
|
35 |
+
"output": "SELECT gateOut FROM transactionalplms.trip WHERE mapPlantStageLocation = 'GATE-OUT' ORDER BY gateOut DESC LIMIT 1;"
|
36 |
+
},
|
37 |
+
{
|
38 |
+
"instruction": "The 'transactionalplms.trip' table has an 'id' column, which is the trip ID. The task is to retrieve the trip ID for the latest trip of the given vehicle.",
|
39 |
+
"input": "What is the trip ID for vehicle JH09AR8268?",
|
40 |
+
"output": "SELECT tripId FROM transactionalplms.trip WHERE vehicleNumber = 'JH09AR8268' ORDER BY gateIn DESC LIMIT 1;"
|
41 |
+
},
|
42 |
+
{
|
43 |
+
"instruction": "The 'transactionalplms.trip' table contains an 'id' column for the trip ID, a 'status' column indicating the trip status, and a 'gateOut' column recording when the trip is completed. The task is to check if a trip is completed by verifying the status and whether the 'gateOut' field is populated.",
|
44 |
+
"input": "Is trip TRIP9876 completed?",
|
45 |
+
"output": "SELECT gateOut FROM transactionalplms.trip WHERE id = '20240418175619192' AND status = 'C' LIMIT 1;"
|
46 |
+
},
|
47 |
+
{
|
48 |
+
"instruction": "The 'transactionalplms.trip' table contains a 'packingIn' column, which records when a vehicle started loading or unloading. The task is to retrieve the start time of packing for a given vehicle number.",
|
49 |
+
"input": "When did vehicle JH11AG0663 start packing?",
|
50 |
+
"output": "SELECT packingIn FROM transactionalplms.trip WHERE vehicleNumber = 'JH11AG0663' ORDER BY packingIn DESC LIMIT 1;"
|
51 |
+
},
|
52 |
+
{
|
53 |
+
"instruction": "The 'transactionalplms.trip' table contains a 'mapPlantStageLocation' column that tracks the current stage of the vehicle in the plant. The task is to retrieve the current location of the given vehicle number.",
|
54 |
+
"input": "Where is vehicle JH11AG0663?",
|
55 |
+
"output": "SELECT mapPlantStageLocation FROM transactionalplms.trip WHERE vehicleNumber = 'JH11AG0663' ORDER BY gateIn DESC LIMIT 1;"
|
56 |
+
},
|
57 |
+
{
|
58 |
+
"instruction": "The 'transactionalplms.trip' table contains a 'gateIn' and 'gateOut' column. The task is to retrieve both the entry and exit times for a specific vehicle.",
|
59 |
+
"input": "When did vehicle JH09AR8268 enter and exit the plant?",
|
60 |
+
"output": "SELECT gateIn, gateOut FROM transactionalplms.trip WHERE vehicleNumber = 'UP32AA1010' ORDER BY gateIn DESC LIMIT 1;"
|
61 |
+
},
|
62 |
+
{
|
63 |
+
"instruction": "The task is to check if vehicle JH10CS206 has completed the 'YARD-IN' process, which is tracked in the 'mapPlantStageLocation' column.",
|
64 |
+
"input": "Has vehicle JH10CS206 completed the Yard-In process?",
|
65 |
+
"output": "SELECT mapPlantStageLocation FROM transactionalplms.trip WHERE vehicleNumber = 'JH10CS206' AND mapPlantStageLocation = 'YARD-IN' LIMIT 1;"
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"instruction": "The task is to count the number of trips created today.",
|
69 |
+
"input": "How many trips are being made today?",
|
70 |
+
"output": "SELECT COUNT(*) AS trip_count FROM transactionalplms.trip WHERE DATE(gateIn) = CURRENT_DATE;"
|
71 |
+
},
|
72 |
+
{
|
73 |
+
"instruction": "The task is to retrieve the current stage for the vehicle with number JH10CS206.",
|
74 |
+
"input": "In which stage is vehicle number JH10CS206?",
|
75 |
+
"output": "SELECT mapPlantStageLocation FROM transactionalplms.trip WHERE vehicleNumber = 'JH10CS206' ORDER BY gateIn DESC LIMIT 1;"
|
76 |
+
},
|
77 |
+
{
|
78 |
+
"instruction": "The task is to retrieve the tareweight time for vehicle MH34BG1275.",
|
79 |
+
"input": "TareWeight time for this vehicle MH34BG1275?",
|
80 |
+
"output": "SELECT packingOut FROM transactionalplms.trip WHERE vehicleNumber = 'MH34BG1275' ORDER BY packingOut DESC LIMIT 1;"
|
81 |
+
},
|
82 |
+
{
|
83 |
+
"instruction": "The task is to calculate the time difference between entry and exit for vehicle TS01UC241.",
|
84 |
+
"input": "How much time did TS01UC241 take from Entry to Exit?",
|
85 |
+
"output": "SELECT TIMESTAMPDIFF(MINUTE, gateIn, gateOut) AS time_taken FROM transactionalplms.trip WHERE vehicleNumber = 'TS01UC241' ORDER BY gateIn DESC LIMIT 1;"
|
86 |
+
},
|
87 |
+
{
|
88 |
+
"instruction": "The task is to count the stages completed by vehicle UP53ET7162.",
|
89 |
+
"input": "How many stages are completed by UP53ET7162?",
|
90 |
+
"output": "SELECT COUNT(DISTINCT mapPlantStageLocation) AS stages_completed FROM transactionalplms.trip WHERE vehicleNumber = 'UP53ET7162';"
|
91 |
+
},
|
92 |
+
{
|
93 |
+
"instruction": "The task is to retrieve the material description for material code 'COMP'.",
|
94 |
+
"input": "Tell me which material has this code COMP?",
|
95 |
+
"output": "SELECT description FROM transactionalplms.material WHERE code = 'COMP';"
|
96 |
+
},
|
97 |
+
{
|
98 |
+
"instruction": "The task is to retrieve the material type for the latest trip of vehicle JH02P2241.",
|
99 |
+
"input": "What material type is this vehicle number carrying JH02P2241?",
|
100 |
+
"output": "SELECT materialType_code FROM transactionalplms.trip WHERE vehicleNumber = 'JH02P2241' ORDER BY gateIn DESC LIMIT 1;"
|
101 |
+
},
|
102 |
+
{
|
103 |
+
"instruction": "The task is to count the number of vehicles currently at the N205 stage.",
|
104 |
+
"input": "How many vehicles are currently at N205?",
|
105 |
+
"output": "SELECT COUNT(*) AS vehicle_count FROM transactionalplms.trip WHERE mapPlantStageLocation = 'N205';"
|
106 |
+
},
|
107 |
+
{
|
108 |
+
"instruction": "The task is to count vehicles currently in the 'GATE-OUT' stage.",
|
109 |
+
"input": "How many vehicles are in the gate out stage?",
|
110 |
+
"output": "SELECT COUNT(*) AS vehicle_count FROM transactionalplms.trip WHERE mapPlantStageLocation = 'GATE-OUT';"
|
111 |
+
},
|
112 |
+
{
|
113 |
+
"instruction": "The task is to calculate the average time vehicles spend in the 'YARD-IN' stage.",
|
114 |
+
"input": "How much time on average does a vehicle take in Yard-IN?",
|
115 |
+
"output": "SELECT AVG(TIMESTAMPDIFF(MINUTE, yardIn, yardOut)) AS avg_time FROM transactionalplms.trip WHERE mapPlantStageLocation = 'YARD-IN';"
|
116 |
+
},
|
117 |
+
{
|
118 |
+
"instruction": "The task is to retrieve the tareweight time and date for vehicles JH10CD0283 and MH33T4122.",
|
119 |
+
"input": "Tareweight time and date of JH10CD0283, MH33T4122?",
|
120 |
+
"output": "SELECT vehicleNumber, packingOut FROM transactionalplms.trip WHERE vehicleNumber IN ('JH10CD0283', 'MH33T4122') ORDER BY packingOut DESC;"
|
121 |
+
},
|
122 |
+
{
|
123 |
+
"instruction": "The task is to count the number of vehicles aborted today.",
|
124 |
+
"input": "How many vehicles have been aborted today?",
|
125 |
+
"output": "SELECT COUNT(*) AS aborted_count FROM transactionalplms.trip WHERE status = 'A' AND DATE(gateIn) = CURRENT_DATE;"
|
126 |
+
},
|
127 |
+
{
|
128 |
+
"instruction": "The task is to find the vehicle number associated with a specific trip ID.",
|
129 |
+
"input": "I am not able to find the vehicle number related to this 2024042514482296?",
|
130 |
+
"output": "SELECT vehicleNumber FROM transactionalplms.trip WHERE id = '2024042514482296';"
|
131 |
+
},
|
132 |
+
{
|
133 |
+
"instruction": "The task is to count stages completed by vehicle MH02ER9382.",
|
134 |
+
"input": "How many stages has been covered by this MH02ER9382?",
|
135 |
+
"output": "SELECT COUNT(DISTINCT mapPlantStageLocation) AS stages_covered FROM transactionalplms.trip WHERE vehicleNumber = 'MH02ER9382';"
|
136 |
+
},
|
137 |
+
{
|
138 |
+
"instruction": "The task is to find the sequence number for vehicle jh10cr1855.",
|
139 |
+
"input": "In which sequence number is this vehicle jh10cr1855?",
|
140 |
+
"output": "SELECT sequence_number FROM transactionalplms.trip WHERE vehicleNumber = 'jh10cr1855' ORDER BY gateIn DESC LIMIT 1;"
|
141 |
+
},
|
142 |
+
{
|
143 |
+
"instruction": "The task is to calculate the average time a vehicle takes between Packing IN and Packing Out.",
|
144 |
+
"input": "On average, how much time does a vehicle take between Packing IN and Packing Out?",
|
145 |
+
"output": "SELECT AVG(TIMESTAMPDIFF(MINUTE, packingIn, packingOut)) AS avg_packing_time FROM transactionalplms.trip WHERE packingIn IS NOT NULL AND packingOut IS NOT NULL;"
|
146 |
+
},
|
147 |
+
{
|
148 |
+
"instruction": "The task is to count trips with 'S' creation type and 'C' status.",
|
149 |
+
"input": "How many vehicles have trip creation S with C status?",
|
150 |
+
"output": "SELECT COUNT(*) AS trip_count FROM transactionalplms.trip WHERE creationType = 'S' AND status = 'C';"
|
151 |
+
},
|
152 |
+
{
|
153 |
+
"instruction": "The task is to count trips with no issues.",
|
154 |
+
"input": "How many trips have been done by vehicles without any issues?",
|
155 |
+
"output": "SELECT COUNT(*) AS trip_count FROM transactionalplms.trip WHERE status = 'C';"
|
156 |
+
},
|
157 |
+
{
|
158 |
+
"instruction": "The task is to count vehicles with the 'PSC' material type today.",
|
159 |
+
"input": "How many vehicles have this material PSC today?",
|
160 |
+
"output": "SELECT COUNT(*) AS vehicle_count FROM transactionalplms.trip WHERE materialType_code = 'PSC' AND DATE(gateIn) = CURRENT_DATE;"
|
161 |
+
},
|
162 |
+
{
|
163 |
+
"instruction": "The task is to find the trip ID associated with a given serial number.",
|
164 |
+
"input": "Which trip is associated with Serial number 559?",
|
165 |
+
"output": "SELECT id FROM transactionalplms.trip WHERE serial_number = '559';"
|
166 |
+
},
|
167 |
+
{
|
168 |
+
"instruction": "The task is to count vehicles associated with the company IN20.",
|
169 |
+
"input": "How many vehicles are associated with this company IN20 and provide count too?",
|
170 |
+
"output": "SELECT COUNT(*) AS vehicle_count FROM transactionalplms.trip WHERE company_code = 'IN20';"
|
171 |
+
},
|
172 |
+
{
|
173 |
+
"instruction": "The task is to count vehicles handling both COMP and PPC materials.",
|
174 |
+
"input": "How many vehicles are handling COMP and PPC?",
|
175 |
+
"output": "SELECT COUNT(DISTINCT vehicleNumber) AS vehicle_count FROM transactionalplms.trip WHERE materialType_code IN ('COMP', 'PPC');"
|
176 |
+
},
|
177 |
+
{
|
178 |
+
"instruction": "The task is to find the vehicle that took the maximum time from entry to exit today.",
|
179 |
+
"input": "Which vehicle took the maximum time from entry to exit today?",
|
180 |
+
"output": "SELECT vehicleNumber, TIMESTAMPDIFF(MINUTE, gateIn, gateOut) AS time_taken FROM transactionalplms.trip WHERE DATE(gateIn) = CURRENT_DATE ORDER BY time_taken DESC LIMIT 1;"
|
181 |
+
},
|
182 |
+
{
|
183 |
+
"instruction": "The task is to find the vehicle details and stage count for vehicle ID 1005.",
|
184 |
+
"input": "Which vehicle is with this ID 1005 and how many stages are being done by this vehicle?",
|
185 |
+
"output": "SELECT vehicleNumber, COUNT(DISTINCT mapPlantStageLocation) AS stages_completed FROM transactionalplms.trip WHERE id = '1005';"
|
186 |
+
},
|
187 |
+
{
|
188 |
+
"instruction": "The task is to find the current location of vehicle MH04DS5386.",
|
189 |
+
"input": "Where is this MH04DS5386 right now?",
|
190 |
+
"output": "SELECT mapPlantStageLocation FROM transactionalplms.trip WHERE vehicleNumber = 'MH04DS5386' ORDER BY gateIn DESC LIMIT 1;"
|
191 |
+
},
|
192 |
+
{
|
193 |
+
"instruction": "The task is to find the vehicle with the minimum time to complete stages today.",
|
194 |
+
"input": "Which vehicle has the minimum time to complete the stages today?",
|
195 |
+
"output": "SELECT vehicleNumber, TIMESTAMPDIFF(MINUTE, gateIn, gateOut) AS time_taken FROM transactionalplms.trip WHERE DATE(gateIn) = CURRENT_DATE AND gateOut IS NOT NULL ORDER BY time_taken ASC LIMIT 1;"
|
196 |
+
},
|
197 |
+
{
|
198 |
+
"instruction": "The task is to count the goods being handled by company IN10.",
|
199 |
+
"input": "How many goods are being handled by IN10?",
|
200 |
+
"output": "SELECT COUNT(*) AS goods_count FROM transactionalplms.trip WHERE company_code = 'IN10';"
|
201 |
+
},
|
202 |
+
{
|
203 |
+
"instruction": "The task is to count the number of vehicles present in the plant until 3 PM today.",
|
204 |
+
"input": "How many vehicles were there till 3pm?",
|
205 |
+
"output": "SELECT COUNT(*) AS vehicle_count FROM transactionalplms.trip WHERE DATE(gateIn) = CURRENT_DATE AND TIME(gateIn) <= '15:00:00';"
|
206 |
+
},
|
207 |
+
{
|
208 |
+
"instruction": "The task is to find the vehicle with the maximum time to complete stages today.",
|
209 |
+
"input": "Which vehicle has the maximum time to complete the stages today?",
|
210 |
+
"output": "SELECT vehicleNumber, TIMESTAMPDIFF(MINUTE, gateIn, gateOut) AS time_taken FROM transactionalplms.trip WHERE DATE(gateIn) = CURRENT_DATE ORDER BY time_taken DESC LIMIT 1;"
|
211 |
+
},
|
212 |
+
{
|
213 |
+
"instruction": "The task is to count the total number of vehicles in each stage right now.",
|
214 |
+
"input": "Can you show me the total count of vehicles in each stage right now?",
|
215 |
+
"output": "SELECT mapPlantStageLocation, COUNT(*) AS vehicle_count FROM transactionalplms.trip WHERE DATE(gateIn) = CURRENT_DATE GROUP BY mapPlantStageLocation;"
|
216 |
+
},
|
217 |
+
{
|
218 |
+
"instruction": "The task is to count the number of vehicles currently in the Packing-Out stage.",
|
219 |
+
"input": "How many vehicles are currently in the Packing-Out stage?",
|
220 |
+
"output": "SELECT COUNT(*) AS vehicle_count FROM transactionalplms.trip WHERE mapPlantStageLocation = 'Packing-Out';"
|
221 |
+
},
|
222 |
+
{
|
223 |
+
"instruction": "The task is to count the number of vehicles currently between Yard-Out and Gate-Out.",
|
224 |
+
"input": "How many vehicles are currently in between Yard-Out and Gate-Out right now?",
|
225 |
+
"output": "SELECT COUNT(*) AS vehicle_count FROM transactionalplms.trip WHERE mapPlantStageLocation IN ('Yard-Out', 'Gate-Out');"
|
226 |
+
},
|
227 |
+
{
|
228 |
+
"instruction": "The task is to count the number of vehicles with status 'C'.",
|
229 |
+
"input": "How many vehicles got status C?",
|
230 |
+
"output": "SELECT COUNT(*) AS vehicle_count FROM transactionalplms.trip WHERE status = 'C';"
|
231 |
+
},
|
232 |
+
{
|
233 |
+
"instruction": "The task is to count the stages completed by vehicle ID 764.",
|
234 |
+
"input": "How many stages are being completed by this ID 764?",
|
235 |
+
"output": "SELECT COUNT(DISTINCT mapPlantStageLocation) AS stages_completed FROM transactionalplms.trip WHERE id = '764';"
|
236 |
+
},
|
237 |
+
{
|
238 |
+
"instruction": "The task is to count the number of vehicles that completed the Packing-In stage.",
|
239 |
+
"input": "How many vehicles completed the packing-in stage?",
|
240 |
+
"output": "SELECT COUNT(*) AS completed_count FROM transactionalplms.trip WHERE mapPlantStageLocation = 'Packing-In' AND packingIn IS NOT NULL;"
|
241 |
+
},
|
242 |
+
{
|
243 |
+
"instruction": "The task is to find when vehicle MH40CD7766 completed the Yard-IN stage.",
|
244 |
+
"input": "When did vehicle MH40CD7766 complete the YardIN?",
|
245 |
+
"output": "SELECT yardIn FROM transactionalplms.trip WHERE vehicleNumber = 'MH40CD7766' ORDER BY yardIn DESC LIMIT 1;"
|
246 |
+
},
|
247 |
+
{
|
248 |
+
"instruction": "The task is to count the number of vehicles that exited the plant today.",
|
249 |
+
"input": "How many vehicles have exited the plant today?",
|
250 |
+
"output": "SELECT COUNT(*) AS exited_count FROM transactionalplms.trip WHERE DATE(gateOut) = CURRENT_DATE;"
|
251 |
+
},
|
252 |
+
{
|
253 |
+
"instruction": "The task is to count the number of vehicles currently active within the plant.",
|
254 |
+
"input": "What is the total number of vehicles currently active within the plant?",
|
255 |
+
"output": "SELECT COUNT(*) AS active_vehicle_count FROM transactionalplms.trip WHERE gateOut IS NULL;"
|
256 |
+
},
|
257 |
+
{
|
258 |
+
"instruction": "The task is to find the first vehicle that entered the plant today.",
|
259 |
+
"input": "Which vehicle entered the plant first today?",
|
260 |
+
"output": "SELECT vehicleNumber FROM transactionalplms.trip WHERE DATE(gateIn) = CURRENT_DATE ORDER BY gateIn ASC LIMIT 1;"
|
261 |
+
},
|
262 |
+
{
|
263 |
+
"instruction": "The task is to count the number of vehicles in the process of loading material type 'COMP'.",
|
264 |
+
"input": "How many vehicles are in the process of being loaded with material type COMP?",
|
265 |
+
"output": "SELECT COUNT(*) AS loading_count FROM transactionalplms.trip WHERE materialType_code = 'COMP' AND mapPlantStageLocation = 'Loading';"
|
266 |
+
},
|
267 |
+
{
|
268 |
+
"instruction": "The task is to check if vehicle BR23A2793 has completed the Gate-Out stage.",
|
269 |
+
"input": "Has vehicle BR23A2793 successfully completed the Gate-Out stage?",
|
270 |
+
"output": "SELECT gateOut FROM transactionalplms.trip WHERE vehicleNumber = 'BR23A2793' AND gateOut IS NOT NULL LIMIT 1;"
|
271 |
+
},
|
272 |
+
{
|
273 |
+
"instruction": "The task is to count the vehicles present last week.",
|
274 |
+
"input": "How many vehicles were there last week?",
|
275 |
+
"output": "SELECT COUNT(*) AS vehicle_count FROM transactionalplms.trip WHERE WEEK(gateIn) = WEEK(CURRENT_DATE) - 1;"
|
276 |
+
},
|
277 |
+
{
|
278 |
+
"instruction": "The task is to find the date with the maximum number of vehicles in the plant.",
|
279 |
+
"input": "On which date were the maximum number of vehicles present in the plant?",
|
280 |
+
"output": "SELECT DATE(gateIn) AS date, COUNT(*) AS vehicle_count FROM transactionalplms.trip GROUP BY DATE(gateIn) ORDER BY vehicle_count DESC LIMIT 1;"
|
281 |
+
}
|
282 |
+
]
|