SQL Query Generator — Ai Endpoint Template for Extractor
AI EndpointConvert plain English questions into SQL queries. Supports any schema with parameterized output.
Template SQL Query Generator bundles a ready-to-deploy workspace for extractor workflows. Install in one click from the Aerostack dashboard or via aerostack init --template=sql-generator.
What It Does
Ask a question in plain English — get back a SQL query, a human-readable explanation of what it does, and the list of tables used. Generates parameterized queries with ? placeholders for safe execution.
Example
Input: "How many orders did we get last month from customers in California?"
Output:
{
"sql": "SELECT COUNT(*) as order_count FROM orders o JOIN customers c ON o.customer_id = c.id WHERE c.state = ? AND o.created_at >= ? AND o.created_at < ?",
"explanation": "Counts orders from the last calendar month where the customer is in California, using a join between orders and customers tables.",
"tables_used": ["orders", "customers"]
}
When To Use This
- Internal tools — let non-technical team members query your database without writing SQL
- Analytics dashboards — add a "ask a question" feature that generates SQL from natural language
- Database exploration — quickly prototype queries during development without remembering exact column names
Metadata
What's Included
Deploy this ai endpoint in minutes
Convert plain English questions into SQL queries. Supports any schema with parameterized output.
More extractor Templates
Browse extractor Templates →Invoice Parser
by @aerostack
Extract vendor, amount, due date, and line items from invoices. Structured JSON output from any invoice format.
Support Ticket Classifier
by @aerostack
Classify support messages by category, urgency, and sentiment. Route tickets to the right team instantly.
Resume Screener
by @aerostack
Screen resumes against job descriptions. Get a match score, skill gaps, and hire/pass recommendation.
Email Drafter
by @aerostack
Draft professional emails from a brief. Specify recipient, purpose, and tone — get a ready-to-send email.
Email Parser
by @aerostack
Extract sender name, email, company, intent, and urgency from customer emails and support tickets.
Lead Scorer
by @aerostack
Score leads 0-100 based on fit, intent, and budget signals. AI-powered lead qualification with reasoning.
Frequently asked questions
What does the SQL Query Generator template include?+
The SQL Query Generator template is a pre-configured Aerostack workspace for extractor. It bundles the required MCP servers, skills, and workflows. Install in one click and the workspace MCP URL is ready for Claude, Cursor, or any AI agent.
How do I install the SQL Query Generator template?+
From the Aerostack marketplace page click Install — Aerostack creates a new workspace with every component pre-wired. You can also install via CLI: aerostack install template aerostack/sql-generator
Can I customize SQL Query Generator after installing?+
Yes. Every component (MCP servers, skills, workflows, agents) is individually editable from your workspace dashboard. Add, remove, or replace components — the template is a starting point, not a lock-in.
Is the SQL Query Generator template free to use?+
Templates are free to install. Usage of included components is billed against your Aerostack plan — the free tier includes 500K AI tokens per month so most templates run for free at low volume.