AI answers over company data: synthetic against real round
In a self-test, synthetic copies with missing values filled had the same 0.95 fidelity score as unfilled ones but passed 6 of GPT-4.1 mini's 54 wrong answers every time, by construction: those answers drop trips with no fare, and filled copies have none
Copies from the same generator without filling also score 0.95, and on them those 6 never passed; no wrong answer from Haiku 5.5 or Sonnet 5.5 passed that way. On the 30 copies that kept missing values, no copy passed more than 8 of GPT-4.1 mini's 54 wrong answers, 2 of Haiku 5.5's 28 or 1 of Sonnet 5.5's 9. Sorted after the results, every one of those passes was wrong only by rounding. This study scores exact values, so a figure rounded to four decimals passes when the correct answer on a copy has four decimals or fewer. Those copies are still a light test: a planted mistake, dropping trips with no fare, passed on copies keeping missing values on up to 18 of the 38 questions where it is wrong. This planted mistake is a control, not a result; it is reported, after the results, because it limits those counts. It suggests a copy's fidelity score and its count of missing values are not enough: plant known mistakes on it and see which pass. Gemini 3.8 Flash wrote no SQL that came back wrong: its 21 requests for clarification and 8 invalid replies never reached the database, so no copy can change them.
| Wrong beyond rounding that passed on copies keeping missing values, a split made after the results0 of 23GPT-4.1 mini, over 30 copies, on 7 questions; 0 of 12 for Haiku 5.5 on 4 and 0 of 3 for Sonnet 5.5 on 1. Counting every wrong answer, as planned: at most 8 of 54, 2 of 28 and 1 of 9, all wrong only by rounding | Planted mistake that passed, copies keeping missing values but no links between columns8 to 18 of 38questions where dropping trips with no fare is wrong on the real table, over five seeds; up to 13 on the Gaussian copula, 11 on the dependence tree, the top scorer, and 10 on resampled rows. Three copies had exactly the real table's 17 missing fares and passed it on 13, 13 and 1, a pairing read after the results. This mistake was planted on purpose, so it is a control, not a result; it is shown here, after the results, because it limits the zeros beside it | Fidelity score, all 35 copies0.94 to 0.97how closely a copy's columns and pairs of columns match the real table, on the formula this study declared. Copies with no links between columns reach 0.94, and filling every missing value in the real table moves it only to 0.999 | GPT-4.1 mini's metric-layer gain on its worst copyminus 0.6 pointson 1 filled copy of 35, against 6.1 on the real table, whose interval runs from minus 4.8 to 22.5, so it was never clear of zero. The model ranking held on every other copy; on this one, 11 more right answers in its SQL arm put GPT-4.1 mini above Gemini 3.8 Flash, the one swap. No other gain moved more than 5 points |
Main limitation A self-test that re-runs recorded SQL on one table, with few answers behind the zeros: 23, 12 and 3, on 7, 4 and 1 questions, and the answers are repeat runs, not independent draws. The generators and the score were written after seeing which answers are wrong, and the questions were written alongside the definitions this study tests: 2 of the 6 filled-copy passes answer a question that can be read as asking for the filter that drops trips with no fare. A model that could see the copy might write different SQL. This says nothing about any product. | |||
In plain words
Many teams cannot point an AI test at real customer tables, so they test on a synthetic copy and judge the copy by a fidelity score: how closely its columns and pairs of columns match the real ones. One public write-up of synthetic test environments reports quality scores above 0.9 out of 1.0 and calls that highly realistic. Its score is its own formula on a different kind of data, so 0.9 is borrowed only as a bar, and on this study's formula a copy with no links between columns already clears it. The test that matters comes next: does an AI answer that is wrong on the real table also come out wrong on the copy?
This study already holds the answer to half of that. Its earlier runs stored the SQL four AI models wrote for questions on a public City of Chicago trip table, each scored against the real table. So copies of that table were generated, the same SQL was re-run on each and the verdicts were compared. The real side here is public data rather than a stand-in, which is what makes the comparison possible. A related study, on what AI needs from company data, rests on synthetic tables, and readers ask how far such results carry.
- False pass
- An answer that is wrong on the real table and right on the copy.
- False fail
- An answer that is right on the real table and wrong on the copy.
- Wrong beyond rounding
- A wrong answer whose flaw is more than rounding, with the right number of columns. This study scores exact values, so a rounded figure still counts as wrong, but it passes on a copy when the correct answer there has no more decimals than the rounding keeps; an answer with the wrong columns cannot pass where the correct answer has rows. I set both kinds aside after the results.
- Fidelity score
- A number out of 1.0 for how closely a copy matches the real table, with no reference to any question.
- Generator and seed
- A generator is one recipe for making a copy. The seed fixes its random draws, so five seeds give five different copies from one recipe.
- Metric layer
- Definitions the AI asks for by name instead of writing the SQL itself. Its gain is the score with it minus the score writing SQL on the tables.
- Gaussian copula, dependence tree
- Two ways to generate columns that keep links between pairs of columns.
- Resampled rows
- Real rows drawn again at random, with noise added. It is the closest to the real table and the least private, so it is the easy case.
Wrong answers that passed, per generator
Every recorded query and the same correct SQL ran on each copy, and each answer was scored as on the real table. Generators are ordered by their fidelity score, so a warning would show as counts falling down the chart; inside this narrow band I cannot tell whether they do. The filled row starts at 6 because those answers must pass there. Everything else on the chart is an answer wrong only by rounding.
Count of wrong answers, range and median over five seeds; each label ends in the median fidelity score
Show the data
Wrong answers that passed and right answers that failed, per generator and model (median of five seeds, range below)
| Generator | Score | Passed, Haiku 5.5 of 28 | Passed, Sonnet 5.5 of 9 | Passed, GPT-4.1 mini of 54 | Failed, Haiku 5.5 of 259 | Failed, Sonnet 5.5 of 303 | Failed, Gemini 3.8 Flash of 301 | Failed, GPT-4.1 mini of 434 |
|---|---|---|---|---|---|---|---|---|
| Independent columns | 0.940.94 | 11 to 2 | 11 | 44 to 8 | 00 to 3 | 00 to 3 | 00 to 3 | 10 to 4 |
| Resampled rows, 20% noise | 0.940.94 | 10 to 1 | 10 to 1 | 40 to 4 | 00 | 00 | 00 | 00 |
| Resampled rows, 5% noise | 0.950.95 | 00 to 1 | 00 to 1 | 00 to 4 | 00 | 00 | 00 | 00 |
| Resampled rows, 5% noise, missing values filled | 0.950.95 | 00 to 2 | 00 to 1 | 66 to 14 | 00 | 00 | 00 | 00 |
| Resampled rows, 1% noise | 0.960.96 | 10 to 1 | 10 to 1 | 40 to 4 | 00 | 00 | 00 | 00 |
| Pairwise, Gaussian copula | 0.960.96 | 10 to 1 | 10 to 1 | 40 to 4 | 00 to 3 | 00 to 2 | 00 | 00 to 4 |
| Pairwise, dependence tree | 0.970.97 | 00 to 1 | 00 to 1 | 00 to 4 | 00 to 3 | 00 to 2 | 00 | 00 to 4 |
Verdicts that agreed, questions behind the passes and the 95% interval over questions, per generator and model (median of five seeds, range below)
| Generator | Agreed, Haiku 5.5 of 287 | Agreed, Sonnet 5.5 of 312 | Agreed, Gemini 3.8 Flash of 301 | Agreed, GPT-4.1 mini of 488 | Questions, Haiku 5.5 | Questions, Sonnet 5.5 | Questions, GPT-4.1 mini | Interval, Haiku 5.5 | Interval, GPT-4.1 mini |
|---|---|---|---|---|---|---|---|---|---|
| Independent columns | 286282 to 286 | 311308 to 311 | 301298 to 301 | 482479 to 484 | 11 to 2 | 11 | 11 to 2 | 0.0% to 13.9% | 0.0% to 24.6% |
| Resampled rows, 20% noise | 286286 to 287 | 311311 to 312 | 301301 | 484484 to 488 | 10 to 1 | 10 to 1 | 10 to 1 | 0.0% to 8.9% | 0.0% to 15.4% |
| Resampled rows, 5% noise | 287286 to 287 | 312311 to 312 | 301301 | 488484 to 488 | 00 to 1 | 00 to 1 | 00 to 1 | 0.0% to 5.2% | 0.0% to 9.2% |
| Resampled rows, 5% noise, missing values filled | 287285 to 287 | 312311 to 312 | 301301 | 482474 to 482 | 00 to 2 | 00 to 1 | 22 to 4 | 0.0% to 4.2% | 1.6% to 31.4% |
| Resampled rows, 1% noise | 286286 to 287 | 311311 to 312 | 301301 | 484484 to 488 | 10 to 1 | 10 to 1 | 10 to 1 | 0.0% to 7.8% | 0.0% to 13.8% |
| Pairwise, Gaussian copula | 286283 to 287 | 311309 to 312 | 301301 | 484480 to 488 | 10 to 1 | 10 to 1 | 10 to 1 | 0.0% to 7.8% | 0.0% to 13.8% |
| Pairwise, dependence tree | 286284 to 287 | 311310 to 312 | 301301 | 484484 to 488 | 00 to 1 | 00 to 1 | 00 to 1 | 0.0% to 5.2% | 0.0% to 9.2% |
Source: synthetic/results/summary.json and synthetic/results/copies.json.
Right answers almost never failed: at most 3 of 259 for Haiku 5.5, 3 of 303 for Sonnet 5.5, 3 of 301 for Gemini 3.8 Flash and 4 of 434 for GPT-4.1 mini, on 5 copies of 35 and none of them resampled. Each time a rare group had vanished: a pickup zone left with no trips (3 copies), one zone left with no matched trips (1), and a missing tip no longer paired with a missing fare (1). Those three conditions were chosen after seeing the failures, and they fit all 5 copies, so they describe the failures rather than test a prediction. Much of this agreement is built in, as the limits below say.
Over the same questions, GPT-4.1 mini passed 11.1 points more of its wrong answers on the filled generator than on the dependence tree, with an interval from minus 1.6 to 29.1. It crosses zero although the 6 pass in every filled seed, because all of GPT-4.1 mini's passes sit on 4 of the 15 questions it got wrong. At this size an interval over questions cannot rank the generators. What sets the filled one apart is known without an interval: the answers below must pass there.
What passed, and why
Every false pass is one of two mistakes. A rule on the SQL text sorts them: does it round, does it filter out missing fares. That rule was written after the results, so this split was not planned.
A filter that loses rows, on a copy with nothing to lose. GPT-4.1 mini wrote this for "For each date, return trip count and mean published fare, excluding missing fares from the mean. Return date, count, mean, sorted by date." in 4 runs:
SELECT trip_date, COUNT(*) AS trip_count, AVG(fare) AS mean_fare FROM trips WHERE fare IS NOT NULL GROUP BY trip_date ORDER BY trip_date
The correct SQL keeps those trips in the count:
SELECT trip_date, COUNT(*), AVG(fare) FROM trips GROUP BY 1 ORDER BY 1
- On the real table, with 17 trips missing a fare, the answer is wrong on 14 of 31 dates. January 1 reads 317 trips against the correct 318.
- On a resampled copy that keeps missing values (5% noise, seed 1, 12 missing fares), it is wrong on 6 dates. The mistake is caught.
- On the same generator with missing values filled (0 missing fares), it is right on all 31 dates. The mistake passes, and the score does not move.
With the same mistake on one more question, that is the 6 of GPT-4.1 mini's 54 wrong answers that pass in every filled seed: 4 on this question and 2 on one that asks, per dropoff area, for a mean duration and a "mean fare excluding missing fares". That wording can be read as dropping those trips from both means, so those 2 are a mistake only under the reading the correct SQL takes.
A rounded fraction that lands on a short decimal. This study scores exact values, so a rounded figure counts as wrong. Of the wrong answers that round, Haiku 5.5 has 5 at four decimals and 14 at two, Sonnet 5.5 has 1 and 5, and GPT-4.1 mini has 16 and 3. With the rounding removed, 16, 6 and 16 of them give the correct answer on the real table; the rest have another flaw as well. Only fractions rounded to four decimals ever passed. On a copy, the correct fraction can come out with four decimals or fewer, and then the rounded figure is exact. That happens on two questions. One covers a single zone, with 3 matched of 11 authorized trips on the real table and 3 to 16 trips on the copies: it passes on 19 of 35 copies. The other covers all 724 authorized trips and passes on 3 of 35, such as 21 of 700, which is exactly 0.03. For each of the 6 rounded queries that passed, removing the rounding gives the correct answer on the real table, so rounding is their only difference from the correct SQL. Checking each copy's fraction after the results confirms those passes on all 35 copies; that check recomputes the verdict, so it confirms the explanation rather than predicting anything. These are all the other false passes. A team that accepts rounded answers would not call them wrong at all.
Wrong beyond rounding. Setting aside the answers wrong only by rounding and the 15 of GPT-4.1 mini's with the wrong number of columns, which cannot pass on a copy where the correct answer has rows and passed on none, leaves 12 of Haiku 5.5's 28 wrong answers on 4 questions, 3 of Sonnet 5.5's 9 on 1, and 23 of GPT-4.1 mini's 54 on 7. Not one of them passed on any of the 30 copies that keep missing values, independent columns included, although the same lost-rows mistake, planted on every question, passed on some of them on those copies (below). On the filled copies, the 6 that pass are 2 queries, the lost-rows filter above, run several times. I made this split after the results.
Does the model comparison hold?
Mostly. On each model's worst copy, verdicts still agreed on 282 of 287 for Haiku 5.5, 308 of 312 for Sonnet 5.5, 298 of 301 for Gemini 3.8 Flash and 474 of 488 for GPT-4.1 mini. Most answers are right on both tables, so high counts come easily here, and the false passes above are the harder test.
On the real table, GPT-4.1 mini's gain from the metric layer is 6.1 points with an interval from minus 4.8 to 22.5, so it was never clear of zero. On 1 copy of 35, a filled one, its arm that writes SQL got 11 more answers right (141 to 152 of 165), all of them false passes, while the metric layer arm stayed at 151. The gain read minus 0.6 and GPT-4.1 mini moved above Gemini 3.8 Flash, 303 against 301 right of 330. That is a shift inside an interval that already crossed zero, not the reversal of a known gain. No other gain moved more than 5 points on any copy, and the other three have real-table intervals clear of zero. Sonnet 5.5 and Gemini 3.8 Flash sit 2 answers apart of 330 on the real table, so their order is not established either way.
Share of answers right and gain from the metric layer in points: real table with its interval, then each generator (median of five seeds, range below)
| Table | Right, Haiku 5.5 | Right, Sonnet 5.5 | Right, Gemini 3.8 Flash | Right, GPT-4.1 mini | Gain, Haiku 5.5 | Gain, Sonnet 5.5 | Gain, Gemini 3.8 Flash | Gain, GPT-4.1 mini |
|---|---|---|---|---|---|---|---|---|
| Real table | 78.5% | 91.8% | 91.2% | 88.5% | 35.826.1 to 52.3 | 12.76.5 to 20.7 | 13.97.1 to 21.2 | 6.1minus 4.8 to 22.5 |
| Independent columns | 78.8%77.9% to 78.8% | 92.1%91.2% to 92.1% | 91.2%90.3% to 91.2% | 89.4%88.5% to 90.3% | 35.232.7 to 37.0 | 12.110.3 to 13.3 | 13.912.1 to 13.9 | 4.22.4 to 6.1 |
| Resampled rows, 20% noise | 78.8%78.5% to 78.8% | 92.1%91.8% to 92.1% | 91.2%91.2% | 89.4%88.5% to 89.4% | 35.235.2 to 35.8 | 12.112.1 to 12.7 | 13.913.9 | 4.24.2 to 6.1 |
| Resampled rows, 5% noise | 78.5%78.5% to 78.8% | 91.8%91.8% to 92.1% | 91.2%91.2% | 88.5%88.5% to 89.4% | 35.835.2 to 35.8 | 12.712.1 to 12.7 | 13.913.9 | 6.14.2 to 6.1 |
| Resampled rows, 5% noise, missing values filled | 78.5%78.5% to 79.1% | 91.8%91.8% to 92.1% | 91.2%91.2% | 90.0%90.0% to 91.8% | 35.834.5 to 35.8 | 12.712.1 to 12.7 | 13.913.9 | 3.0minus 0.6 to 3.0 |
| Resampled rows, 1% noise | 78.8%78.5% to 78.8% | 92.1%91.8% to 92.1% | 91.2%91.2% | 89.4%88.5% to 89.4% | 35.235.2 to 35.8 | 12.112.1 to 12.7 | 13.913.9 | 4.24.2 to 6.1 |
| Pairwise, Gaussian copula | 78.5%77.9% to 78.8% | 91.8%91.5% to 92.1% | 91.2%91.2% | 88.5%88.5% to 89.4% | 35.835.2 to 37.0 | 12.712.1 to 13.3 | 13.913.9 | 6.14.2 to 6.1 |
| Pairwise, dependence tree | 78.5%77.6% to 78.8% | 91.8%91.2% to 92.1% | 91.2%91.2% | 88.5%87.6% to 89.4% | 35.835.2 to 37.6 | 12.712.1 to 13.9 | 13.913.9 | 6.14.2 to 7.9 |
Does the fidelity score warn?
Inside this band I cannot tell. Over the 35 copies, the rank correlation between the score and false passes is minus 0.32 for Haiku 5.5 and minus 0.37 for GPT-4.1 mini, in the direction a warning would take. A rough interval for GPT-4.1 mini runs from minus 0.63 to minus 0.04, but it treats the copies as independent. Five seeds share each generator, and resampling whole generators widens it to minus 0.65 to 0.10. Without the filled copies the correlation is minus 0.38 for both models, so it comes from rounded figures, which pass more often on some generators than on others. All 35 copies sit between 0.94 and 0.97, so this says nothing of a copy far below that band.
The one mistake of another kind that passed is one this formula barely registers. Missing values are a bin of their own in the score, but only 17 trips in 10,000 lack a fare, and filling every missing value in the real table, with nothing else changed, lowers the score only from 1.0 to 0.999. The top score went to the dependence tree (0.97), above resampled rows at 1% noise (0.96), because a little noise pushes values across the score's bins: its column shape part reads 0.965 at 1% noise, and 0.985 both for the tree and for resampling with no noise at all, which was run after the results to test this. That score is the formula this study declared, and another could do better. A missing-value check would catch this particular case, but the planted mistake below shows it is not enough on its own.
What was predicted before generating any copy
| Prediction | Outcome | What happened |
|---|---|---|
| Independent columns score under 0.90, every resampled copy 0.90 or more | Did not hold | Independent columns reached 0.94. The bar separated nothing. |
| On resampled rows at 5% noise, false passes are 15% or less for Haiku 5.5 and GPT-4.1 mini | Held | At most 1 of 28 and 4 of 54. |
| Filling missing values raises false passes for both, with the score moving under 0.01 | Did not hold | True for GPT-4.1 mini. Haiku 5.5 has a median of 0 either way. Read at the highest seed it would hold; at the mean it would not. |
| False fails stay under 3% at 1% and 5% noise, and are higher on independent columns | Did not hold | Under 3% held. The median on independent columns was higher only for GPT-4.1 mini; read at the highest seed or the mean, it is higher for all four. |
| The order of the models by score on the real table holds on each copy, with at most one swap; each metric layer gain keeps its sign on resampled copies and moves 5 points or less | Did not hold | The order held, with 1 swap on one filled copy: GPT-4.1 mini above Gemini 3.8 Flash. The gain half failed: GPT-4.1 mini's gain moved from 6.1 to as low as minus 0.6 points on that copy. |
| Among copies at 0.90 or more, the score does not order false passes (Spearman under 0.5 in size) | Held | 0.32 and 0.37 in size, with more false passes at lower scores, inside a band too narrow to tell. |
A planted mistake that also passed on copies keeping missing values
Known mistakes were also planted: 275 queries, of which 224 are wrong on the real table. They were planted on purpose, so this is a control and not a result; the one below is reported after the results. The planted query that drops trips without a fare passes on 38 of its 38 wrong cases on filled copies, which is true by construction because a filled copy has no fare to drop. It also passed on copies that keep missing values: a median of 13 of 38 with no links between columns, 12 on the Gaussian copula, 10 on the dependence tree, the highest-scoring generator, and 1 to 3 on resampled rows. These were compared after the results. On the three copies with exactly the real table's 17 missing fares it passed on 13, 13 and 1 (independent columns, copula, resampled rows at 20% noise), so matching that count did not settle what a copy catches. This also needs no real table: on a copy, that query matches the correct answer on 55 of 55 questions when missing values are filled, where it is the correct SQL itself, against 17 to 33 on the copies that keep them. It rests on one kind of planted mistake, chosen knowing the answer.
What I would do with this
A synthetic copy is a usable place to re-score stored AI SQL if it keeps what wrong answers depend on. Whether it is a usable place to test a model, which would write new SQL there, this round does not test. From this self-test, I would not accept a copy on its fidelity score, or on a column-by-column check of its missing values.
- Plant known mistakes on the copy. Lost rows, a wrong join, a dropped date. Any that match the correct answer show a mistake the copy cannot catch, and it takes no real data to learn that. Here a planted mistake passed on copies the score and the count of missing values would have accepted.
- Check missing values and rare groups, and do not stop there. Compare the share of missing values and the rare groups, column by column, with the real table. That catches a filled copy, but three copies here had exactly the real table's 17 missing fares, and the planted lost-rows mistake still passed on 13, 13 and 1 of 38 questions. The data engineer who owns the copy runs both checks each time it is regenerated.
- Calibrate once on the real table. Where someone is allowed to, re-score a sample of stored answers on the real table and count the false passes per model. Report that count next to any result from the copy.
- Vary the generator. Regenerate with other settings and seeds. If a verdict changes with the seed, the question rests on a small group and should not decide anything alone.
- Keep the question out of reach of chance. Questions on very small groups can agree by accident, so give them a minimum group size on a copy.
Limits
- This re-scores the same SQL. A model that could see the copy might write different SQL, so this measures the verdicts and not what a model would do there.
- Agreement is partly built in, on both sides. Of GPT-4.1 mini's 54 wrong answers, 15 have the wrong number of columns, cannot pass on a copy where the correct answer has rows and passed on none; 3 more have the wrong number of rows on the real table. All of Haiku 5.5's and Sonnet 5.5's have the right shape. A right answer that is logically the same query as the correct SQL must match on any table. Of the right answers, only 6 of 259 for Haiku 5.5, 5 of 303 for Sonnet 5.5, 3 of 301 for Gemini 3.8 Flash and 7 of 434 for GPT-4.1 mini failed on any of the 35 copies, and I did not measure how many of the rest could fail on any table at all.
- 91 wrong answers on 23 questions, all from this study's published runs, and Gemini 3.8 Flash has none. The ranges are counts from a small set, and the wrong answers repeat across runs.
- This table has few strong links between columns, which helps independent columns look good: on the pair part of the score alone they read 0.89, the only part under 0.9, a figure looked at only after the results. A table with stronger links could separate the generators more.
- The copies are the same size as the real table and use its zone list. These are this study's own generators, standing in for the idea of a scored copy.
Use this at your company
Copy this prompt into your own AI assistant to run the same test on your own synthetic copy.
This method comes from Diogo Travassos's study "How many wrong AI answers a high-scoring synthetic test set waves through" (https://diogotravassos.dev/ai-answers-over-company-data/synthetic-against-real.html). If you can open links, read it first: it works the method through end to end, with its checks. The steps below stand on their own if you can't. Test whether our synthetic copy of a table gives the same verdicts on AI-written SQL as the real table, before we trust an evaluation run on the copy. Method: 1. Collect the AI answers we have already scored on the real table, keeping the SQL each one ran, and the correct SQL for each question. 2. Run each stored query and the correct SQL on the copy. Score them with the same rule we use on the real table. 3. Count, per model, the answers that are wrong on the real table and right on the copy, and the answers that are right on the real table and wrong on the copy. Give the count and the number of questions behind it. 4. Write a few queries that make known mistakes, such as a filter that loses rows with missing values. Run them on the copy. A planted query that matches the correct answer there shows the copy cannot catch that mistake. This step needs no real data. 5. Compare the copy's share of missing values, rare groups and impossible combinations with the real table, column by column. Do this even if the copy has a high fidelity score, and do not stop there: a copy can match the real count of missing values and still hide a planted mistake. 6. Regenerate the copy with other settings and seeds, then repeat the counts. Data you need: the stored SQL with its real-table verdict, the correct SQL, the copy and its generator settings, and read access to the real table for one comparison. Checks before we trust any figure: - Report each model on its own. A model with few wrong answers gets counts and no rate. - Say how far the generator's settings move each count. - Say that this re-scores old SQL: a model that could see the copy might write different SQL. - Look at answers wrong in a way no data could fix, such as the wrong number of columns, and at right answers that are logically the same as the correct SQL. Neither tests the copy, and both flatter the agreement figure. Count the wrong answers left without them, and without answers wrong only by rounding, and report that count beside the full one. - If a planted mistake can only pass because the copy lacks something, such as missing values, say so: it shows the mistake can pass, not how often. Report back: per model, how many wrong answers passed and how many right answers failed on the copy, across generator settings, which mistakes the copy cannot catch, and whether the fidelity score moved when those counts did. In your report, say which study you followed and link it: https://diogotravassos.dev/ai-answers-over-company-data/synthetic-against-real.html
Method and checks
Census of the stored SQL
The first step read every recorded answer on the trip table's analytical questions: 1,485 answers on 55 questions. 1,388 hold a statement (355 distinct); the other 97 never reached the database and stay not correct on every copy. For the metric layer arm, the statement is what the stored request compiles to.
The copies
Seven generators and five seeds each, 35 copies of 10,000 rows, replacing the trips table. The zone list stays real, and the daily table is rebuilt from the copy with the study's own model SQL.
- Independent columns: each column drawn on its own, missing values included.
- Pairwise, Gaussian copula: every pair carries a correlation; zone ids count as numbers, a known weakness.
- Pairwise, dependence tree: a Chow-Liu tree over binned columns, then a real value from each bin.
- Resampled rows at 1%, 5% and 20% noise: numbers multiplied by a lognormal factor, categorical cells redrawn at that rate.
- Filled: resampled rows at 5% noise, with missing fares, tips, charges and totals set to the column median first.
The fidelity score
The mean of two parts over 11 columns, each one minus a total variation distance from the real table. Column shape uses 20 quantile bins for numbers, a category per value otherwise, and missing as its own bin. Pair trends use all 55 pairs, with numbers in 5 quantile bins and each zone as one of its 5 most common values or other. High-scoring means 0.90 or more.
Scoring and intervals
Each statement and the correct SQL ran on the copy, in the study's sandbox and validator, with its tolerance of 0.000001 absolute and relative. Model scores and gains use the 330 strict-format answers each model has, so all four share one design; GPT-4.1 mini's 165 earlier answers count only in false passes and false fails; on that shared format it has 38 wrong answers, and its worst copy passes 11 of them; 15 of them are wrong beyond rounding, and 5 of those 15 pass on every filled copy. Intervals are 95% percentile bootstraps over question ids (2,000 draws), for models with 10 or more wrong answers. The answers are repeat runs, not independent draws. No statement errored or timed out on any copy: 0 errors and 0 timeouts.
Positive control
Five planted mistakes on each of the 55 questions, each the correct SQL reading a filtered trips table, counted where it is wrong on the real table: drop no fare (38), drop unavailable pickup (50), drop unavailable dropoff (53), drop inconsistent sharing (44), drop last day (39). Two bars were set in advance, and both were met: an exact copy scores 1.0 and reproduces every verdict (1,388 of 1,388 recorded), and the query that drops trips without a fare passes on at least one question on every filled copy and is caught on at least one on every copy of resampled rows at 5% noise. The first half of that bar is true by construction, since a filled copy has no fare to drop. The other half could have failed but asks little: on those copies the same query still passed on up to 8 of its 38 questions. For the planted queries, the first bar takes the exact copy's verdicts as the real table's, so that half of it does not check itself. After the results, all 275 planted queries were run on the evaluation database itself: they give the same verdict as on the exact copy 275 times of 275, 224 of them wrong, and so do all 355 recorded statement and question pairs.
Planted mistakes that passed on a copy, where they are wrong on the real table (median of five seeds, range below)
| Generator | Drop no fare, of 38 | Drop unavailable pickup, of 50 | Drop unavailable dropoff, of 53 | Drop inconsistent sharing, of 44 | Drop last day, of 39 | All, of 224 |
|---|---|---|---|---|---|---|
| Independent columns | 138 to 18 | 21 to 2 | 21 to 2 | 00 to 1 | 11 | 1912 to 22 |
| Resampled rows, 20% noise | 31 to 10 | 10 to 3 | 20 to 3 | 00 to 1 | 11 | 93 to 14 |
| Resampled rows, 5% noise | 10 to 8 | 00 to 2 | 10 to 2 | 00 to 1 | 00 to 1 | 31 to 12 |
| Resampled rows, 5% noise, missing values filled | 3838 | 10 to 2 | 10 to 2 | 00 to 1 | 00 to 1 | 4039 to 43 |
| Resampled rows, 1% noise | 11 to 9 | 10 to 2 | 10 to 2 | 00 to 1 | 11 | 43 to 15 |
| Pairwise, Gaussian copula | 129 to 13 | 20 to 3 | 11 to 2 | 00 | 11 to 2 | 1514 to 18 |
| Pairwise, dependence tree | 102 to 11 | 10 to 2 | 11 to 2 | 10 to 10 | 11 to 2 | 166 to 23 |
What was decided when
The census ran first, so I knew which answers are wrong on the real table before writing the predictions. A smoke test, one small copy per generator on a seed outside the five, came before the design was committed; it printed no fidelity score and re-ran no recorded answer. The design, generators, score, planted mistakes and predictions were then committed before any of the 35 copies was generated. Decided after the results: the rule that sorts false passes by mistake, the copy-alone reading of the planted query, the worked example, the tests of why rounded answers passed and right answers failed, the no-noise run behind the column shape reading, and the look at the pair part of the score. Also decided after the results: splitting false passes into rounded figures and the lost-rows filter, on copies that keep missing values and on filled ones; the split by decimals and the test with the rounding removed; the paired difference between generators; the intervals on the rank correlation and the reading without filled copies; the score of the real table with its missing values filled; the count of right answers that failed on any copy; and the readings at the highest seed and the mean of the predictions on filled copies and on false fails. Also decided after the results: the count of wrong answers beyond rounding, which sets aside answers wrong only by rounding or with the wrong number of columns; the run of the planted queries on the evaluation database; the comparison of the planted query's passes across generators and against the counts of missing fares on the three copies that match the real table. The protocol does not say which figure over the five seeds the predictions on filled copies and on false fails use, and the code that scores them reads the median, so that reading was not fixed in advance either. It counts against the predictions.
Reproduce
No key needed. After make build, run python -B -m synthetic.census, then synthetic.run, synthetic.analyze, synthetic.posthoc, synthetic.posthoc2, synthetic.posthoc3 and synthetic.posthoc4 the same way, then python -B synthetic_page.py and python -B -m synthetic.numbers.
Displayed numbers
Counts are whole numbers, fidelity scores two decimals, shares and gains one decimal, medians of five seeds rounded half away from zero. Exact values are in the results files.
The main study pageDesign, written before the runsFrozen protocolAll figuresReadings after the resultsTests of those readingsThe passes by kind, and further testsWrong answers beyond rounding, and the planted checkCensusEvery verdict on every copy