sql-queries

Translate SQL queries across Snowflake, BigQuery, Databricks, PostgreSQL, and Redshift.

Updated Mar 30, 2026
One-click install
npx skills add https://github.com/nashirabbash/autorepychatbot --skill sql-queries-nashirabbash
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-queries
Source: https://github.com/nashirabbash/autorepychatbot/tree/main/.agents/skills/sql-queries
Command: npx skills add https://github.com/nashirabbash/autorepychatbot --skill sql-queries-nashirabbash

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Write correct, efficient, and portable SQL that works across Snowflake, BigQuery, Databricks, PostgreSQL, Redshift, and other dialects, helping teams avoid dialect drift and rewrite costs.

Core Features & Use Cases

  • Dialect-aware reference for multiple major SQL dialects, including PostgreSQL, Snowflake, BigQuery, Redshift, and Databricks SQL.
  • Query translation & adaptation to move existing queries between dialects without breaking logic.
  • Performance & best practices guidance for common analytical patterns, including CTEs, window functions, aggregations, and JSON/ARRAY handling.
  • Use Case: migrate a complex query from PostgreSQL to BigQuery for a large-scale data warehouse test.

Quick Start

Translate a sample PostgreSQL query to another dialect and optimize it for large datasets.

Frequently Asked Questions about sql-queries

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

FAQPage Schema
How do I translate SQL queries from PostgreSQL to BigQuery without breaking logic?

SQL query translation adapts existing PostgreSQL syntax to BigQuery by adjusting dialect-specific functions and structures, preserving the original analytical logic. This cross-dialect query adaptation covers CTEs, window functions, and JSON handling during warehouse migration.

What is the best way to write cross-dialect SQL for Snowflake, Redshift, and Databricks?

Writing cross-dialect SQL involves using dialect-aware references to ensure correct syntax across Snowflake, Redshift, and Databricks. This approach provides guidance on advanced functions and date arithmetic, helping teams avoid dialect drift and rewrite costs.

Does this SQL optimization guidance cover window functions and CTEs for large datasets?

Yes, SQL optimization guidance covers performance best practices for common analytical patterns including CTEs, window functions, and aggregations. It specifically addresses optimizing these complex patterns for large datasets across multiple major SQL dialects.

Can I use this for migrating complex analytical queries to a modern data warehouse?

Yes, you can use this for migrating complex analytical queries to modern data warehouses like Snowflake or BigQuery. It supports migration and modernization efforts by translating queries and providing dialect-specific performance considerations.

How does cross-dialect SQL handle JSON and ARRAY data types across different platforms?

Cross-dialect SQL handles JSON and ARRAY data types by providing dialect-specific references for parsing and manipulation across platforms. It ensures correct syntax for JSON and ARRAY operations during query translation and routine analytical reporting.