Skip to content

Dataset

Relational enterprise database datasets for AI training

An enterprise database dataset is a full or sampled export of the relational database behind a business application: every table with its rows, the schema with keys and constraints, column comments and a data dictionary. SourceX sources these exports to a buyer's spec from established businesses that run line-of-business, ERP, booking, billing and custom internal systems on SQL Server, Oracle, PostgreSQL, MySQL or Db2. Specify that identifiers are replaced consistently, so the foreign keys still join. Each dataset is de-identified and licensed for an agreed permitted use.

Dataset manifest

Sourced to your spec
What it is
Populated relational databases from business applications, with schema, keys, constraints, code tables and a data dictionary
Typical systems
SQL Server, Oracle Database, PostgreSQL, MySQL, MariaDB and Db2 back ends of packaged and custom business software
Typical history
Specified by the buyer; a database holds whatever its application never purged, including rows carried over from earlier systems
Modality
Structured rows in related tables; DDL and catalog metadata; free-text and comment columns
Delivery formats
Agreed per order; a native dump such as pg_dump or Data Pump, or Parquet or CSV per table with DDL and catalog extracts
Preparation
Personal and customer identifiers replaced consistently across every table; free-text columns screened; credential and secret columns removed
Licensing
Scoped per database and table; confirm who controls the data in each table, since hosted customer data and purchased feeds may not be the exporter's to license; permitted use set in the license
Availability
Sourced to your spec; supply is not guaranteed and depends on which tables the owner may release
Structured recordsIllustrative

What a delivery contains

Fields vary by source system and are fixed per order. A typical delivery includes:

FieldTypeWhat it holds
database_idstringPseudonymous ID of the source database, shared by every table, dictionary entry and question.
engineobjectDatabase product, collation and character set the data lived under.
snapshotobjectAs-of time and how consistency was obtained: restored backup, single-snapshot dump or table-by-table copy.
table_namestringOriginal schema-qualified table name, kept as the application wrote it.
row_countobjectRows in the source and rows delivered, with the sampling rule when they differ.
columnsarrayEach column's name, declared type, nullability, default and the comment stored in the catalog.
columns[].profileobjectNull rate, distinct count, range, most frequent values and any sentinel values found.
primary_keyarrayKey columns as declared, or the owner's stated key where none was declared.
declared_foreign_keysarrayConstraints from the catalog, each flagged as enforced and as validated against existing rows.
implied_joinsarrayUndeclared joins with the measured match rate and who confirmed them.
code_valuesarrayFor coded columns, each code with its meaning, its share of rows and where the meaning came from.
row_state_rulesobjectThe owner's filters for soft-deleted, test, superseded and tenant rows.
deid_treatmentarrayPer column: kept, consistently tokenized, date-shifted, generalized, nulled or free text scrubbed.
business_questionsarrayQuestions the owner answers from this table, with reference SQL and the result at snapshot time.
Sample recordIllustrative

Field names from the table above; values are masked placeholders.

Example record

{
  "database_id": "db_5c20e7",
  "engine": { "product": "sql_server", "collation": "case_insensitive" },
  "snapshot": { "as_of": "2024-03-31T23:59:00-05:00", "method": "restored_full_backup" },
  "table_name": "dbo.RNTL_CNTRCT",
  "row_count": { "source": 1862440, "delivered": 1862440 },
  "columns": [
    { "name": "STAT_CD", "type": "char(1)", "nullable": false, "comment": null },
    { "name": "RTRN_DT", "type": "datetime", "nullable": false,
      "profile": { "sentinels": [ { "value": "1900-01-01", "share": 0.07, "meaning": "not yet returned" } ] } },
    { "name": "PO_REF", "type": "varchar(30)", "nullable": true, "comment": "Customer PO",
      "profile": { "null_rate": 0.41, "note": "job-site code on construction-branch rows" } }
  ],
  "primary_key": ["CNTRCT_ID"],
  "declared_foreign_keys": [
    { "columns": ["UNIT_ID"], "references": "dbo.EQUIP_UNIT(UNIT_ID)", "enforced": true, "validated": false }
  ],
  "implied_joins": [
    { "columns": ["CUST_NO"], "references": "dbo.CUST_MSTR(CUST_NUM)", "match_rate": 0.994,
      "confirmed_by": "owner_dba" }
  ],
  "code_values": [
    { "column": "STAT_CD", "code": "X", "meaning": "voided", "share": 0.02, "source": "owner_note" }
  ],
  "row_state_rules": { "soft_delete": "DEL_FLG = 'Y'" },
  "deid_treatment": [
    { "column": "CUST_NO", "treatment": "consistent_token", "scope": "all_tables" }
  ],
  "business_questions": [
    { "question": "How many contracts were open at month end, by branch?",
      "reference_sql": "SELECT BRANCH_ID, COUNT(*) FROM dbo.RNTL_CNTRCT WHERE STAT_CD = 'O' AND DEL_FLG = 'N' GROUP BY BRANCH_ID",
      "result_ref": "results/bq_0031.csv" }
  ]
}

