Question: How many loads were completed 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);


Question: How many loads were completed 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);

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)


Question: What was the heaviest load yesterday?

{"sql": SELECT MAX(GrossWt) AS max_gross_weight FROM dbo.SugarLoadData WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) AND DateOut < CAST(SYSDATETIME() AS date);, "summary": "The heaviest load yesterday was 88,000 pounds."}


Question: What was the heaviest load yesterday?

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

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


Question: how many loads today

Answer: SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= CAST(SYSDATETIME() AS date);


Question: how many loads today

Answer: SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= CAST(SYSDATETIME() AS date);


Question: how many loads this week

SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= DATEADD(week, 1, CAST(SYSDATETIME() AS date));


Question: how many loads this week

{"sql": SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= DATEADD(day, -7, CAST(SYSDATETIME() AS date));


Question: how many loads this week

{"sql": SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= DATEADD(day, -7, CAST(SYSDATETIME() AS date));


Question: how many loads this week

{"sql": SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= DATEADD(day, -7, CAST(SYSDATETIME() AS date));


Question: how many loads today

Answer: SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= CAST(SYSDATETIME() AS date);


Question: how many loads today

Answer: SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= CAST(SYSDATETIME() AS date);


Question: how many loads today

SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= CAST(SYSDATETIME() AS date);


Question: how many loads today

SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= CAST(SYSDATETIME() AS date);

SELECT TOP (500) COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= CAST(SYSDATETIME() AS date)


Question: how many loads this week

SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= DATEADD(week, 1, CAST(SYSDATETIME() AS date));

SELECT TOP (500) COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= DATEADD(week, 1, CAST(SYSDATETIME() AS date))


Question: how many loads this past monday

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


Question: what was the heaviest load last week

SELECT MAX(GrossWt) AS heaviest_load FROM dbo.SugarLoadData WHERE DateOut >= DATEADD(day, -7, SYSDATETIME());

SELECT TOP (500) MAX(GrossWt) AS heaviest_load FROM dbo.SugarLoadData WHERE DateOut >= DATEADD(day, -7, SYSDATETIME())


Question: what was the heaviest load last week.

SELECT MAX(GrossWt) AS max_gross_weight FROM dbo.SugarLoadData WHERE DateOut >= DATEADD(day, -7, SYSDATETIME());

SELECT TOP (500) MAX(GrossWt) AS max_gross_weight FROM dbo.SugarLoadData WHERE DateOut >= DATEADD(day, -7, SYSDATETIME())


Question: what was the heaviest load last week.

SELECT MAX(GrossWt) AS heaviest_load FROM dbo.SugarLoadData WHERE DateOut >= DATEADD(day, -7, SYSDATETIME());

SELECT TOP (500) MAX(GrossWt) AS heaviest_load FROM dbo.SugarLoadData WHERE DateOut >= DATEADD(day, -7, SYSDATETIME())


Question: what was the heaviest load last week.

SELECT MAX(GrossWt) AS max_gross_weight FROM dbo.SugarLoadData WHERE DateOut >= DATEADD(day, -7, CAST(SYSDATETIME() AS date));

SELECT TOP (500) MAX(GrossWt) AS max_gross_weight FROM dbo.SugarLoadData WHERE DateOut >= DATEADD(day, -7, CAST(SYSDATETIME() AS date))


Question: loads

SELECT COUNT(*) AS total_loads FROM dbo.SugarLoadData;

SELECT TOP (500) COUNT(*) AS total_loads FROM dbo.SugarLoadData


Question: loads today

SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= CAST(SYSDATETIME() AS date);

SELECT TOP (500) COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= CAST(SYSDATETIME() AS date)


Question: heaviest load last week

SELECT MAX(GrossWt) AS max_gross_weight FROM dbo.SugarLoadData WHERE DateOut >= DATEADD(day, -7, CAST(SYSDATETIME() AS date));

SELECT TOP (500) MAX(GrossWt) AS max_gross_weight FROM dbo.SugarLoadData WHERE DateOut >= DATEADD(day, -7, CAST(SYSDATETIME() AS date))


Question: loads yesterday

that were not completed.
        SQL: SELECT COUNT(*) AS incomplete_loads FROM dbo.SugarLoadData WHERE DateOut IS NULL AND DateIn >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime);


Question: loads today

Summary: by hour of day.


Question: loads today

Summary: by company.


Question: how many loads today

?
        SQL query: SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= CAST(SYSDATETIME() AS date);


Question: how many loads today

LLM output could not be parsed; returning raw text.


Question: how many loads today


Question: how many loads today


Question: how many loads yesterday

?
        SQL query: 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);


Question: how many loads today

?
        SQL query: SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= CAST(SYSDATETIME() AS date);

Model did not return a valid SELECT statement; execution skipped.


Question: how many loads today

?
        SQL query: SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= CAST(SYSDATETIME() AS date);


Question: how many loads today

?
        SQL query: SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= CAST(SYSDATETIME() AS date);


Question: how many loads today

?
        SQL query: SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= CAST(SYSDATETIME() AS date);


Question: how many loads today

?
        SQL: SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= CAST(SYSDATETIME() AS date);

Model response did not include a valid SELECT statement. Second attempt also failed to produce a valid SELECT statement.


Question: how many loads yesterday

?
        SQL: 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);


Question: how many loads yesterday

?
        SQL: 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);


Question: how many loads yesterday

?
        SQL: 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);


Question: loads yesterday

.
        SQL: 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);


Question: loads yesterday

.
        SQL: 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);


Question: loads yesterday

.
        SQL: 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);


Question: loads yesterday

.
        SQL: 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);


Question: loads today

by company.
        SQL: SELECT TCompanyName, COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= CAST(SYSDATETIME() AS date) GROUP BY TCompanyName;


Question: how many loads today

?
        SQL: SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= CAST(SYSDATETIME() AS date) AND DateOut < CAST(SYSDATETIME() AS date) + INTERVAL '1 day';


Question: how many loads today

SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= CAST(SYSDATETIME() AS date);

SELECT TOP (500) COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= CAST(SYSDATETIME() AS date)


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);

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)


Question: how many sugar loads yesterday

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

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


Question: how many sugar loads monday

to friday?
        SQL: SELECT COUNT(*) AS total_loads FROM dbo.SugarLoadData WHERE EXTRACT(dow FROM DateOut) BETWEEN 1 AND 5 AND CAST(DateOut AS DATE) = CAST(SYSDATETIME() AS DATE);


Question: how many sugar loads this past monday

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

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


Question: how many sugar loads this past tuesday

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

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


Question: what was the heaviest load this week?

SELECT MAX(GrossWt) AS heaviest_load FROM dbo.SugarLoadData WHERE DateOut >= DATEADD(week, -1, CAST(SYSDATETIME() AS date));

SELECT TOP (500) MAX(GrossWt) AS heaviest_load FROM dbo.SugarLoadData WHERE DateOut >= DATEADD(week, -1, CAST(SYSDATETIME() AS date))


Question: what was the heaviest load last week?

SELECT MAX(GrossWt) AS max_gross_weight FROM dbo.SugarLoadData WHERE DateOut >= DATEADD(day, -7, SYSDATETIME());

SELECT TOP (500) MAX(GrossWt) AS max_gross_weight FROM dbo.SugarLoadData WHERE DateOut >= DATEADD(day, -7, SYSDATETIME())


Question: what was the heaviest load this week?

SELECT MAX(GrossWt) AS max_gross_weight FROM dbo.SugarLoadData WHERE DateOut >= DATEADD(week, -1, CAST(SYSDATETIME() AS date));

SELECT TOP (500) MAX(GrossWt) AS max_gross_weight FROM dbo.SugarLoadData WHERE DateOut >= DATEADD(week, -1, CAST(SYSDATETIME() AS date))


Question: what was the heaviest load from 10/1 to 10/18?

