Request a demo

Public dataset · Web, code and analytics

TheLook Ecommerce in BigQuery

The thelook_ecommerce dataset is a fictitious online store with users, orders, order items, products, inventory and web events, all generated by a program and refreshed daily. At about 490 MiB in total it is a free sandbox for ecommerce SQL, joins and dashboards.

bigquery-public-data.thelook_ecommerce · Google (synthetic data) · US · Sizes measured November 23, 2026

7tables
488 MiBlogical size
3,357,896rows
under $0.01to scan every column once, on-demand

bigquery-public-data.thelook_ecommerce describes itself as a fictitious ecommerce dataset, and each table description says its rows are programmatically generated for The Look store. No row is a real person or order. All seven tables were last modified on the day these sizes were measured, so counts and totals change from one day to the next and will not match older tutorials.

The model is a small star schema. orders has one row per order with its status and timestamps, and order_items one row per item with sale_price, linked to products (with cost, category, brand and department) and to inventory_items. users holds customer profiles including country, traffic source and a GEOGRAPHY point, and events holds web sessions with event types such as cart and purchase. distribution_centers lists the 10 warehouses.

Tables and sizes

TableRowsSizeFull scanLayout
events
Generated web events by session.
2,431,475368 MiBunder $0.01None
inventory_items
Generated inventory, one row per item in stock or sold.
490,53077.6 MiBunder $0.01None
users
Generated customers.
100,00018.9 MiBunder $0.01None
order_items
Generated order lines with sale price.
181,71913.0 MiBunder $0.01None
orders
Generated orders.
125,0426.4 MiBunder $0.01None
products
Product catalog with cost and retail price.
29,1204.1 MiBunder $0.01None
distribution_centers
Warehouses with coordinates.
10809 Bunder $0.01None

Full scan = every column of the table at the on-demand list price of $6.25 per TiB, before your free TiB each month. Selecting fewer columns costs proportionally less. See BigQuery pricing.

Example queries

Monthly orders and revenue

Scans 5.9 MiB · under $0.01 on-demand

Revenue from order_items, excluding cancelled and returned items.

SELECT
  DATE_TRUNC(DATE(created_at), MONTH) AS month,
  COUNT(DISTINCT order_id) AS orders,
  ROUND(SUM(sale_price), 2) AS revenue
FROM `bigquery-public-data.thelook_ecommerce.order_items`
WHERE status NOT IN ('Cancelled', 'Returned')
GROUP BY month
ORDER BY month;

Revenue and gross margin by product category

Scans 5.3 MiB · under $0.01 on-demand

Joins order items to products for the unit cost. The scan is about 5 MiB, but BigQuery bills at least 10 MB for each table referenced, so this query bills 20 MB.

SELECT
  p.category,
  ROUND(SUM(oi.sale_price), 2) AS revenue,
  ROUND(SUM(oi.sale_price - p.cost), 2) AS gross_margin
FROM `bigquery-public-data.thelook_ecommerce.order_items` AS oi
JOIN `bigquery-public-data.thelook_ecommerce.products` AS p
  ON oi.product_id = p.id
WHERE oi.status = 'Complete'
GROUP BY p.category
ORDER BY revenue DESC;

Cart and purchase sessions by traffic source

Scans 128 MiB · under $0.01 on-demand

The most expensive query here, because events is the largest table, and still only 128 MiB.

SELECT
  traffic_source,
  COUNT(DISTINCT session_id) AS sessions,
  COUNT(DISTINCT IF(event_type = 'cart', session_id, NULL)) AS with_cart,
  COUNT(DISTINCT IF(event_type = 'purchase', session_id, NULL)) AS with_purchase
FROM `bigquery-public-data.thelook_ecommerce.events`
GROUP BY traffic_source
ORDER BY sessions DESC;

Orders and buyers by country

Scans 2.7 MiB · under $0.01 on-demand

SELECT
  u.country,
  COUNT(DISTINCT o.user_id) AS buyers,
  COUNT(*) AS orders
FROM `bigquery-public-data.thelook_ecommerce.orders` AS o
JOIN `bigquery-public-data.thelook_ecommerce.users` AS u
  ON o.user_id = u.id
GROUP BY u.country
ORDER BY orders DESC;

Querying it cheaply

  • The whole dataset is about 490 MiB. events is three quarters of it; the order tables are a few MiB each.
  • BigQuery bills at least 10 MB per table referenced and per query, so a join of three small tables bills 30 MB even if it reads less.
  • Because the data is regenerated daily, query results are cached only until the next refresh.
  • If you build a dashboard on it, point the dashboard at a summary table you refresh yourself, not at raw events.

FAQ

How much does it cost to query thelook_ecommerce?

Almost nothing. Most queries read a few MiB and bill the 10 MB minimum per table. Even reading every column of every table is about 490 MiB, a small fraction of the free 1 TiB a month.

Is the thelook_ecommerce dataset free?

Yes for storage: the data sits in the bigquery-public-data project and Google pays to store it. You pay for the queries you run from your own project. On-demand, the first 1 TiB scanned each month is free, then you pay per TiB scanned (see BigQuery pricing).

Is thelook_ecommerce real data?

No. The dataset description calls it fictitious, and the table descriptions say the rows are programmatically generated. Use it for learning SQL, modeling and dashboards, not for market research.

Why do my thelook_ecommerce results differ from a tutorial?

The tables are regenerated daily: all of them were last modified on the day these sizes were measured. Order counts and revenue shift with every refresh, so totals from a tutorial written earlier will not match.

All public datasets · BigQuery cost queries · Pricing calculator

Cut BigQuery spend without guessing

Masthead attributes compute and storage cost to every project, user, pipeline and table, finds unused and dead-end tables, and shows where editions or on-demand pricing is cheaper. Mnemonic cut its BigQuery compute cost by 20% within 24 hours of onboarding.