Synthetic record for illustration. Field names, structure and format are agreed per order.

What AI teams use it for

Train and test text-to-SQL on production data

Populated tables with coded columns, sentinels and soft deletes expose errors that clean benchmark databases hide, and the owner's questions give reference answers.

Pretrain tabular and relational models

Multi-table data with real key relationships, skew and missingness suits models that learn across joined tables instead of one flat file.

Build data-profiling and cleaning agents

Sentinel values, orphaned rows and padded keys give an agent real defects to find, with the owner's row-state rules as the answer key.

Discover joins and write the data dictionary

Models that infer what a column means and which columns join can be scored against the owner-confirmed dictionary and join list.

Rehearse database migrations

Moving a populated database to a new engine or schema, then reconciling counts and totals, tests an agent on type, collation and null differences an empty schema never raises.

Use-case guides: Coding agents, Private evaluation sets, Enterprise and computer-use agents

What makes this data valuable

Consistent snapshot

All tables reflect one moment, so orphans in the data are real.

Keys that still join

Declared and implied joins match at the same rate after de-identification as before.

Code meanings

Every coded column has its values listed with meanings and where each meaning came from.

Row-state rules

The filters for deleted, test, superseded and tenant rows are written down by the owner.

Confirmed join graph

Undeclared joins carry a measured match rate and an owner confirmation, not a guess from names.

Questions with results

Business questions arrive with reference SQL and a result that reproduces on the delivery.

System export

Enterprise database dataset

This page covers relational business database exports.Illustrative

The rows carry the difficulty, not the schema

A schema says what a table could hold. The rows say what it does hold, and that is where text-to-SQL and tabular models fail on production data. A lookup table may list a dozen statuses while the rows use four of them, plus a code with no lookup entry at all, and one status stops appearing the year a process changed. A return date declared NOT NULL has no nulls because the application writes 1900-01-01, the default value of SQL Server's datetime type, for a contract still open, and an average over that column is wrong until the sentinel is filtered out. Oracle treats a zero-length character value as NULL, so blank and unknown cannot be told apart there, while most other engines keep both.

Row state is the second layer. Deleted records usually stay in the table behind a flag or a deleted_at timestamp, test customers and a training branch sit beside real ones, and effective-dated tables hold several versions of the same entity. Every correct count needs those filters, and nothing in the DDL states them. Columns also get reused. A purchase-order reference holds a job-site code for one group of branches, and a fax column fills with second email addresses once nobody sends faxes. Only the values show it. Key columns have habits too: CHAR keys padded with trailing spaces, and keys that differ only by case, which join under the case-insensitive collations common on SQL Server and MySQL and stop joining once exported to files.

A schema-only dataset, or one filled with synthetic rows, removes all of this. Generated rows satisfy the declared types and constraints, so codes are evenly spread, every foreign key resolves, no sentinel appears and no single customer dominates the order table. De-identification has to keep what generation loses: the same token for an identifier in every table, the original length and padding of keys, dates shifted per entity so intervals survive, and null patterns left alone. Ask for column profiles from before and after.

Specify the join graph, the scale and the questions

One database can mean a dozen tables or several thousand. Often a small core holds the business and the rest are audit trails, staging tables, dated backup copies and empty tables, so ask for rows per table. Then ask for the join graph in two parts. Declared foreign keys come from the catalog, with their status: SQL Server flags a constraint added WITH NOCHECK as not trusted, because existing rows were never checked against it, and MySQL parses and ignores foreign key clauses on MyISAM tables. Implied joins are the rest: columns matched by name, type-and-ID pairs that point at different tables, keys buried in strings. Each needs a measured match rate and a note of who confirmed it.