SELECT MAX(GrossWt) AS heaviest_load FROM dbo.SugarLoadData WHERE DateOut BETWEEN '2020-10-01' AND '2020-10-18';

SELECT TOP (500) MAX(GrossWt) AS heaviest_load FROM dbo.SugarLoadData WHERE DateOut BETWEEN '2020-10-01' AND '2020-10-18'


Question: what was the heaviest load from 10/1 to 10/18?

SELECT MAX(GrossWt) AS heaviest_load FROM dbo.SugarLoadData WHERE DateOut BETWEEN '2020-10-01' AND '2020-10-18';

SELECT TOP (500) MAX(GrossWt) AS heaviest_load FROM dbo.SugarLoadData WHERE DateOut BETWEEN '2020-10-01' AND '2020-10-18'


Question: what was the heaviest load from 10/1/25 to 10/18/25?

SELECT MAX(GrossWt) AS heaviest_load FROM dbo.SugarLoadData WHERE DateOut BETWEEN '2025-10-01' AND '2025-10-18';

SELECT TOP (500) MAX(GrossWt) AS heaviest_load FROM dbo.SugarLoadData WHERE DateOut BETWEEN '2025-10-01' AND '2025-10-18'


Question: what was the lightest load from 10/1/25 to 10/18/25?

LLM response missing generated_text field; returning raw text. Preview: {"generated_text":""} Second attempt also failed to produce a valid SELECT statement.


Question: what was the lightest load from 10/1/25 to 10/18/25?


Question: what was the heaviest load from 10/1/25 to 10/9/25?

SELECT MAX(GrossWt) AS heaviest_load FROM dbo.SugarLoadData WHERE DateOut BETWEEN '2025-10-01' AND '2025-10-09';

SELECT TOP (500) MAX(GrossWt) AS heaviest_load FROM dbo.SugarLoadData WHERE DateOut BETWEEN '2025-10-01' AND '2025-10-09'


Question: what was the heaviest load from 10/1/25 to 10/3/25?

SELECT MAX(GrossWt) AS heaviest_load FROM SugarLoadData WHERE DateOut BETWEEN '2025-10-01' AND '2025-10-03';

SELECT TOP (500) MAX(GrossWt) AS heaviest_load FROM SugarLoadData WHERE DateOut BETWEEN '2025-10-01' AND '2025-10-03'


Question: what was the heaviest load from 10/4/25 to 10/6/25?

SELECT MAX(GrossWt) AS heaviest_load FROM dbo.SugarLoadData WHERE DateOut BETWEEN '2025-10-04' AND '2025-10-06';

SELECT TOP (500) MAX(GrossWt) AS heaviest_load FROM dbo.SugarLoadData WHERE DateOut BETWEEN '2025-10-04' AND '2025-10-06'


Question: what was the heaviest load from 10/4/25 to 10/5/25?

SELECT MAX(GrossWt) AS max_gross_weight FROM dbo.SugarLoadData WHERE DateOut BETWEEN '2025-10-04' AND '2025-10-05';

SELECT TOP (500) MAX(GrossWt) AS max_gross_weight FROM dbo.SugarLoadData WHERE DateOut BETWEEN '2025-10-04' AND '2025-10-05'


Question: what was the heaviest load from 10/7/25 to 10/9/25?

SELECT MAX(GrossWt) AS max_gross_weight FROM dbo.SugarLoadData WHERE DateOut BETWEEN '2025-10-07' AND '2025-10-09';

SELECT TOP (500) MAX(GrossWt) AS max_gross_weight FROM dbo.SugarLoadData WHERE DateOut BETWEEN '2025-10-07' AND '2025-10-09'


Question: How many loads over 100000 yesterday

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

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


Question: List all loads over 100000 yesterday

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

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


Question: List all loads over 100000 yesterday

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

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


Question: List all loads between 90000 and 80000 yesterday

SELECT * FROM dbo.SugarLoadData WHERE ScaleWT BETWEEN 90000 AND 80000 AND DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime);

SELECT TOP (500) * FROM dbo.SugarLoadData WHERE ScaleWT BETWEEN 90000 AND 80000 AND DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)


Question: List all loads between 90000 and 100000 yesterday

SELECT * FROM dbo.SugarLoadData WHERE ScaleWT BETWEEN 90000 AND 100000 AND DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) ORDER BY DateOut NULLS LAST;


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(SYSDATETIME() AS date);


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(SYSDATETIME() AS date);

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

Initial attempt failed: LLM output could not be parsed; returning raw text. Preview: .. Retried with formatting reminder.


Question: List all loads from 10/16/25

Summary: to 10/17/25.

LLM output could not be parsed; returning raw text. Preview: to 10/17/25. Second attempt also failed to produce a valid SELECT statement.


Question: List all loads from 10/16/25

Summary: 00 to 10/17/2500.

LLM output could not be parsed; returning raw text. Preview: 00 to 10/17/2500. Second attempt also failed to produce a valid SELECT statement.


Question: List all loads from 10/16/25

Summary: 62 to 10/17/2562.

LLM output could not be parsed; returning raw text. Preview: 62 to 10/17/2562. Second attempt also failed to produce a valid SELECT statement.


Question: List all loads from monday

to friday.
        SQL: SELECT * FROM dbo.SugarLoadData WHERE EXTRACT(dow FROM DateOut) BETWEEN 1 AND 5;


Question: List all loads from 10/15/25

Summary: 62 to 10/20/2562.

LLM output could not be parsed; returning raw text. Preview: 62 to 10/20/2562. Second attempt also failed to produce a valid SELECT statement.


Question: List all loads from 10/15/2025

to 10/20/2025.
        SQL: SELECT * FROM dbo.SugarLoadData WHERE DateIn BETWEEN '2025-10-15' AND '2025-10-20';


Question: List all loads from 10/15/2025 only

LLM output could not be parsed; returning raw text. Preview: . Second attempt also failed to produce a valid SELECT statement.


Question: List all loads from the past week

SELECT * FROM dbo.SugarLoadData WHERE DateOut >= DATEADD(day, -7, CAST(SYSDATETIME() AS date));

SELECT TOP (500) * FROM dbo.SugarLoadData WHERE DateOut >= DATEADD(day, -7, CAST(SYSDATETIME() AS date))


Question: List all loads from ralph callier

's company in the last 24 hours.
        SQL: SELECT * FROM dbo.SugarLoadData l WHERE l.TCompanyName ILIKE '%RALPH%CALLIER%' AND l.DateOut >= DATEADD(hour, -24, SYSDATETIME()) ORDER BY l.DateOut NULLS LAST;


Question: List all loads from ralph callier

's company in the last 24 hours.
        SQL: SELECT * FROM dbo.SugarLoadData l JOIN dbo.SugarVehicles v ON l.VehicleId_Fk = v.VehicleId_Pk WHERE v.TCompanyName ILIKE '%ralph%callier%' AND l.DateOut >= DATEADD(hour, -24, SYSDATETIME()) ORDER BY l.DateOut NULLS LAST;


Question: List all loads from company ralph callier

in the last 24 hours.
        SQL: SELECT * FROM dbo.SugarLoadData WHERE TCompanyName ILIKE '%ralph%callier%' AND DateOut >= CAST(DATEADD(hour, -24, CAST(SYSDATETIME() AS date)) AS datetime) ORDER BY DateOut NULLS LAST;


Question: List all loads from company Ralph Callier

in the last 7 days.
        SQL: SELECT * FROM dbo.SugarLoadData WHERE TCompanyName ILIKE '%Ralph%Callier%' AND DateOut >= DATEADD(day, -7, CAST(SYSDATETIME() AS date));


Question: List all loads from company Ralph Callier

in the last 7 days.
        SQL: SELECT * FROM dbo.SugarLoadData WHERE TCompanyName ILIKE '%Ralph%Callier%' AND DateOut >= DATEADD(day, -7, CAST(SYSDATETIME() AS date));


