sql-queries

Generates SQL queries from natural language descriptions for BigQuery, PostgreSQL, and MySQL.

8|1|Updated Dec 28, 2025
One-click install
npx skills add https://github.com/officebeats/beats-pm-kit --skill sql-queries-officebeats
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-queries
Source: https://github.com/officebeats/beats-pm-kit/tree/main/.agent/skills/sql-queries
Command: npx skills add https://github.com/officebeats/beats-pm-kit --skill sql-queries-officebeats

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill automates the creation of SQL queries by translating natural language descriptions into executable SQL code, saving time and reducing errors for data professionals.

Core Features & Use Cases

  • Natural Language to SQL: Converts plain English requests into valid SQL syntax.
  • Multi-Dialect Support: Generates queries for BigQuery, PostgreSQL, MySQL, Snowflake, and more.
  • Schema Awareness: Understands database schemas from provided files or descriptions to write optimized queries.
  • Use Case: A product manager needs to understand user engagement trends. They can describe the desired data (e.g., "Show me daily active users for the last 7 days, broken down by platform") and the Skill generates the appropriate SQL query.

Quick Start

Use the sql-queries skill to generate a BigQuery query for users who signed up in the last 30 days and had at least 5 active sessions, given the schema in database_schema.sql.

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 from natural language, you provide a plain English request and the Skill outputs valid, executable SQL code. It parses your database schema from uploaded files or descriptions to create optimized queries for data exploration.

Can I create BigQuery or PostgreSQL queries using plain English?

Yes, you can create BigQuery and PostgreSQL queries using plain English. The Skill supports multiple database dialects, including MySQL and Snowflake, ensuring the generated SQL syntax matches your specific database environment.

How do I translate business questions into SQL for report building?

You translate business questions into SQL by describing the desired data, such as "Show me daily active users for the last 7 days." The Skill parses your schema and generates commented, executable SQL code for report building.

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

Yes, you need to provide a database schema. The Skill uses schema awareness by parsing schemas from uploaded files or textual descriptions to write optimized, dialect-specific SQL queries tailored to your exact table structures.

Does this natural language to SQL converter support Snowflake?

Yes, this natural language to SQL converter supports Snowflake. It generates queries across multiple dialects including BigQuery, PostgreSQL, MySQL, and Snowflake, adapting the SQL syntax to fit your target database.

What is the best way to convert plain English requests into valid SQL syntax?

The best way to convert plain English requests into valid SQL syntax is using a schema-aware generator. You supply the schema and business question, and the tool outputs commented, optimized SQL code without manual syntax writing.