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