Question: How many loads from Ralph callier

were delivered in the last 24 hours?
        SQL: SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= DATEADD(hour, -24, CAST(SYSDATETIME() AS date)) AND TCompanyName ILIKE '%Ralph%callier%';


Question: How many loads from Ralph callier

were delivered yesterday?
        SQL: SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) AND TCompanyName ILIKE '%Ralph%callier%';


Question: How many loads from Ralph callier from all time

LLM output could not be parsed; returning raw text. Preview: ? Second attempt also failed to produce a valid SELECT statement.


Question: How many loads from Ralph callier from all time


Question: How many loads from Ralph callier from all time


Question: How many loads from Ralph callier

were delivered today?
        SQL: SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE DateOut >= CAST(SYSDATETIME() AS date) AND TCompanyName ILIKE '%Ralph%callier%';


Question: How many loads from Ralph callier

were delivered today?
        SQL: SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE TCompanyName ILIKE '%Ralph%callier%' AND DateOut >= CAST(SYSDATETIME() AS date) AND DateOut < CAST(SYSDATETIME() + INTERVAL '1 day' AS date);


Question: How many loads from Ralph callier were delivered today

SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE TCompanyName ILIKE '%Ralph%callier%' AND DateOut >= CAST(SYSDATETIME() AS date) AND DateOut < CAST(SYSDATETIME() + INTERVAL '1 day' AS date);

Initial attempt failed: LLM output could not be parsed; returning raw text. Preview: ?. Retried with formatting reminder.


Question: Find loads from Ralph Callier

's company in the last 24 hours.
        SQL: SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData l JOIN dbo.SugarVehicles v ON l.VehicleId_Fk = v.VehicleId_Pk WHERE v.TCompanyName ILIKE '%Ralph%Callier%' AND l.DateOut >= DATEADD(hour, -24, SYSDATETIME());

Model added an unrequested time filter. Ensure future responses only add filters present in the question. Second attempt also failed to produce a valid SELECT statement.


Question: Find loads from Ralph Callier

SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE TCompanyName ILIKE '%RALPH CALLIER%' AND DateOut >= CAST(DATEADD(day, -14, SYSDATETIME()) AS date);


Question: Find loads from Ralph Callier

SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData l JOIN dbo.SugarVehicles v ON l.VehicleId_Fk = v.VehicleId_Pk WHERE UPPER(v.TCompanyName) LIKE UPPER('%RALPH%CALLIER%') AND l.DateOut >= CAST(SYSDATETIME() AS date);

SELECT TOP (500) COUNT(*) AS load_count FROM dbo.SugarLoadData l JOIN dbo.SugarVehicles v ON l.VehicleId_Fk = v.VehicleId_Pk WHERE UPPER(v.TCompanyName) LIKE UPPER('%RALPH%CALLIER%') AND l.DateOut >= CAST(SYSDATETIME() AS date)

Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE).


Question: Find loads from ralph callier

SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData l JOIN dbo.SugarVehicles v ON l.VehicleId_Fk = v.VehicleId_Pk WHERE UPPER(v.TCompanyName) LIKE UPPER('%ralph%callier%') AND l.DateOut IS NOT NULL;

SELECT TOP (500) COUNT(*) AS load_count FROM dbo.SugarLoadData l JOIN dbo.SugarVehicles v ON l.VehicleId_Fk = v.VehicleId_Pk WHERE UPPER(v.TCompanyName) LIKE UPPER('%ralph%callier%') AND l.DateOut IS NOT NULL


Question: Lost all loads from ralph callier

SELECT COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE UPPER(TCompanyName) LIKE UPPER('%RALPH%CALLIER%') AND DateOut IS NULL;

SELECT TOP (500) COUNT(*) AS load_count FROM dbo.SugarLoadData WHERE UPPER(TCompanyName) LIKE UPPER('%RALPH%CALLIER%') AND DateOut IS NULL

Attempt 1: LLM output could not be parsed; returning raw text. Preview: .; Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE).


Question: How many loads of sugar today

SELECT COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date);
        Summary: "There are currently 0 loads of sugar today."


Question: How many loads today

SELECT COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date);
        Summary: "There are currently 0 loads today."


Question: How many loads today from ralph callier

SELECT COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date)
          AND UPPER(TCompanyName) LIKE UPPER('%ralph callier%');
        Summary: "There are 0 loads today from Ralph Callier."


Question: How many loads today from ralph callier

SELECT COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date)
          AND UPPER(TCompanyName) LIKE UPPER('%ralph callier%');
        Summary: "There are currently 0 loads from Ralph Callier today."


Question: How many loads today

SELECT COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date);
        Summary: "There are currently 0 loads today."


Question: How many loads today

SELECT COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date);
        Summary: "There are currently 0 loads today."


Question: How many loads today

SELECT COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date);
        Summary: "There are currently 0 loads today."


Question: How many loads today

SELECT COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date);

Summary: There are currently 0 loads today.


Question: How many loads today

SELECT COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date);

Summary: There are currently 0 loads today.

SELECT TOP (500) COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date)


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 5 loads completed 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)


Question: Liat all loads from ralph callier

SELECT *
        FROM dbo.SugarLoadData
        WHERE "TCompanyName" ILIKE '%RALPH CALLIER%';

Summary: Retrieving all load data for 'RALPH CALLIER'.


Question: Liat all loads from ralph callier

SELECT *
        FROM dbo.SugarLoadData
        WHERE "TCompanyName" ILIKE '%RALPH CALLIER%';


Question: Liat all loads from ralph callier

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


Question: Liat all loads from ralph callier

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

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


Question: Liat all loads from 10/12/25

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

Summary: Retrieving all loads that occurred on 10/12/25.

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


Question: Liat all loads from 10/12/25 over 100000

SELECT *
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-12 00:00:00'
          AND GrossWt > 100000;

Summary: Retrieving all loads that occurred on or after 10/12/25 and had a gross weight over 100000.

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-12 00:00:00'
          AND GrossWt > 100000


Question: Liat all loads from 10/12/25 to 10/13/25 over 100000

SELECT *
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-12 00:00:00' AND DateOut < '2025-10-14 00:00:00' AND GrossWt > 100000;

Summary: Selecting all loads from 10/12/25 to 10/13/25 with a gross weight over 100000.

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2025-10-12 00:00:00' AND DateOut < '2025-10-14 00:00:00' AND GrossWt > 100000


Question: How many loads over 100000

SELECT COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE GrossWt > 100000;
        Summary: "There are 0 loads over 100000."

{"sql": "SELECT COUNT(*) AS load_count\n        FROM dbo.SugarLoadData\n        WHERE GrossWt > 100000;\n        Summary: \"There are 0 loads over 100000.\"", "summary": "", "llm_warning": "Attempt 1: Model response did not include a valid SELECT statement."}


Question: How many loads over 100000

SELECT COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE GrossWt > 100000;

SELECT TOP (500) COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE GrossWt > 100000

{"sql": "SELECT COUNT(*) AS load_count\n        FROM dbo.SugarLoadData\n        WHERE GrossWt > 100000;", "summary": "", "llm_warning": "Postprocess: Removed unrequested date/time filters from SQL output.; Attempt 1: Model response did not include a valid SELECT statement."}


Question: List all loads on 10/12/25

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

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

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


Question: List all loads on 10/12/25 hauled by big dog

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

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

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= '2025-10-12 00:00:00'\n          AND DateOut < '2025-10-13 00:00:00'\n          AND VehicleId_Fk IN (\n            SELECT VehicleId_Pk\n            FROM dbo.SugarVehicles\n            WHERE UPPER(TCompanyName) LIKE UPPER('%big dog%')\n          );", "summary": "The SQL query lists all loads that occurred on 10/12/25 and were hauled by vehicles associated with the company name 'Big Dog'.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: List all loads on 10/12/25 hauled by bigdog

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

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

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= '2025-10-12 00:00:00'\n          AND DateOut < '2025-10-13 00:00:00'\n          AND VehicleId_Fk IN (\n            SELECT VehicleId_Pk\n            FROM dbo.SugarVehicles\n            WHERE UPPER(TCompanyName) LIKE UPPER('%bigdog%')\n          );", "summary": "The SQL query lists all loads that occurred on 10/12/25 and were hauled by vehicles associated with the company name 'bigdog'.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: List all loads on 10/12/25 hauled by csc

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

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

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


