Dataset
Metabase question and dashboard datasets for AI training
A Metabase dataset is the set of questions a business's staff saved in Metabase, each with its title, description and query in MBQL or native SQL, together with the models, dashboards, collections, SQL snippets and table and field metadata around them, and a log of query executions. It is read from Metabase's own application database or its serialization export. SourceX sources it to a buyer's spec from established businesses that run Metabase. Each dataset is de-identified and licensed for an agreed permitted use.
Dataset manifest
Sourced to your spec- What it is
- Saved questions with titles, descriptions and queries, the models, dashboards and collections around them, revisions and an execution log; no query results
- Typical systems
- Metabase open source, Pro and Enterprise editions, self-hosted on a PostgreSQL, MySQL or H2 application database, or Metabase Cloud through serialization and the API
- Typical history
- Current definitions; earlier versions as far as the revision table keeps them, a capped number per item; execution logs for the instance's retention setting, so specify each
- Modality
- Question, dashboard and metadata records as structured JSON; native SQL and snippets as code; titles and descriptions as short text
- Delivery formats
- JSONL per record type with MBQL table and field IDs resolved to names, native SQL as text, or the serialization YAML tree as exported
- Preparation
- Creators and executors replaced with pseudonyms; literals in native SQL, titles and filter defaults masked; connection details, cached field values and API keys excluded
- Licensing
- Scoped per collection and connected database; permitted use agreed per license; personal collections in scope only by agreement
- Availability
- Sourced to your spec; revision and execution history depend on the edition and how the instance was run, and 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 |
|---|---|---|
| card_id | string | Pseudonymous ID of the saved question, model or metric, mapped from its report_card row. |
| card_type | enum | Question, model or metric, as Metabase classes the card. |
| name | string | The title staff gave the question, from report_card.name, with customer names masked. |
| description | string | The optional description on the card, from report_card.description. |
| query_type | enum | Whether the card is a query builder question stored in MBQL or a native query written in SQL, from report_card.query_type. |
| dataset_query | object | The stored query from report_card.dataset_query: MBQL with source table, joins, filter, aggregation and breakout, or native SQL with its template tags. |
| resolved_references | object | Schema, table and column names for each numeric ID in the MBQL, looked up in metabase_table and metabase_field. |
| source_card_id | string | The question or model this card is built on, where its source is another card and not a table. |
| display | string | The visualization chosen for the card, such as table, bar, line or scalar, from report_card.display. |
| collection_path | string | The collection the card is saved in and its ancestors, from the collection table, with personal collections flagged. |
| database_engine | string | The engine of the connected database the card queries, from metabase_database, with connection details left out. |
| dashboard_placements | array | Dashboards that show the card and how dashboard filters map to its fields, from report_dashboardcard. |
| revisions | array | Earlier versions of the card from the revision table, each with timestamp, pseudonymous user and the change found by comparing the stored copies. |
| execution_stats | object | Counts from query_execution for the card: runs by context, running time, rows returned and errors. |
Field names from the table above; values are masked placeholders.
Example record
{
"card_id": "card_4f7a2c",
"card_type": "question",
"name": "Weekly refund rate by sales channel",
"description": "Refunded orders over all paid orders, by the week the order was paid. Excludes test accounts.",
"query_type": "query",
"dataset_query": {
"database": 3,
"type": "query",
"query": {
"source-table": 41,
"filter": ["=", ["field", 401, null], false],
"aggregation": [["share", ["=", ["field", 395, null], "refunded"]]],
"breakout": [["field", 392, {"temporal-unit": "week"}], ["field", 396, null]]
}
},
"resolved_references": {
"tables": {"41": "public.orders"},
"fields": {
"392": "orders.paid_at",
"395": "orders.status",
"401": "orders.is_test",
"396": "orders.sales_channel"
}
},
"source_card_id": null,
"display": "line",
"collection_path": "Our analytics/Finance/Refunds",
"database_engine": "postgres",
"dashboard_placements": [{"dashboard": "dash_91be", "name": "Refunds weekly review"}],
"revisions": [
{
"timestamp": "2023-08-02T09:14:55Z",
"user": "usr_2d9e",
"is_creation": true
},
{
"timestamp": "2023-11-20T16:03:12Z",
"user": "usr_71aa",
"change": "added filter orders.is_test = false"
}
],
"execution_stats": {
"runs": 214,
"by_context": {"dashboard": 171, "question": 39, "csv-download": 4}
}
}Synthetic record for illustration. Field names, structure and format are agreed per order.
What AI teams use it for
Train text-to-SQL on real business questions
Native questions pair a title written by staff with the SQL that answers it against a production schema.
Train structured query generation
Query builder questions give the same pairing with MBQL, a compact tree of joins, filters, aggregations and breakouts.
Learn query refinement
Revisions of one question show a filter added or a join fixed after someone noticed a wrong number.
Ground agents in a curated schema
Display names, descriptions and semantic types on tables and fields are documentation analysts actually maintained.
Evaluate analytics agents
Questions with a known query, placed on dashboards and run often, make test items with a trusted reference.
Use-case guides: Coding agents, Enterprise and computer-use agents, Private evaluation sets
What makes this data valuable
Descriptive titles
Most questions carry a title that states what is asked, not a default name.
IDs that resolve
Every table and field ID in the MBQL maps to a named column in the delivered metadata.
Both query forms present
A mix of native SQL and query builder questions, each labeled.
Curated metadata
Tables and fields have descriptions and semantic types that someone edited after the sync.
Revisions kept
Earlier versions exist for the questions that matter most.
Evidence of use
Execution counts and dashboard placements separate relied-on questions from abandoned ones.
Process
Metabase dataset
Every saved question is a title and a query in one row
Metabase keeps its own state in an application database, an H2 file by default and PostgreSQL or MySQL in a production install. A saved question is one row of the report_card table: a name, a description, a display type, a collection and a dataset_query column holding the query as JSON. That query is one of two things. A question built in the query builder is stored in MBQL, Metabase's own query language, as a nested structure naming a source table, joins, filters, aggregations and breakouts. A native question is stored as the SQL text the author wrote, with template tags for its variables and references to shared SQL snippets. The title and the query sit side by side, so the pairing does not have to be rebuilt from tickets or chat.
MBQL refers to tables and columns by numeric ID. Those IDs point into metabase_table and metabase_field, which Metabase fills by syncing each connected database, and without them a query builder question is a tree of integers. With them, each reference resolves to a schema, table and column, and to what admins curated on top: display names, descriptions, semantic types and foreign key targets. MBQL is not SQL. Metabase compiles it to the connected engine's dialect when the question runs, so the SQL of a query builder question exists only if someone generates it on the running instance. A question can also take another question or a model as its source, so one definition may depend on a chain of others that must all be delivered.
The revision table holds earlier versions of questions and dashboards with the user and time of each change, which shows how a question was refined. Metabase's documentation says it keeps the previous fifteen versions of an item, so a question edited often has lost its earliest forms. Field metadata reflects the latest sync, not the schema as it stood when the question was written, so old questions can point at columns since marked inactive. Archived questions stay as flagged rows, and the stored form of MBQL has changed between Metabase versions, so ask which version wrote the rows.
Two ways out of Metabase, and what neither returns
A business that hosts Metabase itself can read the application database with plain SQL. That is the fullest route: questions, dashboards, collections, snippets, segments, revisions and the query_execution log. The same database holds things that must stay behind. The metabase_database table stores connection details for every data source, core_user stores staff emails and password hashes, and there are sessions, API keys and settings. Metabase also caches distinct column values there to fill filter dropdowns, and those can be customer names. An extract should be an allow-list of tables and columns, not a database dump.
The other route is serialization, a feature of the Pro and Enterprise plans that writes questions, models, dashboards, collections and snippets to YAML files with stable entity IDs and with databases, tables and fields referred to by name. It was built to move content between instances: its documented list of exported items leaves out users, connection strings, revisions and the execution log, and cached field values come along only when the export asks for them. On Metabase Cloud, ask whether the owner can read the application database at all. If not, serialization and the API are the routes.
Neither route returns answers. Metabase keeps no result sets beyond a cache, and a query_execution row records when a query ran, in what context, for how long, how many rows came back and any error, but not the rows. Metabase documents a default of 720 days before those rows are deleted, a setting the administrator can change. To test a sample, resolve every table and field ID and count those that fail. Count titles that are defaults, copies or tests. Search native SQL for quoted names and email addresses. Confirm no connection details or cached field values came along.
What to check before licensing
- Have the data owner and your counsel check the license of the Metabase edition in use and Metabase's terms on exported data and API use.
- Check native SQL, question titles, descriptions and filter defaults for customer names and literal values such as emails and account numbers.
- Confirm that stored database connection details are excluded, along with user records, sessions, API keys and Metabase's cached field values.
- Ask which route produced the extract, the application database, serialization or the API, and which of revisions and query executions it carries.
- Count the table and field IDs in the sample's MBQL that do not resolve, or that resolve to a field Metabase marks inactive.
- Measure title quality on the sample: the share of default names, copies and tests, and whether personal collections and archived questions are flagged.
- Ask whose data the connected databases hold and whether any questions were built for customer-facing embedding, which may describe another party's data.
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
Does a Metabase dataset include query results?
No. Metabase stores definitions, not answers. It runs each question against the connected database and keeps results only in a cache. The execution log records that a query ran, how long it took and how many rows it returned, but not the rows. If you need results, the underlying tables must be licensed separately and the questions rerun.
Are point-and-click questions delivered as SQL?
Not by default. A question built in the query builder is stored in MBQL, which Metabase compiles to SQL for the connected engine each time it runs. SQL for those questions exists only if it is generated on the running instance at export. Ask for both forms, and for the Metabase version that produced the SQL.
How far back does Metabase history go?
It varies by record type. Saved questions and dashboards exist from the day they were created, in their current form. The revision table adds earlier versions, which Metabase documents as the previous fifteen per item, and the execution log covers the retention period set on the instance, 720 days by default in current documentation. Ask the owner for the earliest revision and the earliest execution row.
Can the data come from Metabase Cloud?
Yes, with a narrower route. Metabase hosts the application database there, so ask whether the owner can query it. Otherwise content comes out through serialization, which Metabase limits to the Pro and Enterprise plans, or through the API. Confirm with the owner which plan they hold and whether revisions and execution logs can be reached that way.
How good are question titles as natural-language prompts?
Uneven, and worth measuring. Titles are written by staff for colleagues, so many are short, assume context or were never changed from a default. Ask whether the instance's version pre-fills a name built from the query when a query builder question is saved, because a title left that way restates the MBQL and adds no question in staff's words. Grade a sample before fixing a volume.
Is SourceX affiliated with Metabase, Inc.?
Metabase is named to identify the system the records come from. That does not imply a partnership with or endorsement by Metabase, Inc. The records belong to the business that runs Metabase, 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
- 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
- Looker LookML models and dashboards
A LookML repository with its commit history, saved Looks and dashboards as query definitions, and optional System Activity history; no warehouse rows unless agreed
- Tableau workbooks and data sources
Workbook and data source files with their calculated fields, chart definitions and dashboards, plus extracts where the data is licensed too
- Mode reports and SQL queries
A Mode workspace's reports: query templates, the SQL each run executed, notebook code, chart settings and run history
- Power BI semantic models and reports
Semantic model and report definitions from chosen workspaces, with DAX, Power Query M and, where licensed, the imported tables
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.