bigquery-sql
Skill by SignalPilot-Labs
Provides BigQuery-specific SQL patterns for an AI assistant. It covers UNNEST, STRUCT, ARRAY_AGG, date functions, approximate aggregation, and partitioned and wildcard tables.
Install bigquery-sql
Built from the published package, never by AI.
git clone --depth 1 https://github.com/SignalPilot-Labs/SignalPilot /tmp/SignalPilot && mkdir -p ~/.claude/skills && cp -r /tmp/SignalPilot/benchmark/skills/bigquery-sql ~/.claude/skills/bigquery-sqlRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/SignalPilot-Labs/SignalPilot /tmp/SignalPilot && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/SignalPilot/benchmark/skills/bigquery-sql ~/.gemini/antigravity-cli/skills/bigquery-sqlAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
BigQuery SQL is a skill file that gives an AI assistant a reference of BigQuery-specific SQL patterns. It covers backtick-quoted table references, UNNEST for expanding arrays, STRUCT and ARRAY_AGG, DATE_DIFF and DATE_ADD, and SELECT EXCEPT and REPLACE. It also covers approximate aggregation such as APPROX_COUNT_DISTINCT and APPROX_QUANTILES, and querying partitioned and wildcard tables.
The file lists common anti-patterns, such as using = NULL instead of IS NULL and running COUNT(DISTINCT) on very large tables. It adds notes on string functions, INFORMATION_SCHEMA, and Spider2 BigQuery examples that use spider2-public-data as the default project. Many BigQuery tables store dates as TIMESTAMP or DATE, so the file advises checking column types first. It is intended for people and assistants writing SQL against BigQuery.
Written from the project's SKILL.md and checked against it.
What it can do
- UNNESTExpands array columns into rows, with optional position offsets.
- STRUCT and ARRAY_AGGBuilds STRUCT values and aggregates rows into arrays.
- Date functionsCovers DATE_ADD, DATE_DIFF, DATE_TRUNC and current date or time functions.
- SELECT EXCEPT and REPLACESelects all columns except some, or replaces column values inline.
- Approximate aggregationShows APPROX_COUNT_DISTINCT and APPROX_QUANTILES for large tables.
- Partitioned tablesExplains filtering on partition columns to avoid full-table scans.
- Wildcard tablesQueries date-sharded tables with a prefix and _TABLE_SUFFIX filter.
- String functionsLists regex, split, trim and FORMAT functions with examples.
What you need
- Access to Google BigQuery
Try asking
- Expand the items array in my orders table into one row per item.
- Count distinct users per month using approximate aggregation on my events table.
- Query all events_* date-sharded tables for 2024 using _TABLE_SUFFIX.
Good to know
- The Spider2 section assumes spider2-public-data as the default project.
- The file advises avoiding SELECT * on tables with more than 1M rows.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: benchmark/skills/bigquery-sql/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md4 KB
Alternatives to bigquery-sql
All alternatives →Creates, configures and manages datasets on the Hugging Face Hub, including SQL-based querying and transformation. Built for people who edit dataset content and metadata directly, alongside the HF MCP server.
Diagnoses and repairs gbrain's Postgres access when a command or MCP result shows a GBRAIN_DB_ACCESS marker, or when the operator reports the brain database is down. It runs the hardcoded gbrain db-repair ladder and verifies the result with a re-probe.
Manages clusters, instances, and backups for AlloyDB for PostgreSQL. Built for creating, configuring, and administering AlloyDB databases, not general PostgreSQL or Cloud SQL instances.
Writes, reviews and migrates Supabase logs queries against the ClickHouse logs table served by the logs.all.otel endpoint. Built for developers who write Logs Explorer SQL or convert older BigQuery logs queries.
Diagnoses and fixes slow Paperclip PostgreSQL queries using Cloud and Neon evidence, local benchmarks, regression tests, and a pull request with passing checks. Built for engineers working on Paperclip.
Guides AI assistants through Prisma 8 projects built on @prisma/orm-postgres, @prisma/orm-sqlite, or @prisma/orm-mongo. It covers data contracts, migrations, typed queries and runtime setup for developers on Prisma 8.
Compare with hugging-face-datasets, db-repair or alloydb-basics
bigquery-sql: common questions
Which project does the Spider2 section use?
The Spider2 section names spider2-public-data as the default project and shows table references in the form spider2-public-data.{dataset}.{table}.
How does the skill handle partitioned tables?
It advises always filtering on the partition column, such as _PARTITIONDATE or a date column, to avoid full-table scans.
How are wildcard tables queried?
The skill shows querying date-sharded tables with a wildcard such as events_* and filtering with _TABLE_SUFFIX.
How do I install bigquery-sql?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is bigquery-sql free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is bigquery-sql safe to use?
It scores 72 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to bigquery-sql?
Similar skills: hugging-face-datasets, db-repair, alloydb-basics, clickhouse-logs-queries.