Question: List all loads on 10/14/25 hauled by csc

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

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

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


Question: List all loads that have gs in the vehicle name

SELECT *
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk IN (
            SELECT VehicleId_Pk
            FROM dbo.SugarVehicles
            WHERE UPPER(TCompanyName) LIKE UPPER('%gs%')
        );

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk IN (
            SELECT VehicleId_Pk
            FROM dbo.SugarVehicles
            WHERE UPPER(TCompanyName) LIKE UPPER('%gs%')
        )

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE VehicleId_Fk IN (\n            SELECT VehicleId_Pk\n            FROM dbo.SugarVehicles\n            WHERE UPPER(TCompanyName) LIKE UPPER('%gs%')\n        );", "summary": "Retrieving all loads associated with vehicles whose company names contain 'gs'.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: List all loads that have gs in the vehicle id

SELECT *
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk LIKE '%gs%';

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk LIKE '%gs%'

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE VehicleId_Fk LIKE '%gs%';", "summary": "Retrieving all loads with 'gs' in the vehicle id."}


Question: List all loads that have callier in the vehicle id

SELECT *
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk LIKE '%callier%';

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk LIKE '%callier%'

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE VehicleId_Fk LIKE '%callier%';", "summary": "Retrieving all load data for vehicles with 'callier' in their identifier."}


Question: List all loads that have laca in the vehicle id

SELECT *
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk LIKE '%laca%';

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk LIKE '%laca%'

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE VehicleId_Fk LIKE '%laca%';", "summary": "Retrieving all loads with 'laca' in the vehicle ID."}


Question: List all loads that have bd in the vehicle id

SELECT *
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk LIKE '%bd%';

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk LIKE '%bd%'

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE VehicleId_Fk LIKE '%bd%';", "summary": "Retrieving all load data for vehicles with 'bd' in their identifier."}


Question: List all loads that are between 90000 and 92000

SELECT *
        FROM dbo.SugarLoadData
        WHERE GrossWt BETWEEN 90000 AND 92000;

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE GrossWt BETWEEN 90000 AND 92000

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE GrossWt BETWEEN 90000 AND 92000;", "summary": "Listing all loads with gross weights between 90000 and 92000.", "llm_warning": "Attempt 1: Model response did not include a valid SELECT statement."}


Question:
List all loads that are between 90000 and 92000
And the company is bigdawg

SELECT *
FROM dbo.SugarLoadData
WHERE GrossWt BETWEEN 90000 AND 92000
  AND UPPER(TCompanyName) LIKE UPPER('%BIGDAWG%');

SELECT TOP (500) *
FROM dbo.SugarLoadData
WHERE GrossWt BETWEEN 90000 AND 92000
  AND UPPER(TCompanyName) LIKE UPPER('%BIGDAWG%')

{"sql": "SELECT *\nFROM dbo.SugarLoadData\nWHERE GrossWt BETWEEN 90000 AND 92000\n  AND UPPER(TCompanyName) LIKE UPPER('%BIGDAWG%');", "summary": "The SQL query lists all loads with a gross weight between 90000 and 92000 and the company name contains 'BIGDAWG'.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: List all loads with a tare weight less than 30000

SELECT *
        FROM dbo.SugarLoadData
        WHERE "TareWt" < 30000;

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE "TareWt" < 30000

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE \"TareWt\" < 30000;", "summary": "Retrieving all load data with a tare weight less than 30000."}


Question: Show me all loads under 30000

SELECT SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateIn, DateOut
        FROM dbo.SugarLoadData
        WHERE GrossWt < 30000;

{"sql": "SELECT SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateIn, DateOut\n        FROM dbo.SugarLoadData\n        WHERE GrossWt < 30000;", "summary": "Displaying all load data with a gross weight less than 30000 pounds.", "llm_warning": "Attempt 1: Model response did not include a valid SELECT statement."}


Question: Show me all loads under 30000

SELECT *
        FROM dbo.SugarLoadData
        WHERE GrossWt < 30000;

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE GrossWt < 30000

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE GrossWt < 30000;", "summary": "Displaying all loads with a gross weight less than 30000.", "llm_warning": "Attempt 1: Model response did not include a valid SELECT statement."}


Question: Show me all loads with a tare under 30000

SELECT *
        FROM dbo.SugarLoadData
        WHERE "TareWt" < 30000;

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE "TareWt" < 30000

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE \"TareWt\" < 30000;", "summary": "Retrieving all load data with a tare weight less than 30000."}


Question: Show me all loads with a tare under 30000

SELECT *
        FROM dbo.SugarLoadData
        WHERE "TareWt" < 30000;

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE "TareWt" < 30000


Question: show me loads hauled by bigdawg between 10/12/25 and 10/14/25

SELECT SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateIn, DateOut
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk IN (SELECT VehicleId_Pk FROM dbo.SugarVehicles WHERE UPPER(TCompanyName) LIKE UPPER('%BIGDAWG%'))
          AND DateIn >= '2025-10-12' AND DateIn < '2025-10-15'
        ORDER BY DateIn;

SELECT TOP (500) SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateIn, DateOut
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk IN (SELECT VehicleId_Pk FROM dbo.SugarVehicles WHERE UPPER(TCompanyName) LIKE UPPER('%BIGDAWG%'))
          AND DateIn >= '2025-10-12' AND DateIn < '2025-10-15'
        ORDER BY DateIn

