Dataset Viewer
Auto-converted to Parquet
instruction
stringlengths
154
296
input
stringlengths
27
53
output
stringlengths
99
131
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.
Where is vehicle JH11AG0663?
SELECT id AS trip_id, status, gateOut FROM transactionalplms.trip WHERE vehicleNumber = 'JH11AG0663' ORDER BY gateOut DESC LIMIT 1;
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.
How many vehicles are currently at our plant?
SELECT COUNT(*) AS vehicle_count FROM transactionalplms.trip WHERE mapPlantStageLocation = 'YARD-IN';
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.
When did vehicle JH11AG0663 complete tareweight?
SELECT packingOut FROM transactionalplms.trip WHERE vehicleNumber = 'JH11AG0663' ORDER BY packingOut DESC LIMIT 1;
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.
Who is the assigned driver for vehicle JH09AR8268?
SELECT driverId FROM transactionalplms.trip WHERE vehicleNumber = 'JH09AR8268' ORDER BY gateIn DESC LIMIT 1;
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.
When did vehicle UP32AA1010 enter the plant?
SELECT gateIn FROM transactionalplms.trip WHERE vehicleNumber = 'UP32AA1010' ORDER BY gateIn DESC LIMIT 1;
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.
What goods are loaded in vehicle JH09AR8268?
SELECT materialType_code FROM transactionalplms.trip WHERE vehicleNumber = 'JH09AR8268' ORDER BY gateIn DESC LIMIT 1;
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.
When did the last vehicle unload at the plant?
SELECT gateOut FROM transactionalplms.trip WHERE mapPlantStageLocation = 'GATE-OUT' ORDER BY gateOut DESC LIMIT 1;
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.
What is the trip ID for vehicle JH09AR8268?
SELECT tripId FROM transactionalplms.trip WHERE vehicleNumber = 'JH09AR8268' ORDER BY gateIn DESC LIMIT 1;
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.
Is trip TRIP9876 completed?
SELECT gateOut FROM transactionalplms.trip WHERE id = '20240418175619192' AND status = 'C' LIMIT 1;
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.
When did vehicle JH11AG0663 start packing?
SELECT packingIn FROM transactionalplms.trip WHERE vehicleNumber = 'JH11AG0663' ORDER BY packingIn DESC LIMIT 1;
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.
Where is vehicle JH11AG0663?
SELECT mapPlantStageLocation FROM transactionalplms.trip WHERE vehicleNumber = 'JH11AG0663' ORDER BY gateIn DESC LIMIT 1;
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.
When did vehicle JH09AR8268 enter and exit the plant?
SELECT gateIn, gateOut FROM transactionalplms.trip WHERE vehicleNumber = 'UP32AA1010' ORDER BY gateIn DESC LIMIT 1;

No dataset card yet

Downloads last month
2