With 12 look-alike tables planted, Claude Opus 5.5 answered from a same-named copy in another schema (a separate group of tables) in 4 of 105 answers and GPT-6 Luna in 8 of 108; Claude Sonnet 5.5 and GPT-6.1 Sol in none. With a one-page note, no model did
A paper on documenting data lakes, Data.Readme, starts from the observation that "there are often many tables in a data lake with similar table and schema names, and limited additional semantic context". This part takes that as its prompt and does not reproduce the paper. The warehouse of the earlier parts gained 12 look-alikes: for each of the 3 tables the 40 questions read most, an old copy built under a retired definition, a stale backup, a staging copy with test rows and a copy with the same name in an analytics schema. Each model wrote one SQL query per question, 3 times, from the table names and columns alone, then again with the note added.
Every look-alike answer read a same-named copy, and all 12 were wrong; the 9 copies whose names say what they are (_v1, _backup, stg_) were never read. The note removed the look-alike reads; right answers moved by −2.5 to +6.7 points per model with every interval reaching zero, and GPT-6 Luna's +6.7 is the 8 wrong look-alike answers it no longer gave (8 of 120). Counted after the results: every model also asked for clarification on questions it could answer more often with the note, Claude Sonnet 5.5 in 13 runs against 5 and the others by 1 to 4 runs.
Key figures per model
Claude Sonnet 5.5, 3 runs per question0.0% · 0.0%answers from a look-alike, without and with the note: 0 of 108 and 0 of 108. Right answers 35.0 and 34.0 of 40 (mean of 3 runs).
Claude Opus 5.5, 3 runs per question3.8% · 0.0%answers from a look-alike, without and with the note: 4 of 105 and 0 of 108, all from analytics.card_spend_daily (3 answers cut off at the output ceiling are left out). Right answers 35.3 and 36.3 of 40 (mean of 3 runs; the 3 left-out answers count as not right, and over the 39 questions answered in both arms the means are 35.3 and 35.3 of 39). Change in look-alike answers −3.8 points (95% interval −8.6 to 0.0).
GPT-6.1 Sol, 3 runs per question0.0% · 0.0%answers from a look-alike, without and with the note: 0 of 108 and 0 of 108. Right answers 36.3 and 35.3 of 40 (mean of 3 runs).
GPT-6 Luna, 3 runs per question7.4% · 0.0%answers from a look-alike, without and with the note: 8 of 108 and 0 of 108, all from analytics.card_spend_daily and analytics.transactions. Right answers 31.7 and 34.3 of 40 (mean of 3 runs). Change in look-alike answers −7.4 points (95% interval −13.9 to −1.9).
Main limitation Few reads, from one kind of look-alike: Claude Opus 5.5 4 of 105 and GPT-6 Luna 8 of 108 answers without the note, all from the 3 same-named copies; the other 9 look-alikes, whose names say what they are, were never read. One synthetic warehouse with look-alikes I planted and named before the runs, and models that wrote one SQL query from table names without looking at the data.
Answers from a look-alike, by model
Only GPT-6 Luna's drop is clear of zero (−7.4 points, 95% interval −13.9 to −1.9); Claude Opus 5.5's interval reaches zero (−3.8, −8.6 to 0.0; its upper bound rests on 4 answers on 3 questions and would move with one question), and Claude Sonnet 5.5 and GPT-6.1 Sol read no look-alike with or without the note, so the note has nothing to show for them.
Share of answers to the 36 answerable questions, 3 runs each.
Show the data
Answers to the answerable questions, the look-alike kind they read, and right answers over all 40 questions (a left-out answer counts as not right), from results-confusable.json.
Model and arm
Answers
From a look-alike
Old copy
Stale backup
Staging copy
Same name, second schema
Look-alike answers still right
Right of 40, mean
Right, per run
Left out (method failure)
Claude Sonnet 5.5, without the note
108
0
0
0
0
0
0
35.0
35 35 35
0
Claude Sonnet 5.5, with the note
108
0
0
0
0
0
0
34.0
34 34 34
0
Claude Opus 5.5, without the note
105
4
0
0
0
4
0
35.3
35 34 37
3
Claude Opus 5.5, with the note
108
0
0
0
0
0
0
36.3
37 36 36
0
GPT-6.1 Sol, without the note
108
0
0
0
0
0
0
36.3
36 37 36
0
GPT-6.1 Sol, with the note
108
0
0
0
0
0
0
35.3
35 35 36
0
GPT-6 Luna, without the note
108
8
0
0
0
8
0
31.7
35 29 31
0
GPT-6 Luna, with the note
108
0
0
0
0
0
0
34.3
33 36 34
0
Each look-alike: the answerable questions whose answer it changes (of those that read its table), counted from the data before any run, and the answers that read it without the note. No answer read one with the note.
Three predictions were written into the design before any run. (1) Without the note every model reads a look-alike in some answers, the same-named copy most often: it held for Claude Opus 5.5 and GPT-6 Luna, and failed for Claude Sonnet 5.5 and GPT-6.1 Sol, which read none. (2) With the note each model's look-alike share falls, with an interval that excludes zero for any model at 5% or more without it: it held for GPT-6 Luna, the only model at that level (7.4%, interval −13.9 to −1.9 points); Claude Opus 5.5 fell from 3.8% to zero with an interval that reaches zero, below the 5% bar; Claude Sonnet 5.5 and GPT-6.1 Sol were at zero and could not fall. (3) Accuracy with the note is at least as high for every model: it held for GPT-6 Luna (+6.7 points) and Claude Opus 5.5 (no difference over the 39 questions answered in both arms), and failed on the point estimate for Claude Sonnet 5.5 (−2.5 points) and GPT-6.1 Sol (−2.5 points), both inside their intervals.
Computed after the results, not declared in the design: clarifications asked on the 36 answerable questions, without and with the note, and the paired change in the share of runs with a 95% interval from the same bootstrap as the other changes (analysis_confusable.py, results-confusable-after.json). Only Claude Sonnet 5.5's interval clears zero; Claude Opus 5.5's and GPT-6.1 Sol's reach it, and GPT-6 Luna's includes it, so beyond Claude Sonnet 5.5 this is 1 to 4 runs a model and not a clear effect.
Clarifications asked on answerable questions, computed after the results.
Model
Without the note
With the note
Change, points
95% interval
Claude Sonnet 5.5
5 of 108
13 of 108
+7.4
+0.9 to +16.7
Claude Opus 5.5
3 of 105
7 of 108
+3.8
0.0 to +8.6
GPT-6.1 Sol
5 of 108
7 of 108
+1.9
0.0 to +4.6
GPT-6 Luna
6 of 108
7 of 108
+0.9
−2.8 to +4.6
One question, with and without the note
Chosen by a rule: the first answer from a look-alike, in question order, for the model with the most of them, beside the same model, question and run with the note. Both queries are shown as the model wrote them.
Question: What was net card spend in USD during July 2026? Return one amount in minor units.
Without the note
GPT-6 Luna, run 2
From the names alone, the model chose analytics.card_spend_daily. Its query returned 272,943 minor units; the answer key is 554,332 minor units. That copy keeps only cards active at the snapshot, so spending on the frozen and cancelled cards is missing, and nothing in a table listing says so.
SELECT SUM(net_spend_minor) AS net_card_spend_minor FROM analytics.card_spend_daily WHERE currency = 'USD' AND spend_date >= DATE '2026-07-01' AND spend_date < DATE '2026-08-01'
With the note
GPT-6 Luna, run 2
With the note, the same model wrote the same query against card_spend_daily (only the table and the column alias differ) and returned 554,332 minor units, the answer key.
SELECT SUM(net_spend_minor) AS net_spend_minor FROM card_spend_daily WHERE currency = 'USD' AND spend_date >= DATE '2026-07-01' AND spend_date < DATE '2026-08-01'
What a team should do before pointing a model at its warehouse
Find tables that share a name across schemas, and take them out of the model's reach. Every look-alike answer here read a same-named copy in another schema; the 9 copies named _v1, _backup or stg_ drew none. Grant the model only the schemas it should read, or rename the copy so its name says what it is.
Write a one-page table guide. A guide of about 320 words naming the current tables, what each copy is and how they join took look-alike answers to zero for both models that had any. Build it from the catalog, and expect a real one to miss copies nobody remembers.
Check the tables an answer read, with code. Parsing the SQL gives the tables it read; flag any answer that reads outside the current set before a person sees it. All 12 look-alike answers here were wrong, and each would have been flagged that way.
Do not expect the guide to raise accuracy by itself. Right-answer changes stayed within noise for every model, and GPT-6 Luna's +6.7 points are the wrong look-alike answers it no longer gave. Clarifications on answerable questions rose with the guide for every model, clearly only for Claude Sonnet 5.5 (5 to 13 runs; computed after the results). The metric definitions in the earlier parts are what moved accuracy.
Limits
The 12 look-alikes are planted, of 4 declared kinds, with names I chose before the runs. The rate depends on those names: a real catalog has more copies, some with less telling names, and a note written for known copies is complete by construction here and not in a real one.
Few events: 12 look-alike answers in all. Claude Opus 5.5's 4 sit on 3 questions, and its interval reaches zero at exactly 0.0, a bound that would move with one question. Two models read no look-alike in either arm, so for them the note had nothing to fix.
The 40 questions were written alongside the study's documentation, and the look-alikes were designed with the questions in view. The base prompt is the bare schema: with the documentation, which names the current tables, the models may pick the look-alikes less often. That was not tested.
Each model wrote one query without looking at the data. An agent that lists tables and inspects rows might notice a stale or test-filled copy, or might read more of them; that is a different setup.
The schema listing the models saw is alphabetical, and I did not vary the order. Both look-alikes that were read, analytics.card_spend_daily and analytics.transactions, are listed before the current table of the same name; the unread analytics.account_daily is listed after account_daily, and the unread stg_transactions before transactions. Position may have helped the reads, and this test cannot separate it from the name.
The note also says how to join: that a NULL category is a real bucket in a LEFT JOIN, and to aggregate account_daily on the requested date before joining. So a change in right answers mixes table choice with that join advice, as the design says; the look-alike share is the clean measure of the note.
The table-read parser matches look-alike names in exact case, and the analytics schema by its lower-case name. No answer in the results writes a table name in capitals, so the counts are not affected, but a reader reusing the parser on other answers should know.
3 runs per question and arm. The two GPT models answered through a command-line agent with its own instructions and no forced answer format, the two Claude models as plain requests with the published answer schema, so a gap between the pairs mixes the model with its interface.
Without the note, the Claude models' right answers (35.0 and 35.3 of 40, a left-out answer counted as not right) sit near their published bare-schema runs with no look-alikes (35.0 and 36.0). Those are a different collection, so the comparison is descriptive.
How it was checked
In 69 command-line runs the agent's stream reported an error after a complete answer had arrived, which counts as a method failure (see Scoring). Scored as they stand instead of their re-runs, 61 of 69 are right against 63 of the re-runs, 67 of 69 have the same verdict, and 1 read a look-alike (the same read as its re-run, counted once). The 3 answers Claude Opus 5.5 gave without the note to the balance reconciliation question stopped at the output ceiling twice, as in the earlier current-model runs, and are left out.
Every run replays with no model call: the round's tables are rebuilt and compared with the frozen contents, the per-look-alike question counts are recomputed, and every answer is scored again. The six current tables match the published ones row for row, so the answer key did not change. A look-alike counts when the parsed SQL names it, so a read counts even on a question where the copy gives the same figure.
Use this at your company
To run the same test on your own warehouse, paste this into your AI assistant and give it read-only access to a copy of the tables and your catalog.
This method comes from Diogo Travassos's study "Confusable tables" (https://diogotravassos.dev/agent-ready-data-marts/confusable-tables.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.
Help me test whether an AI model that writes SQL over our warehouse answers from the wrong table when old copies, backups, staging tables or same-named tables in other schemas sit beside the real ones, and whether a short table guide stops it.
Method:
1. List the tables a model could see for the questions we care about. For each current table, find its look-alikes: old builds under a retired definition, backups, staging copies, and tables with the same name in another schema. Note what each one is.
2. Write 30 to 40 business questions with known answers computed from the current tables, before any run. For each look-alike, record which questions it would answer differently.
3. Ask each model each question three times, with the full table listing and nothing else, then three times more with a one-page guide added: which tables are current, what each look-alike is, and how the current tables join.
4. Parse every SQL answer with a SQL parser and record which tables it read. Run it read-only and compare the result with the known answer exactly.
Data you need: read-only access to a copy of the warehouse, the catalog listing of schemas and tables, and the definitions behind the known answers.
Checks before trusting the result:
- Write the questions, the answers, the look-alike list and the guide down before any run.
- Count a table read from the parsed SQL, not from whether the answer is wrong: a look-alike can give the right figure on some questions.
- Keep provider errors, timeouts and cut-off answers out of the shares, re-run each once, and report how many there were.
- Report each model on its own; never average models together.
Report back: for each model, the share of answers that read a look-alike without and with the guide, by kind of look-alike, with an interval from resampling the questions; right answers in both arms; and which look-alikes drew the reads. Then the limits: who named the look-alikes, how many runs, one warehouse.
In your report, say which study you followed and link it: https://diogotravassos.dev/agent-ready-data-marts/confusable-tables.html
Method and checks
Data and the look-alikes
The same fully synthetic banking ledger as the earlier parts: 19 accounts, 34 cards and 625 transaction events in July 2026, plus the two marts. No customer or employer record is used. The round's database is a new file built from the same inputs with 12 look-alikes added, each with its table's exact columns and types; the stale backups stop at 2026-07-25. The six current tables are unchanged, so the published answer key holds. Built by banking/confusable.py; the model saw the schema listing, and the treatment arm also saw the note.
The 12 look-alikes.
Table
Kind
What differs
card_spend_daily_v1
old copy
spend dated by when a purchase was initiated, not posted
card_spend_daily_backup
stale backup
spend rows dated before the cutoff only
stg_card_spend_daily
staging copy
the current rows plus test-card spend
analytics.card_spend_daily
same name, second schema
only cards active at the snapshot
transactions_v1
old copy
debit amounts stored as negative numbers
transactions_backup
stale backup
events that occurred before the cutoff, any that posted later still pending
stg_transactions
staging copy
the current events plus seven test events on two test accounts
analytics.transactions
same name, second schema
card events on frozen or cancelled cards left out
account_daily_v1
old copy
pending events counted in balances
account_daily_backup
stale backup
balance rows dated before the cutoff only
stg_account_daily
staging copy
the current rows plus the two test accounts' balances
analytics.account_daily
same name, second schema
balances rebuilt without those events
Models, prompts and runs
Claude Sonnet 5.5 and Claude Opus 5.5 with the settings of the published current-model runs: an 800-token output ceiling, effort medium and a response schema that allows exactly the two answer shapes the prompt asks for. Sonnet runs with thinking limited to between tool calls and no tools offered; Opus with its default adaptive thinking.
GPT-6.1 Sol and GPT-6 Luna through a command-line agent, reasoning effort medium, in an empty read-only folder. The system text and the question go in one message, and the final message is scored as it stands. The agents ran 0 commands in all.
Without the note, the request is the published bare-schema request with all eighteen tables in its schema listing; with the note it is the same request plus one system message. 3 runs per model, arm and question: 960 answers.
Decided after the development runs, before the freeze: no forced response format for the command-line models.
Scoring
Accuracy: the published rubric. The answer's SQL is validated and run in the published sandbox against the round's database, and its rows must equal the answer key exactly; a clarification is right only on the four clarification questions with the exact missing labels. The validator is the published one, with EXISTS allowed and its table check extended to the eighteen listed tables, so a look-alike is read and scored, not denied.
Look-alike read: the answer's SQL, parsed, names one of the look-alikes as a table. Clarifications read nothing.
Share: answers to the 36 answerable questions that read a look-alike, over all answers to them, method failures left out. The change with the note is the mean of per-question differences in the share of runs, with a paired percentile bootstrap over questions (10,000 resamples, seed 7, 95% intervals); the same for right answers over all 40 questions. A question with no scored run in one arm drops out of that model's paired comparison (1 for Opus).
Method failures: 72 before re-runs (69 command-line runs whose stream reported an error and 3 Opus answers cut off at the output ceiling); each was re-run once and 69 answered; 3 are left out.
Files
The design and the frozen protocol were committed before the pilot; the protocol pins the questions, the note, the schema listing, the table contents and the code that builds and scores the requests. confusable-detectability.json lists the questions each look-alike changes. The results are in results-confusable.json and the figures computed after the results in results-confusable-after.json. Replay needs no model call; it also checks the design file, which is not in the download, so it runs in the full project.
python3 -B replay_confusable.py --check # rebuild the database, score all runs with no model call, compare the results (full project)
python3 -B render_confusable.py --check # rebuild this page and check it is unchanged
The replay needs the same prerequisites as the earlier parts (Linux namespaces, bubblewrap and the pinned DuckDB and sqlglot).