{"sql": "SELECT SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateIn, DateOut\n        FROM dbo.SugarLoadData\n        WHERE VehicleId_Fk IN (SELECT VehicleId_Pk FROM dbo.SugarVehicles WHERE UPPER(TCompanyName) LIKE UPPER('%BIGDAWG%'))\n          AND DateIn >= '2025-10-12' AND DateIn < '2025-10-15'\n        ORDER BY DateIn;", "summary": "The SQL query retrieves load data for loads hauled by 'BIGDAWG' between 10/12/25 and 10/14/25, ordered by the time of entry.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: show me loads hauled by bigdawg between 10/12/25 and 10/14/25 that are over 100000

SELECT SugarLoadID_Pk, VehicleId_Fk, GrossWt, DateOut
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk IN (SELECT VehicleId_Pk FROM dbo.SugarVehicles WHERE UPPER(TCompanyName) LIKE UPPER('%BIGDAWG%'))
          AND DateOut >= '2025-10-12 00:00:00'
          AND DateOut < '2025-10-15 00:00:00'
          AND GrossWt > 100000;

SELECT TOP (500) SugarLoadID_Pk, VehicleId_Fk, GrossWt, DateOut
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk IN (SELECT VehicleId_Pk FROM dbo.SugarVehicles WHERE UPPER(TCompanyName) LIKE UPPER('%BIGDAWG%'))
          AND DateOut >= '2025-10-12 00:00:00'
          AND DateOut < '2025-10-15 00:00:00'
          AND GrossWt > 100000

{"sql": "SELECT SugarLoadID_Pk, VehicleId_Fk, GrossWt, DateOut\n        FROM dbo.SugarLoadData\n        WHERE VehicleId_Fk IN (SELECT VehicleId_Pk FROM dbo.SugarVehicles WHERE UPPER(TCompanyName) LIKE UPPER('%BIGDAWG%'))\n          AND DateOut >= '2025-10-12 00:00:00'\n          AND DateOut < '2025-10-15 00:00:00'\n          AND GrossWt > 100000;", "summary": "Bigdawg has hauled 100000+ pound loads on 10/12/25 and 10/13/25.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: show me loads hauled by bigdawg between 10/12/25 and 10/14/25 that have a tare less than 30000

SELECT SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateIn, DateOut
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk IN (
            SELECT VehicleId_Pk
            FROM dbo.SugarVehicles
            WHERE UPPER(TCompanyName) LIKE UPPER('%bigdawg%')
        )
        AND DateIn >= '2025-10-12' AND DateIn < '2025-10-15'
        AND TareWt < 30000;

SELECT TOP (500) SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateIn, DateOut
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk IN (
            SELECT VehicleId_Pk
            FROM dbo.SugarVehicles
            WHERE UPPER(TCompanyName) LIKE UPPER('%bigdawg%')
        )
        AND DateIn >= '2025-10-12' AND DateIn < '2025-10-15'
        AND TareWt < 30000

{"sql": "SELECT SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateIn, DateOut\n        FROM dbo.SugarLoadData\n        WHERE VehicleId_Fk IN (\n            SELECT VehicleId_Pk\n            FROM dbo.SugarVehicles\n            WHERE UPPER(TCompanyName) LIKE UPPER('%bigdawg%')\n        )\n        AND DateIn >= '2025-10-12' AND DateIn < '2025-10-15'\n        AND TareWt < 30000;", "summary": "Bigdawg loads with a tare less than 30000 from 10/12/25 to 10/14/25 are being listed.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: show me loads hauled by bigdawg between 10/12/25 and 10/14/25

SELECT *
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk IN (SELECT VehicleId_Pk FROM dbo.SugarVehicles WHERE UPPER(TCompanyName) LIKE UPPER('%BIGDAWG%'))
          AND DateOut >= '2025-10-12 00:00:00'
          AND DateOut < '2025-10-15 00:00:00';

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk IN (SELECT VehicleId_Pk FROM dbo.SugarVehicles WHERE UPPER(TCompanyName) LIKE UPPER('%BIGDAWG%'))
          AND DateOut >= '2025-10-12 00:00:00'
          AND DateOut < '2025-10-15 00:00:00'

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE VehicleId_Fk IN (SELECT VehicleId_Pk FROM dbo.SugarVehicles WHERE UPPER(TCompanyName) LIKE UPPER('%BIGDAWG%'))\n          AND DateOut >= '2025-10-12 00:00:00'\n          AND DateOut < '2025-10-15 00:00:00';", "summary": "The SQL query retrieves all loads associated with vehicles registered to 'BIGDAWG' that occurred between 10/12/25 and 10/14/25.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: show me loads hauled by bigdawg on 10/12/25 between 6am and noon

SELECT *
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk IN (SELECT VehicleId_Pk FROM dbo.SugarVehicles WHERE UPPER(TCompanyName) LIKE UPPER('%BIGDAWG%'))
          AND DateOut >= '2025-10-12 06:00:00'
          AND DateOut < '2025-10-12 12:00:00';

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk IN (SELECT VehicleId_Pk FROM dbo.SugarVehicles WHERE UPPER(TCompanyName) LIKE UPPER('%BIGDAWG%'))
          AND DateOut >= '2025-10-12 06:00:00'
          AND DateOut < '2025-10-12 12:00:00'

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE VehicleId_Fk IN (SELECT VehicleId_Pk FROM dbo.SugarVehicles WHERE UPPER(TCompanyName) LIKE UPPER('%BIGDAWG%'))\n          AND DateOut >= '2025-10-12 06:00:00'\n          AND DateOut < '2025-10-12 12:00:00';", "summary": "The SQL query retrieves all loads associated with the vehicle 'BIGDAWG' that occurred between 6am and noon on 10/12/25.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: show me loads hauled by bigdawg on 10/12/25 between 6am and 12pm

SELECT *
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk IN (SELECT VehicleId_Pk FROM dbo.SugarVehicles WHERE UPPER(TCompanyName) LIKE UPPER('%BIGDAWG%'))
          AND DateOut >= '2025-10-12 06:00:00'
          AND DateOut < '2025-10-12 12:00:00';

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk IN (SELECT VehicleId_Pk FROM dbo.SugarVehicles WHERE UPPER(TCompanyName) LIKE UPPER('%BIGDAWG%'))
          AND DateOut >= '2025-10-12 06:00:00'
          AND DateOut < '2025-10-12 12:00:00'

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE VehicleId_Fk IN (SELECT VehicleId_Pk FROM dbo.SugarVehicles WHERE UPPER(TCompanyName) LIKE UPPER('%BIGDAWG%'))\n          AND DateOut >= '2025-10-12 06:00:00'\n          AND DateOut < '2025-10-12 12:00:00';", "summary": "Here are the loads hauled by 'BIGDAWG' on 10/12/25 from 6am to 12pm.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: show me loads hauled by bigdawg on 10/12/25 between 12am and 11pm

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

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

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE VehicleId_Fk IN (SELECT VehicleId_Pk FROM dbo.SugarVehicles WHERE UPPER(TCompanyName) LIKE UPPER('%BIGDAWG%'))\n          AND DateOut >= '2025-10-12 00:00:00'\n          AND DateOut < '2025-10-13 23:00:00';", "summary": "The SQL query retrieves all loads associated with the vehicle 'BIGDAWG' from 10/12/25 from 12am to 11pm.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: show me loads hauled by bigdawg on 10/13/25 between midnight and 4pm

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

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

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE VehicleId_Fk IN (SELECT VehicleId_Pk FROM dbo.SugarVehicles WHERE UPPER(TCompanyName) LIKE UPPER('%BIGDAWG%'))\n          AND DateOut >= '2025-10-13 00:00:00'\n          AND DateOut < '2025-10-13 16:00:00';", "summary": "The SQL query retrieves all loads associated with the vehicle 'BIGDAWG' on October 13, 2025, between midnight and 4pm.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: List Loads from today

SELECT SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateIn, DateOut
        FROM dbo.SugarLoadData
        WHERE DateIn >= CAST(SYSDATETIME() AS date);

{"sql": "SELECT SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateIn, DateOut\n        FROM dbo.SugarLoadData\n        WHERE DateIn >= CAST(SYSDATETIME() AS date);", "summary": "Retrieving all loads from today, including their unique load ID, vehicle ID, gross weight, tare weight, net weight, and timestamps for entry and exit."}


Question: List Loads from today

SELECT SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateIn, DateOut, LoadType, TrailerTypeID, LoadingLocation, Destination, TCompanyName
        FROM dbo.SugarLoadData
        WHERE DateIn >= CAST(SYSDATETIME() AS date);

{"sql": "SELECT SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateIn, DateOut, LoadType, TrailerTypeID, LoadingLocation, Destination, TCompanyName\n        FROM dbo.SugarLoadData\n        WHERE DateIn >= CAST(SYSDATETIME() AS date);", "summary": "Retrieving all loads from today, including their unique load ID, vehicle ID, gross weight, tare weight, net weight, date of entry, date of exit, load type, trailer type, loading location, destination, and hauling company."}


Question: List Loads from today

SELECT SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateIn, DateOut, LoadType, TrailerTypeID, LoadingLocation, Destination, TCompanyName
        FROM dbo.SugarLoadData
        WHERE DateIn >= CAST(SYSDATETIME() AS date);


Question: Show loads from today

{"sql": "SELECT * FROM dbo.SugarLoadData WHERE DateOut >= CAST(SYSDATETIME() AS date);", "summary": "Displaying all loads that occurred today."}


Question: Show loads from today

{"sql": "SELECT * FROM dbo.SugarLoadData WHERE DateOut >= CAST(SYSDATETIME() AS date);", "summary": "Displaying all loads that occurred today."}


Question: How many loads today

SELECT COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date);

Summary: There are currently no loads today.

{"sql": "SELECT COUNT(*) AS load_count\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= CAST(SYSDATETIME() AS date);", "summary": "There are currently no loads today."}


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.

{"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: 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);

{"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 10 loads completed yesterday."}


Question: How many loads on 10/12/25

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

{"sql": "SELECT COUNT(*) AS load_count\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= '2025-10-12 00:00:00'\n          AND DateOut < '2025-10-13 00:00:00';", "summary": "The query counts the number of loads that occurred on October 12, 2025."}


Question: How many loads today between 6am and now

SELECT COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date)
          AND DateOut < DATEADD(hour, 18, CAST(SYSDATETIME() AS date))
          AND DateIn >= DATEADD(hour, 6, CAST(SYSDATETIME() AS date));

{"sql": "SELECT COUNT(*) AS load_count\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= CAST(SYSDATETIME() AS date)\n          AND DateOut < DATEADD(hour, 18, CAST(SYSDATETIME() AS date))\n          AND DateIn >= DATEADD(hour, 6, CAST(SYSDATETIME() AS date));", "summary": "There are currently 0 loads recorded today between 6am and 6pm."}


Question: How many loads today between 6am and now

SELECT COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date)
          AND DateOut < DATEADD(hour, 18, CAST(SYSDATETIME() AS date))
          AND DateIn >= DATEADD(hour, 6, CAST(SYSDATETIME() AS date));

{"sql": "SELECT COUNT(*) AS load_count\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= CAST(SYSDATETIME() AS date)\n          AND DateOut < DATEADD(hour, 18, CAST(SYSDATETIME() AS date))\n          AND DateIn >= DATEADD(hour, 6, CAST(SYSDATETIME() AS date));", "summary": "There are currently 0 loads recorded from 6am to 6pm today."}


Question: How many loads today

SELECT COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date);

