sql-queries

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

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the generation of SQL queries from natural language descriptions, simplifying database interactions for users of varying technical expertise.

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.
  • 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 ask to 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?

To generate SQL queries from natural language, you provide a text description of your data request alongside your database schema, and the system translates that business question into an executable SQL query automatically.

Does this SQL query generator support PostgreSQL, MySQL, and BigQuery?

Yes, this SQL query generator supports multiple database dialects including PostgreSQL, MySQL, BigQuery, and Snowflake, allowing you to construct optimized queries tailored to your specific database environment.

How do I write a query for users who signed up in the last 30 days with active sessions?

To write complex queries like finding users with recent sign-ups and active sessions, you upload your database_schema.sql file and describe the requirement in plain English to receive the corresponding optimized SQL code.

Do I need to provide a database schema to generate SQL queries?

Yes, you need to provide a database schema by uploading a schema file or diagram, which the system reads to understand table structures and relationships for constructing accurate and executable SQL queries.

Can I use natural language to build data analysis reports for my database?

Yes, you can use natural language to build data analysis reports by describing the required data retrieval and report parameters, which translates into the appropriate SQL queries for database exploration.

What is the best way to translate business questions into executable SQL?

The best way to translate business questions into executable SQL is to input your plain text description and schema documentation, letting the system automate the query generation for complex data retrieval.