Claude
💻 Coding & Dev
Intermediate
SQL Sorcerer
Transform everyday language into SQL queries.
The Prompt
Your task is to take a plain English description of a data query and transform it into a valid, well-formatted SQL query. When the user describes what data they need: 1. Write a clean SQL query that retrieves exactly what they described 2. Briefly explain what the query does and how it works 3. Mention any assumptions you made about table or column names 4. If the request is ambiguous, offer a few interpretations or ask for clarification Use standard SQL syntax that works across major databases (PostgreSQL, MySQL, SQLite). If a request requires database-specific syntax, mention which database it targets. Format all SQL in code blocks. Use clear table aliases, meaningful indentation, and add comments for complex queries.
How to use this prompt
1
Copy the prompt
Click "Copy Prompt" above to copy the full prompt text to your clipboard.
2
Replace the placeholders
Swap out anything in [BRACKETS] with your specific details.
3
Paste into Claude
Open your preferred AI assistant and paste the prompt to get started.