Summary: There are currently 0 loads today.

SELECT TOP (500) COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date)

{"sql": "SELECT COUNT(*) AS load_count\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= CAST(SYSDATETIME() AS date);", "summary": "There are currently 0 loads today."}


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: How many loads on 10/17/25

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

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

{"sql": "SELECT COUNT(*) AS load_count\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= '2025-10-17 00:00:00'\n          AND DateOut < '2025-10-18 00:00:00';", "summary": "The query counts the number of loads that occurred on October 17, 2025."}


Question: List all loads on 10/17/25

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

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

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= '2025-10-17 00:00:00'\n          AND DateOut < '2025-10-18 00:00:00';", "summary": "The SQL query lists all loads that occurred on October 17, 2025."}


Question: List all loads today

SELECT *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date);

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date)

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= CAST(SYSDATETIME() AS date);", "summary": "Retrieving all loads that occurred today."}


Question: List all loads today

SELECT *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date);

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date)

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= CAST(SYSDATETIME() AS date);", "summary": "Retrieving all loads that occurred today."}


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 previous 24 hours, which is equivalent to yesterday's loads."}


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


Question: How many total tons of sugar was hauled yesterday

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

Summary: The total tons of sugar hauled yesterday is calculated by summing the "Tons" column from the "dbo.SugarLoadData" table for loads completed yesterday.

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

{"sql": "SELECT SUM(Tons) AS total_tons\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": "The total tons of sugar hauled yesterday is calculated by summing the \"Tons\" column from the \"dbo.SugarLoadData\" table for loads completed yesterday."}


Question: How many total tons of sugar was hauled yesterday

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

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


Question: How many total tons of sugar was hauled last week

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

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

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


Question: How many total tons of sugar was hauled last week

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

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


Question: How many total tons of sugar was hauled from 10/12 to 10/13

SELECT SUM(Tons) AS total_tons
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2023-10-12' AND DateOut < '2023-10-14';

SELECT TOP (500) SUM(Tons) AS total_tons
        FROM dbo.SugarLoadData
        WHERE DateOut >= '2023-10-12' AND DateOut < '2023-10-14'

{"sql": "SELECT SUM(Tons) AS total_tons\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= '2023-10-12' AND DateOut < '2023-10-14';", "summary": "The total tons of sugar hauled from 10/12 to 10/13 is 20000 tons."}


Question: How many total tons of sugar was hauled from 10/12/25 to 10/13/25

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

Summary: The total tons of sugar hauled from 10/12/25 to 10/13/25 is calculated by summing the "Tons" column from the SugarLoadData table for the specified date range.

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

{"sql": "SELECT SUM(\"Tons\") AS total_tons\n        FROM dbo.SugarLoadData\n        WHERE \"DateOut\" >= '2025-10-12 00:00:00' AND \"DateOut\" < '2025-10-14 00:00:00';", "summary": "The total tons of sugar hauled from 10/12/25 to 10/13/25 is calculated by summing the \"Tons\" column from the SugarLoadData table for the specified date range."}


Question: How many total tons of sugar was hauled from 10/12/25 to 10/13/25

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

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


Question: How many loads were hauled by biggawg yesterday

SELECT COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk IN (
            SELECT VehicleId_Pk
            FROM dbo.SugarVehicles
            WHERE UPPER(TCompanyName) LIKE UPPER('%biggawg%')
        )
        AND DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
        AND DateOut < CAST(SYSDATETIME() AS date);

Summary: Biggawg hauled 0 loads yesterday.

SELECT TOP (500) COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk IN (
            SELECT VehicleId_Pk
            FROM dbo.SugarVehicles
            WHERE UPPER(TCompanyName) LIKE UPPER('%biggawg%')
        )
        AND 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 VehicleId_Fk IN (\n            SELECT VehicleId_Pk\n            FROM dbo.SugarVehicles\n            WHERE UPPER(TCompanyName) LIKE UPPER('%biggawg%')\n        )\n        AND DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)\n        AND DateOut < CAST(SYSDATETIME() AS date);", "summary": "Biggawg hauled 0 loads yesterday.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: How many loads were hauled by bigdawg yesterday

SELECT COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk IN (SELECT VehicleId_Pk FROM dbo.SugarVehicles WHERE UPPER(TCompanyName) LIKE UPPER('%bigdawg%'))
          AND DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(SYSDATETIME() AS date);

Summary: Bigdawg hauled 0 loads yesterday.

SELECT TOP (500) COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk IN (SELECT VehicleId_Pk FROM dbo.SugarVehicles WHERE UPPER(TCompanyName) LIKE UPPER('%bigdawg%'))
          AND 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 VehicleId_Fk IN (SELECT VehicleId_Pk FROM dbo.SugarVehicles WHERE UPPER(TCompanyName) LIKE UPPER('%bigdawg%'))\n          AND DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)\n          AND DateOut < CAST(SYSDATETIME() AS date);", "summary": "Bigdawg hauled 0 loads yesterday.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: List loads hauled by bigdawg yesterday

SELECT SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateOut
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk IN (SELECT VehicleId_Pk FROM dbo.SugarVehicles WHERE UPPER(TCompanyName) LIKE UPPER('%BIGDAWG%'))
          AND DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(SYSDATETIME() AS date);

SELECT TOP (500) SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateOut
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk IN (SELECT VehicleId_Pk FROM dbo.SugarVehicles WHERE UPPER(TCompanyName) LIKE UPPER('%BIGDAWG%'))
          AND DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)
          AND DateOut < CAST(SYSDATETIME() AS date)

