Skip to content
Back to skills

Data Querying

ASecurity

Write and verify SQL queries with BigQuery. Use when executing bq commands, writing SQL queries, or including query results in documents.

  • 666 stars
  • 0 votes
  • 0 copies
  • 9 views
  • Added February 8, 2026
toolsbashsqldocumentation

Security analysis

A100/100

Scanned February 10, 2026

npx -y skills add majiayu000/claude-skill-registry --skill data-querying --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Data Querying?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Data Querying
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/majiayu000-data-querying/badge)](https://www.skillsdirectory.com/skills/majiayu000-data-querying)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: data-querying
description: Write and verify SQL queries with BigQuery. Use when executing bq commands, writing SQL queries, or including query results in documents.
---

# Data Querying

## Verification Requirement

All queries MUST be executed with `bq` and verified before inclusion. Never include unverified queries or fabricated data.

## Query Process

1. **Dry run**: Validate syntax and check cost

   ```bash
   bq query --project_id=<PROJECT_ID> --use_legacy_sql=false --dry_run "SELECT ..."
   ```

   Cost: ~$5/TB. <1GB is light, 2GB+ needs optimization.

2. **Execute**: Run and confirm results

   ```bash
   bq query --project_id=<PROJECT_ID> --use_legacy_sql=false --format=csv "SELECT ..."
   ```

3. **Learn**: Study existing queries in project docs for patterns.

## Query Design

- Specify exact date ranges
- Filter partitioned tables by partition key
- Avoid correlated subqueries (use JOINs/CTEs)
- Filter early with CTEs before joining large tables

## Documentation

1. Execute exact query with `bq`
2. Copy real output only
3. State time period and what query measures

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.