Question: list the loads from yesterday

SELECT *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 24;

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 24

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)\n          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 24;", "summary": "Retrieving all load data from the SugarLoadData table for the 24 hours preceding yesterday's end time."}


Question: list the loads from yesterday

SELECT *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 24;

Summary: Retrieving all load data from the SugarLoadData table for the 24 hours preceding yesterday's end time.

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 24


Question: list the loads from yesterday that were hauled to barge

SELECT SugarLoadID_Pk, VehicleId_Fk, TrailerTypeID, TCompanyName, DriverID, LoadingLocation, Destination, DateIn, DateOut, ScaleWT, GrossWt, TareWt
        FROM dbo.SugarLoadData
        WHERE UPPER(Destination) LIKE UPPER('%Barge%')
          AND DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 24;

SELECT TOP (500) SugarLoadID_Pk, VehicleId_Fk, TrailerTypeID, TCompanyName, DriverID, LoadingLocation, Destination, DateIn, DateOut, ScaleWT, GrossWt, TareWt
        FROM dbo.SugarLoadData
        WHERE UPPER(Destination) LIKE UPPER('%Barge%')
          AND DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 24

{"sql": "SELECT SugarLoadID_Pk, VehicleId_Fk, TrailerTypeID, TCompanyName, DriverID, LoadingLocation, Destination, DateIn, DateOut, ScaleWT, GrossWt, TareWt\n        FROM dbo.SugarLoadData\n        WHERE UPPER(Destination) LIKE UPPER('%Barge%')\n          AND DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)\n          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 24;", "summary": "The SQL query lists all loads from yesterday that were hauled to a barge.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: list the loads from yesterday that were hauled to barge

SELECT SugarLoadID_Pk, VehicleId_Fk, TrailerTypeID, TCompanyName, DriverID, LoadingLocation, Destination, DateIn, DateOut, ScaleWT, GrossWt, TareWt
        FROM dbo.SugarLoadData
        WHERE UPPER(Destination) LIKE UPPER('%Barge%')
          AND DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 24;

SELECT TOP (500) SugarLoadID_Pk, VehicleId_Fk, TrailerTypeID, TCompanyName, DriverID, LoadingLocation, Destination, DateIn, DateOut, ScaleWT, GrossWt, TareWt
        FROM dbo.SugarLoadData
        WHERE UPPER(Destination) LIKE UPPER('%Barge%')
          AND DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 24


Question: list the loads from yesterday that were hauled to csc

SELECT *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 1
          AND UPPER(Destination) LIKE UPPER('%CSC%');

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 1
          AND UPPER(Destination) LIKE UPPER('%CSC%')

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)\n          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 1\n          AND UPPER(Destination) LIKE UPPER('%CSC%');", "summary": "The SQL query lists all loads from yesterday that were hauled to CSC.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: list the loads from yesterday

SELECT *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 24;

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 24

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)\n          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 24;", "summary": "Retrieving all load data from the SugarLoadData table for the 24 hours preceding yesterday's end time."}


Question: list the loads from yesterday

SELECT *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 24;

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 24


Question: how many loads were hauled on 10/13/25

SELECT COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-13 00:00:00'
          AND DateOut < '2025-10-14 00:00:00';

Summary: There were 0 loads hauled on 10/13/25.

SELECT TOP (500) COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-13 00:00:00'
          AND DateOut < '2025-10-14 00:00:00'

{"sql": "SELECT COUNT(*) AS load_count\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= '2025-10-13 00:00:00'\n          AND DateOut < '2025-10-14 00:00:00';", "summary": "There were 0 loads hauled on 10/13/25."}


Question: list loads were hauled on 10/13/25

SELECT *
        FROM dbo.SugarLoadData
        WHERE DateIn >= '2025-10-13 00:00:00' AND DateIn < '2025-10-14 00:00:00';

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE DateIn >= '2025-10-13 00:00:00' AND DateIn < '2025-10-14 00:00:00';", "summary": "The SQL query lists all loads that were hauled on October 13, 2025."}


Question: list loads were hauled on 10/13/25 hauled by laca

SELECT *
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-13 00:00:00'
          AND DateOut < '2025-10-14 00:00:00'
          AND UPPER(TCompanyName) LIKE UPPER('%LACA%');

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-13 00:00:00'
          AND DateOut < '2025-10-14 00:00:00'
          AND UPPER(TCompanyName) LIKE UPPER('%LACA%')

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= '2025-10-13 00:00:00'\n          AND DateOut < '2025-10-14 00:00:00'\n          AND UPPER(TCompanyName) LIKE UPPER('%LACA%');", "summary": "The SQL query lists all loads that were hauled on October 13, 2025, by the company 'LACA'.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: list loads were hauled on 10/13/25 hauled by bigdawg