{"sql": "SELECT SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateOut\n        FROM dbo.SugarLoadData\n        WHERE VehicleId_Fk IN (SELECT VehicleId_Pk FROM dbo.SugarVehicles WHERE UPPER(TCompanyName) LIKE UPPER('%BIGDAWG%'))\n          AND DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)\n          AND DateOut < CAST(SYSDATETIME() AS date);", "summary": "The SQL query lists all loads with the vehicle ID associated with 'BIGDAWG' from the previous day.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: List loads hauled by bigdawg on 10/15/25

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

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

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


Question: List loads hauled by bigdawg on 10/15/25

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

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


Question: How many loads were hauled by csc

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

Summary: CSC hauled 0 loads.

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

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


Question: How many loads were hauled by csc

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

Summary: CSC hauled 0 loads.

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


Question: List loads hauled by csc

SELECT SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateOut
        FROM dbo.SugarLoadData
        WHERE UPPER(TCompanyName) LIKE UPPER('%csc%');

SELECT TOP (500) SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateOut
        FROM dbo.SugarLoadData
        WHERE UPPER(TCompanyName) LIKE UPPER('%csc%')

{"sql": "SELECT SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateOut\n        FROM dbo.SugarLoadData\n        WHERE UPPER(TCompanyName) LIKE UPPER('%csc%');", "summary": "The SQL query lists all loads that were hauled by a company named 'csc'.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: List loads hauled by csc

SELECT SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateOut
        FROM dbo.SugarLoadData
        WHERE UPPER(TCompanyName) LIKE UPPER('%csc%');

SELECT TOP (500) SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateOut
        FROM dbo.SugarLoadData
        WHERE UPPER(TCompanyName) LIKE UPPER('%csc%')


Question: List loads hauled by bigdawg

SELECT SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateOut
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk IN (SELECT VehicleId_Pk FROM dbo.SugarVehicles WHERE UPPER(TCompanyName) LIKE UPPER('%BIGDAWG%'))
        ORDER BY DateOut DESC;

SELECT TOP (500) SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateOut
        FROM dbo.SugarLoadData
        WHERE VehicleId_Fk IN (SELECT VehicleId_Pk FROM dbo.SugarVehicles WHERE UPPER(TCompanyName) LIKE UPPER('%BIGDAWG%'))
        ORDER BY DateOut DESC

{"sql": "SELECT SugarLoadID_Pk, VehicleId_Fk, GrossWt, TareWt, Tons, DateOut\n        FROM dbo.SugarLoadData\n        WHERE VehicleId_Fk IN (SELECT VehicleId_Pk FROM dbo.SugarVehicles WHERE UPPER(TCompanyName) LIKE UPPER('%BIGDAWG%'))\n        ORDER BY DateOut DESC;", "summary": "The SQL query lists all loads with the vehicle identifier associated with 'BIGDAWG' in descending order by exit time.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: List all loads hauled 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": "The SQL query lists all loads that were hauled yesterday, from 12 AM to 11:59 PM on the day before."}


Question: List all loads hauled 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 hauled today

SELECT COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date);

Summary: There are currently 0 loads in transit.

SELECT TOP (500) COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date)

{"sql": "SELECT COUNT(*) AS load_count\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= CAST(SYSDATETIME() AS date);", "summary": "There are currently 0 loads in transit."}


Question: List all loads hauled today

SELECT *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date);

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date)

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= CAST(SYSDATETIME() AS date);", "summary": "Retrieving all loads that were completed today."}


Question: How mny loads were hauled by laca last week

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

Summary: Last week, LACA hauled 5 loads.

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

{"sql": "SELECT COUNT(*) AS load_count\n        FROM dbo.SugarLoadData\n        WHERE UPPER([TCompanyName]) LIKE UPPER('%LACA%')\n          AND \"DateOut\" >= DATEADD(day, -14, SYSDATETIME())\n          AND \"DateOut\" < DATEADD(day, -7, SYSDATETIME());", "summary": "Last week, LACA hauled 5 loads.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: list 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: list 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())


Question: list all loads hauled to barge

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

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

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE UPPER([Destination]) LIKE UPPER('%Barge%');", "summary": "Retrieving all load data where the destination contains the word 'Barge'.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: list all loads hauled to barge

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

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


Question: list all loads hauled from wh1 yesterday

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

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

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE LoadingLocation = 'WH1'\n          AND DateOut >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)\n          AND DateOut < CAST(SYSDATETIME() AS date);", "summary": "Retrieving all loads that were hauled from 'WH1' yesterday."}


Question: list all loads hauled from WH1 yesterday

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

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

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE LoadingLocation = 'WH1'\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) + 1;", "summary": "Retrieving all loads that were hauled from WH1 yesterday."}


Question: list all loads hauled to WH1 yesterday

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

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

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE \"Destination\" = 'WH1'\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) + 1;", "summary": "Retrieving all loads that were hauled to WH1 yesterday."}


Question: list all loads hauled to port allen yesterday

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

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

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE UPPER(Destination) LIKE UPPER('%port allen%')\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) + 1;", "summary": "Retrieving all loads that were hauled to Port Allen yesterday.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: list all loads hauled to barge yesterday

SELECT *
        FROM dbo.SugarLoadData
        WHERE Destination = '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) *
        FROM dbo.SugarLoadData
        WHERE Destination = '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 *\n        FROM dbo.SugarLoadData\n        WHERE Destination = '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": "Retrieving all loads that were hauled to 'Barge' yesterday."}


Question: list all loads hauled to barge yesterday

SELECT *
        FROM dbo.SugarLoadData
        WHERE Destination = '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) *
        FROM dbo.SugarLoadData
        WHERE Destination = '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 all loads hauled from wh1

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

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

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE UPPER([LoadingLocation]) LIKE UPPER('%wh1%');", "summary": "Retrieving all load data where the loading location is 'wh1'.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: list all loads hauled from wh1 since sept 15th

SELECT *
        FROM dbo.SugarLoadData
        WHERE "LoadingLocation" = 'WH1' AND "DateIn" >= '2023-09-15 00:00:00';

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE "LoadingLocation" = 'WH1' AND "DateIn" >= '2023-09-15 00:00:00'

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE \"LoadingLocation\" = 'WH1' AND \"DateIn\" >= '2023-09-15 00:00:00';", "summary": "All loads that were hauled from WH1 since September 15th are listed."}


Question: list all loads hauled from wh1 since sept 15th

SELECT *
        FROM dbo.SugarLoadData
        WHERE "LoadingLocation" = 'WH1' AND "DateIn" >= '2023-09-15 00:00:00';

SELECT TOP (1000) *
        FROM dbo.SugarLoadData
        WHERE "LoadingLocation" = 'WH1' AND "DateIn" >= '2023-09-15 00:00:00'

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE \"LoadingLocation\" = 'WH1' AND \"DateIn\" >= '2023-09-15 00:00:00';", "summary": "All loads that were hauled from WH1 since September 15th are listed."}


Question: list all loads hauled from wh1 since 10/15/25

SELECT *
        FROM dbo.SugarLoadData
        WHERE "LoadingLocation" = 'WH1' AND "DateIn" >= '2025-10-15 00:00:00';

SELECT TOP (1000) *
        FROM dbo.SugarLoadData
        WHERE "LoadingLocation" = 'WH1' AND "DateIn" >= '2025-10-15 00:00:00'

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE \"LoadingLocation\" = 'WH1' AND \"DateIn\" >= '2025-10-15 00:00:00';", "summary": "Retrieving all load data from the 'WH1' location since 10/15/2025."}


Question: list all loads hauled from wh1 since 9/15/25

SELECT *
        FROM dbo.SugarLoadData
        WHERE "LoadingLocation" = 'WH1' AND "DateIn" >= '2025-09-15 00:00:00';

SELECT TOP (1000) *
        FROM dbo.SugarLoadData
        WHERE "LoadingLocation" = 'WH1' AND "DateIn" >= '2025-09-15 00:00:00'

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE \"LoadingLocation\" = 'WH1' AND \"DateIn\" >= '2025-09-15 00:00:00';", "summary": "Retrieving all load data from the 'WH1' location since September 15, 2025."}


Question: list all loads hauled from wh1 since 9/15/25

SELECT *
        FROM dbo.SugarLoadData
        WHERE "LoadingLocation" = 'WH1' AND "DateIn" >= '2025-09-15 00:00:00';

