Agentsql

BigQuery Natural Language to SQL: Ask BigQuery in Plain English

Ask BigQuery a question in plain English. Agentsql writes the standard SQL, runs it read-only on your dataset, and returns the chart, the table, and the answer.

See pricing

Read-only by design · shows the SQL every time · never trains on your data

Connected · demo_shop · Postgres · read‑only

Ask your data a question:

›_

Writing SQL… Running (read‑only)… SQL Agentsql wrote

Refine: refined ✓

Click a question. Agentsql writes the SQL, runs it read-only, and answers.

Direct answer

BigQuery natural language to SQL means asking your BigQuery dataset a plain-English question and getting back real, runnable BigQuery SQL plus the result. Agentsql connects with a read-only service account, writes standard SQL against your actual dataset schema, runs the query, and returns a chart, a table, and a one-line answer. The query is shown with the answer, and because BigQuery bills on bytes scanned, seeing the SQL is also how you keep the bill honest.

Why teams do this

BigQuery is usually where the marketing, product, and billing data finally sit together, which makes it the place the most valuable questions get asked and the place non-engineers are least equipped to ask them. Partitioned tables, nested fields, and wildcard exports are unforgiving to a newcomer. Agentsql reads the schema, writes the query, runs it, and shows the SQL, so a marketer can get a real number and an engineer can still see exactly which table it came from.

What you get back

  • The SQL. The exact Google BigQuery query Agentsql wrote, on screen, every time.
  • The result. A table of rows straight from your database, not a summary of a summary.
  • The chart. The right visual for the shape of the answer.
  • The answer. One plain-English line you can paste into Slack and defend.

›_ connect it safely

Connect Google BigQuery read-only.

BigQuery access is granted through IAM, so the read-only boundary is enforced by Google Cloud rather than by the tool:

  1. 1

    Create a dedicated service account for the tool in your Google Cloud project.

  2. 2

    Grant it the BigQuery Data Viewer role on only the datasets it should read.

  3. 3

    Grant BigQuery Job User so it can run query jobs, and grant nothing that allows writes.

  4. 4

    Do not grant Data Editor, Data Owner, or project-wide admin roles.

  5. 5

    Consider setting a maximum bytes billed limit so a single exploratory query cannot scan a huge table.

  6. 6

    Generate a key for the service account, add it in Agentsql, and every query it runs is a read.

The boundary is enforced by your database, not by our promise. Read more about how Agentsql stays read-only by design, or how it connects to your database.

›_ ask it anything

Questions you can ask BigQuery in plain English.

Type the question the way you would ask a teammate. Agentsql writes the Google BigQuery query, runs it read-only, and shows you both the SQL and the answer.

Plain-English question What the SQL does
Which campaigns drove the most signups last month? Groups attribution events by campaign over a month window.
What is our conversion rate by traffic source? Ratio of converted sessions to total sessions per source.
How many active users did we have each week this quarter? Counts distinct users bucketed by week on a partitioned events table.
What is the average revenue per user by country? Joins revenue to users and averages by country.
Which product pages have the highest exit rate? Session-level aggregation across page view events.

›_ the honest comparison

Four ways to answer a BigQuery question.

Every option below is legitimate. The right one depends on who is asking and how fast they need the number.

Approach Who can use it Time to an answer The SQL Safety note
Write SQL in the BigQuery console Engineers and analysts Minutes to hours You write it Bytes scanned bill on every run
Build a Looker Studio report per question Data team builds, others read Hours to days per report Hidden behind the chart Rigid, and new questions need new reports
Export to a spreadsheet Anyone Fast, then instantly stale None Data leaves the warehouse
Agentsql connected read-only Anyone on the team Seconds Written, run, and shown to you Data Viewer service account, no writes

›_ frequently asked

BigQuery questions, answered.

Can I query BigQuery in plain English?

Yes, through a natural-language layer that converts your question into BigQuery SQL and runs it. Agentsql connects with a read-only service account, generates standard SQL against your dataset schema, executes the query job, and returns a chart, a table, and a written answer with the SQL displayed alongside it.

How much does a natural language query cost in BigQuery?

BigQuery bills mainly on bytes scanned, so cost depends on how much data the generated query touches, not on how you phrased the question. Querying a partitioned table with a date filter is cheap. Set a maximum bytes billed limit on the service account, and review the SQL, which Agentsql always shows, before running anything against a very large table.

Is it safe to connect an AI to BigQuery?

Yes, when access is granted through IAM as read-only. Give the tool a service account with Data Viewer on specific datasets and Job User to run queries, and no editor or owner roles. Google Cloud enforces that boundary, so the tool cannot write, overwrite, or delete regardless of what is asked of it.

Does it handle partitioned and nested BigQuery tables?

It writes standard BigQuery SQL against the schema it reads, including partitioned tables and nested or repeated fields. Nested structures are where generated SQL most often needs a second look, which is the reason the query is always shown. If an UNNEST is wrong, you see it immediately instead of trusting a wrong number.

What is the difference between this and Looker Studio?

Looker Studio visualizes data someone has already modeled into a report. An AI data analyst answers a question nobody built a report for yet. Agentsql writes fresh SQL for whatever you ask, runs it, and returns a chart plus a number, so ad-hoc questions do not become a build request.

›_ other databases

Ask BigQuery your first question.

Connect read-only in minutes. Every answer arrives with the SQL that produced it.