How the export was taken decides whether broken joins are real. Copying a live database table by table leaves child rows whose parents changed in between, and those orphans are artifacts. A restored backup is consistent, pg_dump exports a consistent state while the database is in use, and mysqldump does so only for InnoDB tables and only when run with its single-transaction option. A random sample of each table breaks nearly every join, so samples should start from chosen entities and follow the keys outward, with lookup tables kept whole.

An export without known-correct questions cannot become an evaluation. Questions written afterwards by people who do not know the business test what the schema makes easy, and nobody can vouch for the answers. The owner already has the real ones: report definitions, the views behind dashboards, the month-end queries a clerk runs from a saved file. Ask for the question in words, the SQL and the result as of the snapshot, then re-run it against the delivered rows. A query log shows everything analysts tried. These are the few answers the business stands behind.

What to check before licensing

  • Ask who controls the data in each table. In a multi-tenant SaaS back end the rows usually belong to the vendor's customers, and purchased reference data belongs to its provider.
  • Have the de-identification report list every column's treatment, and confirm that free-text, JSON, XML and attachment columns were screened as well as named personal fields.
  • Re-run the joins on the sample. Each declared foreign key and implied join should match at the rate the manifest states.
  • Ask how the snapshot was taken, and test for orphaned child rows that a table-by-table copy of a live system would create.
  • Request the table count, rows per table and the list of excluded tables with the reason for each.
  • Ask for the engine, collation and character set, and check that padded and case-differing keys still join in the delivery format.
  • Ask for the owner's own business questions with reference SQL and results as of the snapshot, and re-run several against the delivered rows.

Delivery No files move before a signed license. A listing or a request grants no files by itself.

How licensing works through SourceX

  1. 1

    Define

    Send the domain, modality, volume, format, timeline and permitted use you need.

  2. 2

    Source

    SourceX identifies businesses that hold matching data and are open to licensing it.

  3. 3

    Qualify

    Fit, rights and quality are checked, and you review samples before committing.

  4. 4

    License

    Scope, permitted use, exclusivity, price and obligations are agreed in writing.

  5. 5

    Deliver

    Approved data is prepared, de-identified where required and transferred securely.

Questions Acquisition Partners ask

How is a database export different from a schema-only dataset?

A database export includes the rows, and a schema-only dataset stops at table definitions. The rows show which codes are used, how often values are missing, which records are soft-deleted and which columns hold something other than their name suggests. Those properties decide whether a generated query returns the right answer, and they cannot be recovered from DDL.

Do foreign keys still join after de-identification?

They should, and you can test it. Identifiers that act as keys, such as customer numbers or email addresses used as logins, should be replaced with the same token everywhere they appear, so joins hold across tables. The weak spots are keys embedded in free text and composite keys treated column by column. Compare match rates before and after on the sample.

Can I license a whole database or only a sample?

Either, depending on what the owner approves. A full export keeps true scale, skew and every join. A sample is easier to release and to handle, but it has to be drawn by entity, following keys outward from chosen customers or accounts, or the joins break. State the tables and row scale you need.

What format are exports delivered in?

The format is agreed per order. A native dump, such as pg_dump output, an Oracle Data Pump file or a SQL Server backup, restores exactly but ties you to that engine. Parquet or CSV per table is portable and loses type detail unless the DDL and catalog extracts come with it. CSV in particular blurs empty strings and nulls.

Who has the right to license a business database?

The party that controls the data in each table, which is not always the party running the database. A company's own operational records are the usual starting point, subject to its contracts and to how personal data is handled. Rows that a software vendor hosts for its customers are usually controlled by those customers, and tables loaded from a purchased feed stay under that feed's terms. Have counsel confirm this table by table.

Can an export be turned into a text-to-SQL benchmark?

Yes, if it comes with questions the owner already answers from it. Report definitions, dashboard views and saved month-end queries supply a stated need, reference SQL and a result at snapshot time. Without them, questions must be invented by people who do not know the business, and reference answers cannot be verified.

Evaluating this data for procurement?

Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.

Request dataset diligence

Tell us what your models need

Send your spec — domain, volume, format, timeline and permitted use — and SourceX will match it against partner data and come back with what can be licensed.

Updated 25 November 2026.

See if your company qualifies