validate_result
Verify data claims against Ontario datasets by re-executing the source SQL and cross-checking numbers and terms from the claim.
Instructions
Validate that a claim is supported by query results.
Call this after making a data claim to verify it against the source. Re-executes the SQL, extracts numbers and terms from the claim, and checks them against the actual data.
Args: sql: The SQL query that produced the data backing the claim claim: The natural-language claim to verify (e.g. "Toronto had 12,345 building permits in 2023")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| claim | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |