Dataset
BigQuery table and event export datasets for AI training
A BigQuery dataset is an extract of chosen datasets and tables from a business's BigQuery project: loaded copies of its operating systems, nested event exports such as the Google Analytics 4 events_ tables, and the views, routines and scheduled queries its analysts wrote, with table schemas and, where the SQL is wanted, the job history. SourceX sources it to a buyer's spec from established businesses that run BigQuery. Each dataset is de-identified and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- Extracts of chosen datasets and tables with their schemas, plus view, routine and scheduled query SQL and job history where wanted
- Typical systems
- BigQuery, with the Google Analytics 4 and Firebase exports, Data Transfer Service loads, scheduled queries and the INFORMATION_SCHEMA views where agreed
- Typical history
- Varies by table: from the first date shard or partition still kept; GA4 events from the day the property was linked; job history for the past 180 days
- Modality
- Flat and nested tables, event rows with repeated fields, and SQL text
- Delivery formats
- Avro or Parquet files that keep nested and repeated fields, schemas as JSON, SQL and job history as JSONL
- Preparation
- User, device and account identifiers replaced consistently or removed; URLs, free-text parameters and query literals screened
- Licensing
- Scoped per dataset and table; analytics event data only where end users' consent and the Google product's terms cover the use
- Availability
- Sourced to your spec from businesses that run BigQuery; supply is not guaranteed
What a delivery contains
Fields vary by source system and are fixed per order. A typical delivery includes:
| Field | Type | What it holds |
|---|---|---|
| project_id | string | Pseudonymous ID of the BigQuery project that stores the table. |
| dataset | object | The dataset, BigQuery's container for tables, views and routines, with its location. |
| table_id | string | The table name, including the date suffix of a sharded table such as a GA4 events_ table. |
| table_type | enum | BASE TABLE, VIEW, MATERIALIZED VIEW, EXTERNAL, SNAPSHOT or CLONE, from INFORMATION_SCHEMA.TABLES. |
| schema_fields | array | Each column's name, type, mode (NULLABLE, REQUIRED or REPEATED) and description, with the child fields of every RECORD. |
| partitioning | object | The partitioning column or ingestion-time setting, the clustering columns and any partition or table expiration. |
| row_count | integer | Rows in the stored table from the TABLE_STORAGE view, to reconcile against the extract. |
| table_origin | enum | How the table is filled: a GA4 or Firebase export, a Data Transfer Service load, a load tool or a scheduled query. |
| definition_sql | string | The view_definition from INFORMATION_SCHEMA.VIEWS, or the routine_definition from INFORMATION_SCHEMA.ROUTINES. |
| scheduled_queries | array | Scheduled queries that write this table, read from the BigQuery Data Transfer Service: SQL, schedule and destination. |
| data_files | object | The extract files for this table: format, file count and whether nested fields were kept or flattened. |
| sample_row | object | One row as extracted, kept as a tree with its RECORD and REPEATED fields. |
| job_history | array | Jobs that read or wrote the table, from the INFORMATION_SCHEMA.JOBS views: statement_type, query, referenced_tables and error_result. |
Field names from the table above; values are masked placeholders.
Example record
{
"project_id": "prj_retail_4e9a",
"dataset": {
"name": "analytics_p7f31",
"location": "US"
},
"table_id": "events_20240312",
"table_type": "BASE TABLE",
"schema_fields": [
{
"name": "event_timestamp",
"type": "INTEGER",
"mode": "NULLABLE"
},
{
"name": "event_params",
"type": "RECORD",
"mode": "REPEATED",
"fields": [
"key STRING",
"value RECORD"
]
},
{
"name": "user_pseudo_id",
"type": "STRING",
"mode": "NULLABLE"
}
],
"partitioning": {
"type": "date_sharded",
"shard_date": "2024-03-12",
"expiration": null
},
"row_count": 184226,
"table_origin": "ga4_daily_export",
"definition_sql": null,
"scheduled_queries": [
{
"name": "daily_user_events",
"destination": "reporting.user_events_daily",
"sql": "SELECT user_pseudo_id, COUNT(*) AS events FROM `analytics_p7f31.events_*` WHERE _TABLE_SUFFIX = FORMAT_DATE('%Y%m%d', @run_date) GROUP BY 1"
}
],
"data_files": {
"format": "AVRO",
"files": 3,
"nested_fields": "kept"
},
"sample_row": {
"event_date": "20240312",
"event_timestamp": 1710255731442019,
"event_name": "add_to_cart",
"event_params": [
{
"key": "ga_session_id",
"value": {
"int_value": 1710255402
}
},
{
"key": "page_title",
"value": {
"string_value": "Trail Pack 30L"
}
}
],
"user_pseudo_id": "u_9c41e07b",
"items": [
{
"item_id": "sku_20418",
"price": 34.5,
"quantity": 1
}
]
},
"job_history": [
{
"job_id": "job_a81f20",
"creation_time": "2024-03-13T06:00:04Z",
"statement_type": "SELECT",
"user": "svc_scheduler_01",
"referenced_tables": [
"analytics_p7f31.events_20240312"
],
"error_result": null
}
]
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Text-to-SQL on nested schemas
Real schemas with RECORD and REPEATED columns, paired with the SQL analysts ran, teach a model when to UNNEST and at what grain.
Behavior modeling from event rows
GA4 and Firebase events with parameters and items let a model learn sequences of product use, by session rebuilt from the IDs.
Warehouse operating agents
Views, routines and scheduled queries show how raw exports become reporting tables, the work an analytics agent takes over.
SQL repair
Failed jobs with their error_result, followed by the corrected statement from the same account, form natural repair pairs.
Evaluation sets with checkable answers
A question about the data can be graded by running the reference query against the delivered tables.
Use-case guides: Coding agents, Enterprise and computer-use agents, Private evaluation sets
What makes this data valuable
Nesting kept
Delivered as Avro or Parquet, with event_params and items still arrays.
Long shard range
Many months of daily tables with no gaps from a paused daily export.
Consistent pseudonyms
The same replacement ID for a user in every table, so sessions and joins still work.
Described columns
Column descriptions filled in, and a dictionary for custom event names and parameters.
Job history from the right projects
Query text from every project and region that ran SQL against the tables.
Hand-written SQL marked
Statements typed by people told apart from those of load tools and dashboards by user_email and job labels.
System export
BigQuery dataset
A row is a tree, and the GA4 export has no session row
A BigQuery column can be a RECORD with child fields, and a column in REPEATED mode is an array, so one row can hold an order with its lines or an event with its parameters. Tables loaded from operating systems are mostly flat, and nesting appears where the source was JSON or a Google product wrote the table. It changes what a row count means. Flattening an array with UNNEST multiplies rows, and unnesting two arrays in one query multiplies them by each other, so every count has to name its grain.
The Google Analytics 4 export is the nested table many projects hold: one events_ table per day in a dataset named analytics_ plus the property number, and an events_intraday_ table where streaming export is on. Each row is one event. There is no session row. The session number is the ga_session_id entry inside the event_params array, read with the user_pseudo_id beside it, and each parameter value sits in one of four typed slots. The traffic_source record describes how the user was first acquired, not this session. The event_timestamp is in UTC microseconds while event_date follows the property's reporting time zone, so the two disagree around midnight. Older projects may also hold Universal Analytics ga_sessions_ tables, the opposite shape: one row per session with an array of hits.
History is what the business chose to keep. The GA4 export begins once the property is linked to BigQuery, so ask for the link date and do not assume earlier events were backfilled. Its schema gained columns over the years, so early daily tables lack fields that later ones have. Elsewhere BigQuery overwrites. After an UPDATE, a MERGE or a scheduled query that replaces its destination, the earlier state can be read only through time travel, which reaches back seven days at most. Longer history exists as date-named tables, append-only partitions or table snapshots, and expiration settings quietly remove the oldest.
What an extract job and the jobs views return
An extract job writes a stored table to Cloud Storage as CSV, newline-delimited JSON, Avro or Parquet. CSV cannot carry nested or repeated fields, so a CSV of an events table means someone flattened it first and chose which array to explode. Avro and Parquet keep the tree and the schema in the file. JSON keeps the tree but writes 64-bit integers as strings. An extract job reads stored tables. A view's rows come out only by running its query, through an EXPORT DATA statement or into a table first, and an external table's rows live in Cloud Storage files or in a Google Sheet that someone may still edit. On a table with row-level access policies an extract writes only the rows its account may view, so ask which account ran it and how masked columns were handled.
The SQL sits in four places. View text is in INFORMATION_SCHEMA.VIEWS and routine bodies in INFORMATION_SCHEMA.ROUTINES. Scheduled queries are in no dataset. They are transfer configurations of the BigQuery Data Transfer Service, listed separately. What people and tools ran is in the INFORMATION_SCHEMA.JOBS views, one row per job with user_email, statement_type, the query text, referenced_tables and error_result. Those views are queried per region, hold job history for the past 180 days, and list the jobs of one project, the one that ran them, which is often not the project that stores the table. A dashboard tool that queries from its own project leaves its SQL there.
To test a sample, compare row counts per table with the TABLE_STORAGE view, confirm that a REPEATED field arrives as an array, and rebuild one session from user_pseudo_id and ga_session_id. Check that user_id and the device advertising ID are gone and that the replacement for user_pseudo_id is the same in every table. Then trace one view to tables in the delivery.
What to check before licensing
- Have the data owner and your counsel check the Google Cloud terms for the account, and the terms of any Google product whose export is in scope, such as Google Analytics, Firebase or Google Ads, on exported data and API use.
- For analytics event tables, have counsel read the privacy notice and consent settings under which end users were tracked and confirm they cover licensing.
- Confirm that user_pseudo_id, user_id and the device advertising and vendor IDs are removed or replaced, and that geo fields, URLs and free-text parameters were screened.
- Ask for the table list with table type, row count and expiration, and identify views, external tables and datasets linked from another publisher, which the business may have no right to license.
- Ask which format the extract used, how nested fields were kept, and which account ran it, since column masking and row-level policies follow the reader.
- Ask which projects and regions the job history was read from, its earliest date, and how account names and query literals were screened.
- Ask when the GA4 link began, whether a standard property ever exceeded the daily export limit of 1 million events, which pauses the export, and whether intraday tables are excluded so events are not counted twice.
Delivery No files move before a signed license. A listing or a request grants no files by itself.
How licensing works through SourceX
- 1
Define
Send the domain, modality, volume, format, timeline and permitted use you need.
- 2
Source
SourceX identifies businesses that hold matching data and are open to licensing it.
- 3
Qualify
Fit, rights and quality are checked, and you review samples before committing.
- 4
License
Scope, permitted use, exclusivity, price and obligations are agreed in writing.
- 5
Deliver
Approved data is prepared, de-identified where required and transferred securely.
Questions Acquisition Partners ask
What does a licensed BigQuery dataset contain?
It contains extracts of the tables you scope from a business's BigQuery project, each with its schema and row count, and, where wanted, the SQL of views, routines and scheduled queries and the job history. BigQuery itself uses the word dataset for a container of tables, so name the kinds of tables and the date range you need. Supply is not guaranteed.
Can GA4 or Firebase event tables be licensed for AI training?
That depends on consent and on Google's terms, and both need checking. The events were collected from the business's end users under its privacy notice and consent settings, so counsel should confirm they cover licensing. User and device identifiers have to be removed or replaced. The data owner and the buyer should also read the terms of the Google product behind the export.
Which export format should I ask for?
Ask for Avro or Parquet when tables have nested or repeated fields. Both keep each row as a tree and carry the schema in the file. CSV cannot hold RECORD or REPEATED columns, so a CSV of an events table was flattened by someone else's rules. Newline-delimited JSON keeps the nesting but writes 64-bit integers as strings.
How much history does a BigQuery project hold?
Only what the business chose to keep, table by table. Time travel reaches back seven days at most. Longer history exists where tables are date-sharded, append-only or snapshotted, unless expiration settings removed it. The GA4 export begins on the day the property was linked. The jobs views hold the past 180 days of job history, so ask for the earliest date of each.
Can the SQL be licensed with the tables?
Yes, where the business agrees, and it comes from several places. View definitions and routine bodies are read from INFORMATION_SCHEMA, scheduled queries from the BigQuery Data Transfer Service, and executed statements from the jobs views of each project and region that ran them. Job rows name the account behind each statement, and literal values in queries need screening.
Is SourceX affiliated with Google?
BigQuery is named to identify the system the records come from. That does not imply a partnership with or endorsement by Google. The records belong to the business that runs BigQuery, which licenses them under a signed agreement, and a request does not guarantee a matching dataset. Buyers should still confirm with counsel that the vendor's terms allow the intended use of exported data.
Related datasets
- Web and product analytics events
Event-level logs from a first-party site or app, with the tracking plan and keys to business outcomes
- SQL query logs paired with the business question
Analyst-run warehouse queries in session order, each with schema, run outcome and the paired business question
- Snowflake warehouse tables
Raw and modeled tables, views, VARIANT columns, task and procedure definitions and optional query history from one Snowflake account
- Amazon Redshift warehouse tables
Unloaded fact and dimension tables from chosen Redshift schemas, with table DDL, view and procedure SQL, and query history where it was kept
- Google Cloud Storage bucket contents
Objects from chosen buckets and prefixes with their names, system and custom metadata, checksums and any noncurrent generations
Evaluating this data for procurement?
Diligence packets are prepared per dataset. Rights, privacy processing and quality differ between datasets.
Request dataset diligenceTell 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 26 November 2026.