Before you begin
- Labs create a Google Cloud project and resources for a fixed time
- Labs have a time limit and no pause feature. If you end the lab, you'll have to restart from the beginning.
- On the top left of your screen, click Start lab to begin
Generate Data Insights on the order item table
/ 30
Use Table Explorer to review details of the location table
/ 30
Query the order item table without code
/ 40
Generate Data Insights on the order item table
/ 30
Use Table Explorer to review details of the location table
/ 30
Query the order item table without code
/ 40
Imagine you're a detective trying to solve a mystery, but instead of clues, you have multiple massive spreadsheets of data.
You are a new data analyst for Data Beans, a company specializing in data collection, analytics, and insights for mobile coffee truck companies throughout your country. It is your first week at the company, and you are tasked with exploring the company's data related to the coffee trucks, menu, and orders. Your onboarding buddy recommends that you use BigQuery with the Reference panel and data insights features to learn about the data and gain insights from it without having to write SQL queries from scratch.
In this lab, you learn how to perform the following tasks:
order_item table.location table to generate basic queries.order_item table without writing SQL code.After you complete these tasks, you also review the menu and order tables using either of these features as an open activity.
Finally, you reflect on what you have learned in this lab and consider how to apply the Reference panel and data insights features to your own use cases by answering questions in your Lab Journal.
Read these instructions. Labs are timed and you cannot pause them. The timer, which starts when you click Start Lab, shows how long Google Cloud resources are made available to you.
This hands-on lab lets you do the lab activities in a real cloud environment, not in a simulation or demo environment. It does so by giving you new, temporary credentials you use to sign in and access Google Cloud for the duration of the lab.
To complete this lab, you need:
Click the Start Lab button. If you need to pay for the lab, a dialog opens for you to select your payment method. On the right is the Lab setup and access panel with the following:
Note that the lab timer is located near the top of the page, showing the remaining time.
Click Open Google Cloud console (or right-click and select Open Link in Incognito Window if you are running the Chrome browser).
The lab spins up resources, and then opens another tab that shows the Sign in page.
Tip: Arrange the tabs in separate windows, side-by-side.
If necessary, copy the Username below and paste it into the Sign in dialog.
You can also find the Username in the Lab setup and access panel.
Click Next.
Copy the Password below and paste it into the Welcome dialog.
You can also find the Password in the Lab setup and access panel.
Click Next.
Click through the subsequent pages:
After a few moments, the Google Cloud console opens in this tab.
In this task, you enable data insights on the order_item table within the coffee_on_wheels dataset.
Data insights is a tool for anyone who wants to explore their data and gain insights without writing complex SQL queries.
In the Google Cloud console, on the Navigation menu, click BigQuery > Studio.
Click Done on the welcome dialog.
In the Data Explorer pane, expand the coffee_on_wheels dataset.
Expand the coffee_on_wheels dataset to view the order_item table.
Click the order_item table to display and review the details of the order_item schema.
Click the Insights tab.
A message states "Insights have not yet been generated." This is expected because the insights have not yet been generated in your lab environment.
Click Generate insights.
Scroll through the dialog and click Generate to proceed.
From the Region menu, select
Gemini now generates insights for the order_item table.
order_item table later in the lab.
Click Check my progress to verify the objective.
While you wait for the insights to be generated, use the Reference panel in BigQuery Studio to review the location table included with the coffee_on_wheels dataset. You also build a basic query with the Reference panel to find all fields associated with the Coffee Cart Connection, Empire Espresso Explorer, and Street Sips trucks.
In the Data Explorer pane, click the location table to display and review the details of the location table schema, including the field names and data types.
At the top of BigQuery Studio, click + (SQL query) to open an empty query editor tab.
In the query editor, click Reference to open the Reference panel alongside the editor.
In the Reference panel, use the search bar or browse the Recent section to find and click the location table.
The Reference panel displays context-aware details for the table, including its fields and their data types, without leaving the query editor.
In the Reference panel, next to the location table, click More actions (three vertical dots), and then click Insert query snippet.
BigQuery inserts a starter SELECT statement for the location table into the query editor:
Replace the * character with an explicit list of fields: select the * character in the editor, delete it, and then, with your cursor on that line, click each of the following field names in the Reference panel to insert them into the query (separating each field name with a comma):
city_idcompany_idlocation_idlocation_namelocation_typeSELECT list without typing field names or worrying about typos.
Add a WHERE clause so that the query returns only the three trucks you are interested in:
Click Run.
The result returns 3 rows with the city_id, company_id, location_id, location_name, and location_type of each of these trucks. You have built your first query with the Reference panel without writing the table reference or field names by hand.
In summary, the Reference panel is a tool for getting started with data exploration in BigQuery, especially if you are new to SQL or want a quick way to understand your data while you write a query.
Here are some key points to remember about the Reference panel:
WHERE, GROUP BY, and joins.SELECT location_name, COUNT(*) FROM ... GROUP BY location_name ORDER BY 2 DESC.Click Check my progress to verify the objective.
The insights you generated in Task 1 are now ready. In this task, you use a prompt generated from these insights to query the order_item table without writing SQL code.
In the Data Explorer pane, click the order_item table and review the schema with the associated fields.
Click Insights to view the generated insights.
Review the list of insights, and search for an insight similar to the following question:
order_item table. Feel free to regenerate insights as needed by clicking Generate insights if you want to work with this example prompt.
After you find a similar insight, expand the insight to reveal the underlying SQL code, which looks similar to the following query:
Click Copy to query.
A new tab named Untitled query opens in BigQuery Studio with the question (the prompt that generated the query) and the SQL query included.
Click Run.
Notice that the results include two fields: menu_id and total_revenue for each menu item. However, the results are not sorted by revenue, and the total_revenue field includes extra decimal places. Next, you refine the query without writing SQL code.
Select the query in the query editor.
Next to the SELECT statement, click Gemini (), and then click Transform.
A dialog opens with a text field and a Generate button where you can transform the query using natural language.
Enter the following prompt:
Click Generate.
The diff view displays the original query with red background text (marked with a minus sign) and the modified query with green background text (marked with a plus sign).
Click Insert to insert the suggested query into the Untitled query tab:
Click Run.
Notice that the total_revenue field is now formatted with two decimal places.
Select the query in the query editor.
Next to the SELECT statement, click Gemini (), and then click Transform.
Enter the following prompt:
Click Generate.
The diff view displays the original query with red background text (marked with a minus sign) and the modified query with green background text (marked with a plus sign).
Click Insert to insert the suggested query into the Untitled query tab:
Click Run.
Notice that the total_revenue field is now sorted in descending order, with the highest-revenue menu items displayed first.
Congratulations! You have used data insights to select an insight and transform it without writing SQL code.
In summary, BigQuery data insights is a tool for anyone who wants to explore their data and gain insights without writing complex SQL queries.
Here are some key points to remember about BigQuery data insights:
Which insights did you find most useful with the order_item table?
Considering your data and use cases for BigQuery, how would you use the data insights feature?
Click Check my progress to verify the objective.
In this task, you explore the remaining menu and order tables in the coffee_on_wheels dataset and answer the following questions using your Lab Journal. Use the data insights and Reference panel tools—or write your own queries—to answer these questions. Be mindful of the remaining time left for this lab: when 5 minutes remain, confirm that you have completed all progress checks to receive credit for completing the lab.
Find the top three items with the highest average prices for each size.
Find all orders from location_id 37.
For your use cases, which tool—the Reference panel or data insights—would help you the most, and why?
After you have answered the questions, review the Lab Journal Solutions.
In this lab, you learned how to generate data insights and use those insights to query the coffee_on_wheels dataset without writing SQL code. You also learned how to use the Reference panel to explore the location table and build basic queries. Finally, you considered how to apply these features to your own data and use cases with BigQuery.
Consider sharing what you have learned in this lab and your journal responses with your team. To learn more, see the following resources:
...helps you make the most of Google Cloud technologies. Our classes include technical skills and best practices to help you get up to speed quickly and continue your learning journey. We offer fundamental to advanced level training, with on-demand, live, and virtual options to suit your busy schedule. Certifications help you validate and prove your skill and expertise in Google Cloud technologies.
Manual Last Updated on November 06, 2026
Lab Last Tested on November 21, 2026
Copyright 2026 Google LLC. All rights reserved. Google and the Google logo are trademarks of Google LLC. All other company and product names may be trademarks of the respective companies with which they are associated.
This content is not currently available
We can notify you via email when it becomes available
Great!
We can contact you via email if it becomes available
One lab at a time
Confirm to end all existing labs and start this one