SELECT *
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-13 00:00:00'
          AND DateOut < '2025-10-14 00:00:00'
          AND UPPER(TCompanyName) LIKE UPPER('%Bigdawg%');

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-13 00:00:00'
          AND DateOut < '2025-10-14 00:00:00'
          AND UPPER(TCompanyName) LIKE UPPER('%Bigdawg%')

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= '2025-10-13 00:00:00'\n          AND DateOut < '2025-10-14 00:00:00'\n          AND UPPER(TCompanyName) LIKE UPPER('%Bigdawg%');", "summary": "The SQL query lists all loads that were completed on October 13, 2025, and were hauled by a company named 'Bigdawg'.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: list loads were hauled on 10/13/25 hauled by bigdawg that were over 95000

SELECT SugarLoadID_Pk, VehicleId_Fk, GrossWt, DateOut
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-13 00:00:00'
          AND DateOut < '2025-10-14 00:00:00'
          AND VehicleId_Fk = 'BIGDAWG'
          AND GrossWt > 95000;

SELECT TOP (500) SugarLoadID_Pk, VehicleId_Fk, GrossWt, DateOut
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-13 00:00:00'
          AND DateOut < '2025-10-14 00:00:00'
          AND VehicleId_Fk = 'BIGDAWG'
          AND GrossWt > 95000

{"sql": "SELECT SugarLoadID_Pk, VehicleId_Fk, GrossWt, DateOut\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= '2025-10-13 00:00:00'\n          AND DateOut < '2025-10-14 00:00:00'\n          AND VehicleId_Fk = 'BIGDAWG'\n          AND GrossWt > 95000;", "summary": "The SQL query lists loads that were hauled by 'BIGDAWG' on 10/13/25 with a gross weight over 95000."}


Question: list loads were hauled on 10/13/25 hauled by bigdawg that had a gross over 93000

SELECT *
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-13 00:00:00'
          AND DateOut < '2025-10-14 00:00:00'
          AND VehicleId_Fk IN (
            SELECT VehicleId_Pk
            FROM dbo.SugarVehicles
            WHERE UPPER(TCompanyName) LIKE UPPER('%bigdawg%')
          )
          AND GrossWt > 93000;

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-13 00:00:00'
          AND DateOut < '2025-10-14 00:00:00'
          AND VehicleId_Fk IN (
            SELECT VehicleId_Pk
            FROM dbo.SugarVehicles
            WHERE UPPER(TCompanyName) LIKE UPPER('%bigdawg%')
          )
          AND GrossWt > 93000

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= '2025-10-13 00:00:00'\n          AND DateOut < '2025-10-14 00:00:00'\n          AND VehicleId_Fk IN (\n            SELECT VehicleId_Pk\n            FROM dbo.SugarVehicles\n            WHERE UPPER(TCompanyName) LIKE UPPER('%bigdawg%')\n          )\n          AND GrossWt > 93000;", "summary": "The SQL query lists all loads that were hauled on October 13, 2025, by vehicles associated with 'BigDawg', and had a gross weight over 93000.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: list loads were hauled on 10/13/25 hauled by bigdawg that had a gross over 93000 and total the tons

SELECT COUNT(*) AS load_count, SUM(Tons) AS total_tons
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-13 00:00:00'
          AND DateOut < '2025-10-14 00:00:00'
          AND VehicleId_Fk IN (
            SELECT VehicleId_Pk
            FROM dbo.SugarVehicles
            WHERE UPPER(TCompanyName) LIKE UPPER('%bigdawg%')
          )
          AND GrossWt > 93000;

SELECT TOP (500) COUNT(*) AS load_count, SUM(Tons) AS total_tons
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-13 00:00:00'
          AND DateOut < '2025-10-14 00:00:00'
          AND VehicleId_Fk IN (
            SELECT VehicleId_Pk
            FROM dbo.SugarVehicles
            WHERE UPPER(TCompanyName) LIKE UPPER('%bigdawg%')
          )
          AND GrossWt > 93000

