sql-queries

Generate SQL queries from natural language across BigQuery, PostgreSQL, and MySQL.

25.0k|2.7k|Updated Mar 1, 2026
One-click install
npx skills add https://github.com/phuryn/pm-skills --skill sql-queries-phuryn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-queries
Source: https://github.com/phuryn/pm-skills/tree/main/pm-data-analytics/skills/sql-queries
Command: npx skills add https://github.com/phuryn/pm-skills --skill sql-queries-phuryn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the generation of SQL queries from natural language descriptions, making database querying accessible and efficient for users of all technical levels.

Core Features & Use Cases

  • Multi-Dialect Support: Generates queries for BigQuery, PostgreSQL, MySQL, Snowflake, and more.
  • Schema Awareness: Reads and understands database schemas from provided files or descriptions to write accurate queries.
  • Use Case: A product manager needs to understand user sign-up trends. They can describe "users who signed up in the last 30 days and had at least 5 active sessions" and the skill will generate the appropriate SQL query.

Quick Start

Upload your database_schema.sql file and say: "Generate a query to find users who signed up in the last 30 days and had at least 5 active sessions"

Frequently Asked Questions about sql-queries

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

FAQPage Schema
How do I generate SQL queries from natural language descriptions?

To generate SQL queries from natural language, you provide a text description of your data request along with your database schema. The tool translates your plain English request into optimized, executable SQL code for data exploration and reporting.

Can I generate SQL for PostgreSQL and BigQuery using the same tool?

Yes, you can generate SQL for PostgreSQL and BigQuery, as well as MySQL and Snowflake. The tool supports multiple database dialects, ensuring the generated query syntax matches your specific database platform.

Do I need to upload a database schema file to create accurate queries?

You need to provide a database schema file or description to create accurate queries. The tool reads and understands your provided schema to ensure the generated SQL aligns correctly with your actual table structures and column names.

How does natural language query generation work for complex data analysis?

Natural language query generation works for complex data analysis by interpreting detailed conditions in your text, such as user sign-up trends and active session counts, then mapping those requirements to the correct schema structures for optimized SQL output.

What is the best way to write data exploration queries without knowing SQL syntax?

The best way to write data exploration queries without knowing SQL syntax is to describe your reporting needs in plain text. The tool automates query generation, making database querying accessible for users of all technical levels.

Does this SQL query generator support Snowflake database dialects?

This SQL query generator supports Snowflake database dialects. It creates optimized queries tailored to Snowflake and other platforms, allowing you to generate reporting code without manually writing dialect-specific syntax.