6DuckLearn Skills

natural language to sql

Convert natural language into SQL queries.

general Tags: openai-example, natural-language-to-sql, openai-playbook, converted

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