sql-queries

Generate dialect-specific SQL queries for Snowflake, BigQuery, Databricks, PostgreSQL, and Redshift.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/paulanunes85/awesome-paulasilvatech-copilots --skill sql-queries-paulanunes85
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-queries
Source: https://github.com/paulanunes85/awesome-paulasilvatech-copilots/tree/main/plugins/data/skills/sql-queries
Command: npx skills add https://github.com/paulanunes85/awesome-paulasilvatech-copilots --skill sql-queries-paulanunes85

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides clear, dialect-aware guidance to write correct and performant SQL so teams avoid syntax errors, poor performance, and costly query re-runs across different data warehouses.

Core Features & Use Cases

  • Dialect-specific patterns: Concrete examples and idioms for PostgreSQL, Snowflake, BigQuery, Redshift, and Databricks covering date/time, strings, arrays/JSON, and semi-structured data access.
  • Performance guidance: Recommendations for indexes, clustering/partitioning, explain plans, and warehouse-specific optimizations to reduce scan costs and improve latency.
  • Analytical patterns: Ready-to-use CTE, window function, cohort retention, funnel analysis, and deduplication templates for analytics and reporting workflows.
  • Use Case: Translate a slow PostgreSQL analytical query to BigQuery syntax, add partitioning and clustering recommendations, and produce an optimized, cost-aware version.

Quick Start

Ask the skill to translate and optimize your slow query for the target warehouse and explain the key performance changes.

Frequently Asked Questions about sql-queries

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize slow SQL queries in BigQuery or Snowflake?

To optimize slow SQL queries, apply dialect-specific techniques like partition pruning, clustering, and indexing. You can generate performant SQL queries that reduce scan costs and improve execution latency across major data warehouses.

What is the best way to translate a PostgreSQL analytical query to BigQuery syntax?

The best way to translate a PostgreSQL query to BigQuery is to apply dialect-specific syntax patterns for date/time, JSON, and arrays. This ensures correct execution while adding partitioning and clustering recommendations for cost-aware performance.

How do I write SQL window functions and CTEs for analytics workflows?

You write SQL window functions and CTEs using ready-to-use analytical templates for cohort retention, funnel analysis, and deduplication. These patterns structure complex reporting workflows clearly while maintaining warehouse-specific performance standards.

Does this SQL query optimization approach work with Databricks and Redshift?

Yes, this SQL query optimization approach works with Databricks and Redshift. It generates correct, performant queries by applying dialect-specific syntax and techniques tailored to PostgreSQL, Snowflake, BigQuery, Databricks, and Redshift.

Why does my data warehouse SQL query fail when accessing semi-structured JSON data?

Data warehouse SQL queries fail accessing JSON data when using incorrect dialect-specific syntax. Generating queries with concrete examples and idioms for semi-structured data access ensures correct parsing across PostgreSQL, Snowflake, BigQuery, and Databricks.

When should I use explain plans for SQL query optimization?

You should use explain plans for SQL query optimization when diagnosing latency and high scan costs. Performance recommendations include analyzing explain plans alongside partition pruning and clustering to improve query execution across warehouses.