Round #582
09 May 2026, 23:18· csharp· Meta-Llama-3.3-70B-Instruct· r13-clean-hints
- Complexity
- band 0
- ZP / UO / OBS
- 3 / 2 / 2
- Journey weight
- 475
- Lightshift ΔL
- —
Prompt
Find orders where the order_date is later than the ship_date.
Zero-point index (what the engine surfaced)
ZPI-ZPI-0016 | 2026-05-09T23:18:40Z
Find orders where the order_date is later than the ship_date.
ZERO POINT — 3 entries (structural invariants)
● hsl(7.18, 100%, 50%) class [feature]
● hsl(0.00, 100%, 50%) public [feature]
● hsl(84.10, 100%, 50%) namespace [feature]
UNOBSERVED — 2 entries (implied truths)
○ hsl(340.51, 100%, 22%) IEnumerable of T [feature]
○ hsl(15.38, 100%, 22%) var [feature]
OBSERVED — 2 entries (explicit in request)
◉ hsl(65.64, 100%, 15%) where [feature]
◉ hsl(88.21, 100%, 15%) where [feature]
COMPLEXITY │ 7 entries │ spread: 325° │ band: LOW
Baseline response (no ZPI)
```csharp
using System;
using System.Data;
class Program
{
static void Main()
{
// Create a sample DataTable
DataTable dt = new DataTable();
dt.Columns.Add("order_id", typeof(int));
dt.Columns.Add("order_date", typeof(DateTime));
dt.Columns.Add("ship_date", typeof(DateTime));
dt.Rows.Add(1, DateTime.Parse("2022-01-01"), DateTime.Parse("2021-12-31"));
dt.Rows.Add(2, DateTime.Parse("2022-01-15"), DateTime.Parse("2022-01-20"));
dt.Rows.Add(3, DateTime.Parse("2022-02-01"), DateTime.Parse("2022-01-25"));
dt.Rows.Add(4, DateTime.Parse("2022-03-01"), DateTime.Parse("2022-03-05"));
dt.Rows.Add(5, DateTime.Parse("2022-04-01"), DateTime.Parse("2022-03-25"));
// Find orders where the order_date is later than the ship_date
var lateOrders = dt.Select("order_date > ship_date");
// Print the results
foreach (DataRow row in lateOrders)
{
Console.WriteLine($"order_id: {row["order_id"]}, order_date: {row["order_date"]}, ship_date: {row["ship_date"]}");
}
}
}
```
Enhanced response (with ZPI)
```csharp
using System;
using System.Data;
using System.Data.SqlClient;
public class OrderAnalyzer
{
public void FindInvalidOrders(string connectionString)
{
// Create a connection to the database
using (SqlConnection connection = new SqlConnection(connectionString))
{
connection.Open();
// Create a command to execute the query
using (SqlCommand command = new SqlCommand("SELECT * FROM Orders WHERE order_date > ship_date", connection))
{
try
{
// Execute the query and read the results
using (SqlDataReader reader = command.ExecuteReader())
{
while (reader.Read())
{
Console.WriteLine($"Order ID: {reader["order_id"]}, Order Date: {reader["order_date"]}, Ship Date: {reader["ship_date"]}");
}
}
}
catch (SqlException ex)
{
Console.WriteLine("An error occurred: " + ex.Message);
}
}
}
}
}
class Program
{
static void Main()
{
string connectionString = "Server=myServerAddress;Database=myDataBase;User Id=myUsername;Password=myPassword;";
OrderAnalyzer analyzer = new OrderAnalyzer();
analyzer.FindInvalidOrders(connectionString);
}
}
```
This C# code connects to a SQL Server database, executes a query to find orders where the `order_date` is later than the `ship_date`, and prints the results to the console. The query uses a simple `SELECT` statement with a `WHERE` clause to filter the orders. The code uses `using` statements to ensure that the database connection and command are properly disposed of after use, regardless of whether an exception is thrown. The `try`-`catch` block catches any `SqlException` that may occur during the execution of the query and prints an error message to the console.
Note: You should replace the placeholders in the connection string (`myServerAddress`, `myDataBase`, `myUsername`, `myPassword`) with the actual values for your database.
Also, this code assumes that the `order_date` and `ship_date` columns are of a date/time type in the database. If they are stored as strings, you may need to modify the query to convert them to dates before comparing them.
This code can be further improved by using parameterized queries to prevent SQL injection attacks, and by using a more robust error handling mechanism.
In a real-world application, you would likely want to use an ORM (Object-Relational Mapping) library such as Entity Framework to interact with the database, rather than using ADO.NET directly. This would allow you to define your database schema and queries in a more type-safe and object-oriented way.
For example, using Entity Framework Core, you could define a `Order` class to represent the orders table, and use LINQ to query the database:
```csharp
using Microsoft.EntityFrameworkCore;
using System.Linq;
public class Order
{
public int OrderId { get; set; }
public DateTime OrderDate { get; set; }
public DateTime ShipDate { get; set; }
}
public class MyDbContext : DbContext
{
public DbSet<Order> Orders { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseSqlServer("Server=myServerAddress;Database=myDataBase;User Id=myUsername;Password=myPassword;");
}
}
class Program
{
static void Main()
{
using (MyDbContext context = new MyDbContext())
{
var invalidOrders = context.Orders.Where(o => o.OrderDate > o.ShipDate);
foreach (var order in invalidOrders)
{
Console.WriteLine($"Order ID: {order.OrderId}, Order Date: {order.OrderDate}, Ship Date: {order.ShipDate}");
}
}
}
}
```
This code defines a `Order` class to represent the orders table, and a `MyDbContext` class to represent the database context. It uses LINQ to query the database and find the orders where the `OrderDate` is later than the `ShipDate`.
Grader chain
Each grader reads the same baseline + enhanced pair and casts an independent verdict. Disagreement is the framework's own signal — not noise to be averaged away.
V1samba/Meta-Llama-3.3-70B-Instruct
BetterV4qwen2.5-coder-3b-instruct
BetterV5cerebras/qwen-3-235b-a22b-instruct-2507
BetterV7qwen2.5-coder-7b-instruct
BetterV8openai/gpt-4.1
BetterV9anthropic/claude-opus-4-7
BetterV12openai/gpt-4o
BetterComments
Our grader said what it said. What do you say? Comment as a guest below.
No comments yet. Be the first to say what you make of this round.