sql-query

Generate and optimize SQL queries for data retrieval and analysis.

Updated Jan 15, 2026
One-click install
npx skills add https://github.com/KaiserWhoLearns/skillsbench --skill sql-query-kaiserwholearns
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sql-query
Source: https://github.com/KaiserWhoLearns/skillsbench/tree/main/registry/terminal_bench_1.0/pandas-sql-query/environment/skills/sql-query
Command: npx skills add https://github.com/KaiserWhoLearns/skillsbench --skill sql-query-kaiserwholearns

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Generate and optimize SQL queries for data retrieval, analysis, and reporting.

Core Features & Use Cases

  • Generate SELECT, INSERT, UPDATE, DELETE queries
  • Build complex JOINs and subqueries
  • Aggregate data with GROUP BY and window functions
  • Use cases: reporting, analytics, and data pipelines requiring efficient queries

Quick Start

Provide a sample database schema and a task goal, then generate an optimized SQL query.

Frequently Asked Questions about sql-query

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

FAQPage Schema
How do I write complex SQL queries with multiple joins and subqueries?

To write complex SQL queries with joins and subqueries, provide a sample database schema and task goal to generate well-structured statements. This approach handles complex data retrieval by building optimized SELECT queries with proper JOIN logic.

What is the best way to optimize slow SQL queries for reporting?

The best way to optimize slow SQL queries for reporting is applying performance best practices such as indexing and analyzing EXPLAIN plans. This ensures efficient data retrieval and tuning for aggregations and complex joins.

Can I generate parameterized SQL queries for data pipelines?

Yes, you can generate parameterized SQL queries for data pipelines by specifying your reporting and analytics requirements. This produces well-structured statements that satisfy parameterization needs for automated data flows.

How do I aggregate data using GROUP BY and window functions in SQL?

To aggregate data using GROUP BY and window functions in SQL, define your analytics task goal and database schema. This generates optimized queries that efficiently compute aggregations across partitioned result sets for reporting.

Does this approach work for building INSERT, UPDATE, and DELETE statements?

Yes, this approach works for building INSERT, UPDATE, and DELETE statements alongside SELECT queries. It generates well-structured statements for data retrieval, modification, and pipeline tasks based on your schema.