As of November 23, 2026, Gemini in BigQuery can generate, complete and explain SQL in BigQuery Studio. Real use requires project setup and the appropriate IAM permissions. A generated query still needs review of its schema, aggregation and missing values. Here you use the existing GoogleSQL subset backed by DuckDB; the practice does not contact Gemini or run a billed BigQuery job.
Read the suggestion and decide whether to accept, repair or reject it. The decision is checked separately from the work. Selecting Repair does not change a formula, query or configuration for you: make the correction in the workspace. Use the task data to test the result, then check your answer. Show me how demonstrates the review decision and the tool actions together. The cases reuse original course fixtures so you can compare the proposed method with behavior you can inspect.
The draft substitutes a different aggregation. That changes the business measure even when the result looks plausible. Use the requested aggregation.
Corrected operation:
SELECT channel, COUNT(*) AS orders FROM shop.orders GROUP BY channel ORDER BY orders DESC;