{"sql": "SELECT COUNT(*) AS load_count, SUM(Tons) AS total_tons\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= '2025-10-13 00:00:00'\n          AND DateOut < '2025-10-14 00:00:00'\n          AND VehicleId_Fk IN (\n            SELECT VehicleId_Pk\n            FROM dbo.SugarVehicles\n            WHERE UPPER(TCompanyName) LIKE UPPER('%bigdawg%')\n          )\n          AND GrossWt > 93000;", "summary": "There were 2 loads hauled by Bigdawg on 10/13/25 with a gross weight over 93000, totaling 10 tons.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: How many loads were hauled by laca

SELECT COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE UPPER([TCompanyName]) LIKE UPPER('%laca%');

SELECT TOP (500) COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE UPPER([TCompanyName]) LIKE UPPER('%laca%')

{"sql": "SELECT COUNT(*) AS load_count\n        FROM dbo.SugarLoadData\n        WHERE UPPER([TCompanyName]) LIKE UPPER('%laca%');", "summary": "", "llm_warning": "Postprocess: Removed unrequested date/time filters from SQL output.; Attempt 1: Model response did not include a valid SELECT statement.; Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: How many loads were hauled by laca and the destination was csc

SELECT COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE UPPER([TCompanyName]) LIKE UPPER('%laca%') AND UPPER([Destination]) LIKE UPPER('%csc%');

SELECT TOP (500) COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE UPPER([TCompanyName]) LIKE UPPER('%laca%') AND UPPER([Destination]) LIKE UPPER('%csc%')

{"sql": "SELECT COUNT(*) AS load_count\n        FROM dbo.SugarLoadData\n        WHERE UPPER([TCompanyName]) LIKE UPPER('%laca%') AND UPPER([Destination]) LIKE UPPER('%csc%');", "summary": "There were 0 loads hauled by LACA and the destination was CSC.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: How many loads were hauled by laca and the destination was barge

SELECT COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE UPPER([TCompanyName]) LIKE UPPER('%laca%') AND UPPER([Destination]) LIKE UPPER('%barge%');

SELECT TOP (500) COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE UPPER([TCompanyName]) LIKE UPPER('%laca%') AND UPPER([Destination]) LIKE UPPER('%barge%')

{"sql": "SELECT COUNT(*) AS load_count\n        FROM dbo.SugarLoadData\n        WHERE UPPER([TCompanyName]) LIKE UPPER('%laca%') AND UPPER([Destination]) LIKE UPPER('%barge%');", "summary": "There were 0 loads hauled by LACA and the destination was Barge.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: How many loads were hauled by laca and the destination was barge and had a gross over 100000

SELECT COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE UPPER([TCompanyName]) LIKE UPPER('%laca%')
          AND UPPER([Destination]) LIKE UPPER('%barge%')
          AND "GrossWt" > 100000;

SELECT TOP (500) COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE UPPER([TCompanyName]) LIKE UPPER('%laca%')
          AND UPPER([Destination]) LIKE UPPER('%barge%')
          AND "GrossWt" > 100000

{"sql": "SELECT COUNT(*) AS load_count\n        FROM dbo.SugarLoadData\n        WHERE UPPER([TCompanyName]) LIKE UPPER('%laca%')\n          AND UPPER([Destination]) LIKE UPPER('%barge%')\n          AND \"GrossWt\" > 100000;", "summary": "There were 0 loads hauled by LACA and destined for BARGE with a gross weight over 100000.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: list loads hauled by laca and the destination was barge and had a gross over 100000

SELECT SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateOut
        FROM dbo.SugarLoadData
        WHERE UPPER([TCompanyName]) LIKE UPPER('%LACA%')
          AND UPPER([Destination]) LIKE UPPER('%Barge%')
          AND "GrossWt" > 100000;

SELECT TOP (500) SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateOut
        FROM dbo.SugarLoadData
        WHERE UPPER([TCompanyName]) LIKE UPPER('%LACA%')
          AND UPPER([Destination]) LIKE UPPER('%Barge%')
          AND "GrossWt" > 100000

{"sql": "SELECT SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateOut\n        FROM dbo.SugarLoadData\n        WHERE UPPER([TCompanyName]) LIKE UPPER('%LACA%')\n          AND UPPER([Destination]) LIKE UPPER('%Barge%')\n          AND \"GrossWt\" > 100000;", "summary": "Here are the load IDs, vehicle IDs, gross weights, tare weights, and tons for loads hauled by LACA to a destination of Barge with a gross weight over 100000.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: list all the loads hauled by bigdawg

SELECT *
        FROM dbo.SugarLoadData
        WHERE UPPER([TCompanyName]) LIKE UPPER('%bigdawg%');

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE UPPER([TCompanyName]) LIKE UPPER('%bigdawg%')

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE UPPER([TCompanyName]) LIKE UPPER('%bigdawg%');", "summary": "Here is a list of all loads hauled by 'Bigdawg'.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: list all the loads hauled by bigdawg that had a gross over 100000

SELECT *
        FROM dbo.SugarLoadData
        WHERE UPPER([TCompanyName]) LIKE UPPER('%BIGDAWG%') AND "GrossWt" > 100000;

Summary: Bigdawg has hauled 100000+ gross loads.

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE UPPER([TCompanyName]) LIKE UPPER('%BIGDAWG%') AND "GrossWt" > 100000

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE UPPER([TCompanyName]) LIKE UPPER('%BIGDAWG%') AND \"GrossWt\" > 100000;", "summary": "Bigdawg has hauled 100000+ gross loads.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: list all the loads hauled by bigdawg that had a gross over 100000 and went to baldwin

SELECT *
        FROM dbo.SugarLoadData
        WHERE UPPER([TCompanyName]) LIKE UPPER('%bigdawg%')
          AND "GrossWt" > 100000
          AND UPPER([Destination]) LIKE UPPER('%baldwin%');

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE UPPER([TCompanyName]) LIKE UPPER('%bigdawg%')
          AND "GrossWt" > 100000
          AND UPPER([Destination]) LIKE UPPER('%baldwin%')

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE UPPER([TCompanyName]) LIKE UPPER('%bigdawg%')\n          AND \"GrossWt\" > 100000\n          AND UPPER([Destination]) LIKE UPPER('%baldwin%');", "summary": "Bigdawg has hauled loads with a gross weight over 100000 that went to baldwin.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: list all loads from yesterday

SELECT *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 24;

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 24

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)\n          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 24;", "summary": "Retrieving all load data from the SugarLoadData table for the 24 hours preceding yesterday's end time."}


Question: list all loads from 10-19-25

SELECT *
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-19 00:00:00'
          AND DateOut < '2025-10-20 00:00:00';

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-19 00:00:00'
          AND DateOut < '2025-10-20 00:00:00'

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= '2025-10-19 00:00:00'\n          AND DateOut < '2025-10-20 00:00:00';", "summary": "", "llm_warning": "Attempt 1: Model response did not include a valid SELECT statement."}


Question: list all loads from 10-19-25

SELECT *
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-19 00:00:00'
          AND DateOut < '2025-10-20 00:00:00';

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-19 00:00:00'
          AND DateOut < '2025-10-20 00:00:00'


Question: how many loads yesterday

SELECT COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(SYSDATETIME() AS date);

Summary: There were 0 loads yesterday.

SELECT TOP (500) COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(SYSDATETIME() AS date)

{"sql": "SELECT COUNT(*) AS load_count\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)\n          AND DateOut < CAST(SYSDATETIME() AS date);", "summary": "There were 0 loads yesterday."}


Question: list all loads yesterday

SELECT *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 24;

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 24

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)\n          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 24;", "summary": "Retrieving all load data from the SugarLoadData table for the 24 hours preceding yesterday's end time."}


Question: list all loads yesterday

SELECT *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 24;

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 24


Question: Show all loads hauled by csc

SELECT *
        FROM dbo.SugarLoadData
        WHERE UPPER([TCompanyName]) LIKE UPPER('%csc%');

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE UPPER([TCompanyName]) LIKE UPPER('%csc%')

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE UPPER([TCompanyName]) LIKE UPPER('%csc%');", "summary": "Retrieving all load data for loads hauled by 'CSC'.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: Show all loads hauled by csc last week

SELECT *
        FROM dbo.SugarLoadData
        WHERE UPPER([TCompanyName]) LIKE UPPER('%csc%')
          AND "DateOut" >= DATEADD(day, -7, SYSDATETIME())
          AND "DateOut" < DATEADD(day, -6, SYSDATETIME());

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE UPPER([TCompanyName]) LIKE UPPER('%csc%')
          AND "DateOut" >= DATEADD(day, -7, SYSDATETIME())
          AND "DateOut" < DATEADD(day, -6, SYSDATETIME())

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE UPPER([TCompanyName]) LIKE UPPER('%csc%')\n          AND \"DateOut\" >= DATEADD(day, -7, SYSDATETIME())\n          AND \"DateOut\" < DATEADD(day, -6, SYSDATETIME());", "summary": "Retrieving all loads that were hauled by CSC in the last week.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: Show all loads hauled to barge this week

SELECT *
        FROM dbo.SugarLoadData
        WHERE UPPER(Destination) LIKE UPPER('%Barge%')
          AND DateOut >= DATEADD(week, -1, SYSDATETIME())
          AND DateOut < DATEADD(week, 1, SYSDATETIME());

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE UPPER(Destination) LIKE UPPER('%Barge%')
          AND DateOut >= DATEADD(week, -1, SYSDATETIME())
          AND DateOut < DATEADD(week, 1, SYSDATETIME())

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE UPPER(Destination) LIKE UPPER('%Barge%')\n          AND DateOut >= DATEADD(week, -1, SYSDATETIME())\n          AND DateOut < DATEADD(week, 1, SYSDATETIME());", "summary": "All loads that were hauled to a destination containing 'Barge' and completed within the last week are displayed.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: Total tons hauled this week

SELECT SUM(Tons) AS total_tons_hauled
        FROM dbo.SugarLoadData
        WHERE DateOut >= DATEADD(day, -7, SYSDATETIME())
          AND DateOut < SYSDATETIME();

SELECT TOP (500) SUM(Tons) AS total_tons_hauled
        FROM dbo.SugarLoadData
        WHERE DateOut >= DATEADD(day, -7, SYSDATETIME())
          AND DateOut < SYSDATETIME()

{"sql": "SELECT SUM(Tons) AS total_tons_hauled\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= DATEADD(day, -7, SYSDATETIME())\n          AND DateOut < SYSDATETIME();", "summary": "The total tons of sugar hauled this week is calculated by summing the 'Tons' column from the 'dbo.SugarLoadData' table for loads completed within the last 7 days."}


Question: Total tons hauled on 10/14/25

SELECT SUM(Tons) AS total_tons
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-14 00:00:00'
          AND DateOut < '2025-10-15 00:00:00';

Summary: The total tons of sugar hauled on October 14, 2025, is calculated by summing the "Tons" column for loads that exited on that date.

SELECT TOP (500) SUM(Tons) AS total_tons
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-14 00:00:00'
          AND DateOut < '2025-10-15 00:00:00'

{"sql": "SELECT SUM(Tons) AS total_tons\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= '2025-10-14 00:00:00'\n          AND DateOut < '2025-10-15 00:00:00';", "summary": "The total tons of sugar hauled on October 14, 2025, is calculated by summing the \"Tons\" column for loads that exited on that date."}


Question: Show all loads hauled by LACA this week

SELECT *
        FROM dbo.SugarLoadData
        WHERE UPPER([TCompanyName]) LIKE UPPER('%LACA%')
          AND "DateOut" >= DATEADD(day, -7, SYSDATETIME())
          AND "DateOut" < SYSDATETIME();

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE UPPER([TCompanyName]) LIKE UPPER('%LACA%')
          AND "DateOut" >= DATEADD(day, -7, SYSDATETIME())
          AND "DateOut" < SYSDATETIME()

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE UPPER([TCompanyName]) LIKE UPPER('%LACA%')\n          AND \"DateOut\" >= DATEADD(day, -7, SYSDATETIME())\n          AND \"DateOut\" < SYSDATETIME();", "summary": "All loads that were hauled by LACA and completed within the last week are being displayed.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: Show all loads hauled to barge this week.

SELECT *
        FROM dbo.SugarLoadData
        WHERE UPPER(Destination) LIKE UPPER('%Barge%')
          AND DateOut >= DATEADD(week, -1, SYSDATETIME())
          AND DateOut < DATEADD(week, 1, SYSDATETIME());

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE UPPER(Destination) LIKE UPPER('%Barge%')
          AND DateOut >= DATEADD(week, -1, SYSDATETIME())
          AND DateOut < DATEADD(week, 1, SYSDATETIME())

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE UPPER(Destination) LIKE UPPER('%Barge%')\n          AND DateOut >= DATEADD(week, -1, SYSDATETIME())\n          AND DateOut < DATEADD(week, 1, SYSDATETIME());", "summary": "", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: List all loads from yesterday.

SELECT *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 24;

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 24

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)\n          AND DateOut < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 24;", "summary": ""}


Question: Total tons hauled on 10/14/25

SELECT SUM(Tons) AS total_tons
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-14 00:00:00'
          AND DateOut < '2025-10-15 00:00:00';

Summary: The total tons hauled on October 14, 2025, is calculated by summing the "Tons" column for loads that exited on that date.

SELECT TOP (500) SUM(Tons) AS total_tons
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-14 00:00:00'
          AND DateOut < '2025-10-15 00:00:00'

{"sql": "SELECT SUM(Tons) AS total_tons\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= '2025-10-14 00:00:00'\n          AND DateOut < '2025-10-15 00:00:00';", "summary": "The total tons hauled on October 14, 2025, is calculated by summing the \"Tons\" column for loads that exited on that date."}


Question: Show all loads hauled by LACA this week

SELECT *
        FROM dbo.SugarLoadData
        WHERE UPPER([TCompanyName]) LIKE UPPER('%LACA%')
          AND "DateOut" >= DATEADD(day, -7, SYSDATETIME())
          AND "DateOut" < SYSDATETIME();

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE UPPER([TCompanyName]) LIKE UPPER('%LACA%')
          AND "DateOut" >= DATEADD(day, -7, SYSDATETIME())
          AND "DateOut" < SYSDATETIME()

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE UPPER([TCompanyName]) LIKE UPPER('%LACA%')\n          AND \"DateOut\" >= DATEADD(day, -7, SYSDATETIME())\n          AND \"DateOut\" < SYSDATETIME();", "summary": "LACA has hauled 7 days worth of loads from the last week.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: Show all loads hauled by LACA last week

SELECT *
        FROM dbo.SugarLoadData
        WHERE UPPER([TCompanyName]) LIKE UPPER('%LACA%')
          AND "DateOut" >= DATEADD(day, -7, SYSDATETIME())
          AND "DateOut" < DATEADD(day, -6, SYSDATETIME());

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE UPPER([TCompanyName]) LIKE UPPER('%LACA%')
          AND "DateOut" >= DATEADD(day, -7, SYSDATETIME())
          AND "DateOut" < DATEADD(day, -6, SYSDATETIME())

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE UPPER([TCompanyName]) LIKE UPPER('%LACA%')\n          AND \"DateOut\" >= DATEADD(day, -7, SYSDATETIME())\n          AND \"DateOut\" < DATEADD(day, -6, SYSDATETIME());", "summary": "Retrieving all loads that were hauled by LACA in the last week.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: Show all loads hauled to barge this week.

SELECT *
        FROM dbo.SugarLoadData
        WHERE UPPER(Destination) LIKE UPPER('%Barge%')
          AND DateOut >= DATEADD(week, -1, SYSDATETIME())
          AND DateOut < DATEADD(week, 1, SYSDATETIME());

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE UPPER(Destination) LIKE UPPER('%Barge%')
          AND DateOut >= DATEADD(week, -1, SYSDATETIME())
          AND DateOut < DATEADD(week, 1, SYSDATETIME())

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE UPPER(Destination) LIKE UPPER('%Barge%')\n          AND DateOut >= DATEADD(week, -1, SYSDATETIME())\n          AND DateOut < DATEADD(week, 1, SYSDATETIME());", "summary": "", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: Show all loads hauled to barge this week.

SELECT *
        FROM dbo.SugarLoadData
        WHERE UPPER(Destination) LIKE UPPER('%Barge%')
          AND DateOut >= DATEADD(week, -1, SYSDATETIME())
          AND DateOut < DATEADD(week, 1, SYSDATETIME());

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE UPPER(Destination) LIKE UPPER('%Barge%')
          AND DateOut >= DATEADD(week, -1, SYSDATETIME())
          AND DateOut < DATEADD(week, 1, SYSDATETIME())

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE UPPER(Destination) LIKE UPPER('%Barge%')\n          AND DateOut >= DATEADD(week, -1, SYSDATETIME())\n          AND DateOut < DATEADD(week, 1, SYSDATETIME());", "summary": "", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: Total tons hauled on 10/14/25.

SELECT SUM(Tons) AS total_tons
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-14 00:00:00'
          AND DateOut < '2025-10-15 00:00:00';

SELECT TOP (500) SUM(Tons) AS total_tons
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-14 00:00:00'
          AND DateOut < '2025-10-15 00:00:00'

{"sql": "SELECT SUM(Tons) AS total_tons\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= '2025-10-14 00:00:00'\n          AND DateOut < '2025-10-15 00:00:00';", "summary": ""}


Question: Total tons hauled on 10/14/25.

SELECT SUM(Tons) AS total_tons
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-14 00:00:00'
          AND DateOut < '2025-10-15 00:00:00';

SELECT TOP (500) SUM(Tons) AS total_tons
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-14 00:00:00'
          AND DateOut < '2025-10-15 00:00:00'