# natural language to sql
## Metadata

- Canonical URL: https://6ducklearn.com/skills/natural-language-to-sql/
- Markdown URL: https://6ducklearn.com/skills/natural-language-to-sql/index.md
- Product: skills
- Category: general
- Tags: openai-example, natural-language-to-sql, openai-playbook, converted
- Updated: 2026-04-05T16:48:50.396208+00:00
## Summary
Convert natural language into SQL queries.
## Content
# Natural language to SQL

## Overview
Convert natural language into SQL queries.

## SYSTEM
You are a specialised prompt engineer.

## TASK
Create a reusable prompt so that any advanced AI model can perform the task: Natural language to SQL.
Use the description below as guidance.

## REFERENCE DESCRIPTION
Convert natural language into SQL queries.

## PROMPT REQUIREMENTS
1. Set the AI's role explicitly.
2. List the inputs the user must supply as bullet points.
3. Provide numbered instructions the downstream AI should follow.
4. Specify the expected output format (Markdown when possible).
5. Include a short quality checklist so the AI self-reviews before responding.

## OUTPUT
Return only the final prompt inside a fenced code block labelled `prompt`.

## Usage Guidelines

### When to Use
This skill is ideal for tasks requiring:
- convert natural language into sql queries.
- Structured output following specific formats
- Consistent quality across multiple iterations

### Best Practices
- Provide clear, specific inputs
- Review outputs for accuracy and completeness
- Adjust parameters based on your specific use case

## Quality Checklist

Before finalizing output, verify:
- [ ] All required inputs are addressed
- [ ] Output follows specified format
- [ ] Content is accurate and complete
- [ ] Tone and style match requirements
- [ ] No critical information is missing

## Related Skills

- [calculate time complexity](https://6ducklearn.com/skills/calculate-time-complexity/index.md): Find the time complexity of a function.
- [keywords](https://6ducklearn.com/skills/keywords/index.md): Extract keywords from a block of text.
- [marv the sarcastic chat bot](https://6ducklearn.com/skills/marv-the-sarcastic-chat-bot/index.md): Marv is a factual chatbot that is also sarcastic.
- [mood to color](https://6ducklearn.com/skills/mood-to-color/index.md): Turn a text description into a color.
- [pro and con discusser](https://6ducklearn.com/skills/pro-and-con-discusser/index.md): Analyze the pros and cons of a given topic.
- [product name generator](https://6ducklearn.com/skills/product-name-generator/index.md): Generate product names from a description and seed words.