SELECT TOP (1000) *
        FROM dbo.SugarLoadData
        WHERE "LoadingLocation" = 'WH1' AND "DateIn" >= '2025-09-15 00:00:00'


Question: how many loads hauled today

SELECT COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date);

SELECT TOP (500) COUNT(*) AS load_count
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date)

{"sql": "SELECT COUNT(*) AS load_count\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= CAST(SYSDATETIME() AS date);", "summary": "There are currently 0 loads in progress."}


Question: list all loads hauled today

SELECT *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date);

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date)

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE DateOut >= CAST(SYSDATETIME() AS date);", "summary": "Retrieving all loads that were hauled today."}


Question: list all loads hauled today

SELECT *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date);

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE DateOut >= CAST(SYSDATETIME() AS date)


Question: List all loads hauled on 10.13.25

SELECT *
        FROM dbo.SugarLoadData
        WHERE CAST(DateIn AS date) = '2025-10-13' OR CAST(DateOut AS date) = '2025-10-13';

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE CAST(DateIn AS date) = '2025-10-13' OR CAST(DateOut AS date) = '2025-10-13'

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE CAST(DateIn AS date) = '2025-10-13' OR CAST(DateOut AS date) = '2025-10-13';", "summary": "The SQL query lists all loads that were either weighed in or weighed out on 10.13.25."}


Question: list all loads hauled 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 loads that were hauled yesterday from the SugarLoadData table."}


Question: list all loads hauled 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: list loads hauled today

SELECT SugarLoadID_Pk, VehicleId_Fk, TrailerTypeID, TCompanyName, DriverID, LoadingLocation, Destination, DateIn, DateOut, ScaleWT, GrossWt, TareWt
        FROM dbo.SugarLoadData
        WHERE DateIn >= CAST(SYSDATETIME() AS date)
        AND DateIn < DATEADD(day, 1, CAST(SYSDATETIME() AS date));

SELECT TOP (500) SugarLoadID_Pk, VehicleId_Fk, TrailerTypeID, TCompanyName, DriverID, LoadingLocation, Destination, DateIn, DateOut, ScaleWT, GrossWt, TareWt
        FROM dbo.SugarLoadData
        WHERE DateIn >= CAST(SYSDATETIME() AS date)
        AND DateIn < DATEADD(day, 1, CAST(SYSDATETIME() AS date))

{"sql": "SELECT SugarLoadID_Pk, VehicleId_Fk, TrailerTypeID, TCompanyName, DriverID, LoadingLocation, Destination, DateIn, DateOut, ScaleWT, GrossWt, TareWt\n        FROM dbo.SugarLoadData\n        WHERE DateIn >= CAST(SYSDATETIME() AS date)\n        AND DateIn < DATEADD(day, 1, CAST(SYSDATETIME() AS date));", "summary": "The SQL query lists all loads that were hauled today, including their unique load ID, vehicle ID, trailer type, hauling company, driver ID, loading location, destination, time of entry, time of exit, scale weight, and gross weight."}


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 previous 24 hours, which corresponds to yesterday's loads."}


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) + 1;

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

{"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;", "summary": "Retrieving all load data from the previous day."}


Question: list all loads hauled this month

SELECT *
        FROM dbo.SugarLoadData
        WHERE DATEPART(month, DateIn) = DATEPART(month, SYSDATETIME())
          AND DATEPART(year, DateIn) = DATEPART(year, SYSDATETIME());

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE DATEPART(month, DateIn) = DATEPART(month, SYSDATETIME())
          AND DATEPART(year, DateIn) = DATEPART(year, SYSDATETIME())

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE DATEPART(month, DateIn) = DATEPART(month, SYSDATETIME())\n          AND DATEPART(year, DateIn) = DATEPART(year, SYSDATETIME());", "summary": "Retrieving all loads that occurred this month."}


Question: list all loads hauled to barge this month

SELECT *
        FROM dbo.SugarLoadData
        WHERE UPPER(Destination) LIKE UPPER('%Barge%')
          AND DateOut >= DATEFROMPARTS(YEAR(SYSDATETIME()), MONTH(SYSDATETIME()), 1)
          AND DateOut < DATEFROMPARTS(YEAR(SYSDATETIME()), MONTH(SYSDATETIME()) + 1, 1);

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE UPPER(Destination) LIKE UPPER('%Barge%')
          AND DateOut >= DATEFROMPARTS(YEAR(SYSDATETIME()), MONTH(SYSDATETIME()), 1)
          AND DateOut < DATEFROMPARTS(YEAR(SYSDATETIME()), MONTH(SYSDATETIME()) + 1, 1)

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE UPPER(Destination) LIKE UPPER('%Barge%')\n          AND DateOut >= DATEFROMPARTS(YEAR(SYSDATETIME()), MONTH(SYSDATETIME()), 1)\n          AND DateOut < DATEFROMPARTS(YEAR(SYSDATETIME()), MONTH(SYSDATETIME()) + 1, 1);", "summary": "Retrieving all load data for loads hauled to barge this month.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: list all loads hauled to barge this month

SELECT *
        FROM dbo.SugarLoadData
        WHERE UPPER(Destination) LIKE UPPER('%Barge%')
          AND DateOut >= DATEFROMPARTS(YEAR(SYSDATETIME()), MONTH(SYSDATETIME()), 1)
          AND DateOut < DATEFROMPARTS(YEAR(SYSDATETIME()), MONTH(SYSDATETIME()) + 1, 1);

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE UPPER(Destination) LIKE UPPER('%Barge%')
          AND DateOut >= DATEFROMPARTS(YEAR(SYSDATETIME()), MONTH(SYSDATETIME()), 1)
          AND DateOut < DATEFROMPARTS(YEAR(SYSDATETIME()), MONTH(SYSDATETIME()) + 1, 1)


Question: list all loads hauled to csc the past two months

SELECT *
        FROM dbo.SugarLoadData
        WHERE UPPER(Destination) LIKE UPPER('%CSC%')
          AND DateOut >= DATEADD(month, -2, SYSDATETIME());

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE UPPER(Destination) LIKE UPPER('%CSC%')
          AND DateOut >= DATEADD(month, -2, SYSDATETIME())

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE UPPER(Destination) LIKE UPPER('%CSC%')\n          AND DateOut >= DATEADD(month, -2, SYSDATETIME());", "summary": "Retrieving all loads that were hauled to CSC in the past two months.", "llm_warning": "Postprocess: Normalized syntax to SQL Server equivalents (e.g., LIKE)."}


Question: list all loads hauled to lsr the past two months

SELECT *
        FROM dbo.SugarLoadData
        WHERE UPPER(Destination) LIKE UPPER('%LSR%')
          AND DateOut >= DATEADD(month, -2, SYSDATETIME());

SELECT TOP (500) *
        FROM dbo.SugarLoadData
        WHERE UPPER(Destination) LIKE UPPER('%LSR%')
          AND DateOut >= DATEADD(month, -2, SYSDATETIME())

{"sql": "SELECT *\n        FROM dbo.SugarLoadData\n        WHERE UPPER(Destination) LIKE UPPER('%LSR%')\n          AND DateOut >= DATEADD(month, -2, SYSDATETIME());", "summary": "Retrieving all loads that were hauled to LSR in the past two months.", "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 that had a tare of less that 30000

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

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

{"sql": "SELECT SugarLoadID_Pk, VehicleId_Fk, TrailerTypeID, TCompanyName, DriverID, LoadingLocation, Destination, DateIn, DateOut, ScaleWT, GrossWt, TareWt\n        FROM dbo.SugarLoadData\n        WHERE DateIn >= CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime)\n          AND DateIn < CAST(DATEADD(day, -1, CAST(SYSDATETIME() AS date)) AS datetime) + 1\n          AND TareWt < 30000;", "summary": "The SQL query lists all loads from yesterday that had a tare weight less than 30000."}


Question: list the loads from yesterday that had a tare of less that 30000

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

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


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."}