Back to list
benchflow-ai

sql-query

by benchflow-ai

SkillsBench evaluates how well skills work and how effective agents are at using them

251🍴 170📅 Jan 23, 2026

SKILL.md


name: sql-query description: Generate and optimize SQL queries for data retrieval and analysis

SQL Query

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

Capabilities

  • Generate SELECT, INSERT, UPDATE, DELETE queries
  • Build complex JOINs and subqueries
  • Aggregate data with GROUP BY and window functions
  • Optimize query performance

Query Patterns

Basic Select

SELECT column1, column2
FROM table_name
WHERE condition
ORDER BY column1
LIMIT 100;

Aggregation

SELECT category, COUNT(*) as count, AVG(price) as avg_price
FROM products
GROUP BY category
HAVING COUNT(*) > 10;

Window Functions

SELECT
    name,
    department,
    salary,
    RANK() OVER (PARTITION BY department ORDER BY salary DESC) as rank
FROM employees;

Best Practices

  1. Always use parameterized queries to prevent SQL injection
  2. Index columns used in WHERE and JOIN clauses
  3. Avoid SELECT * in production queries
  4. Use EXPLAIN to analyze query performance

Score

Total Score

65/100

Based on repository quality metrics

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

+5
最近の活動

3ヶ月以内に更新

+5
フォーク

10回以上フォークされている

+5
Issue管理

オープンIssueが50未満

0/5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

Reviews

💬

Reviews coming soon