explainx.ainewsletter3.5k
TrendingNewsPathwaysSkills
Pricing
explainx.ai

Upskill in AI — 16 free pathways, live workshops & bootcamps, and 50+ courses from practitioners. Plus the skills, tools, and MCP servers to practice on.

follow us

corporate training

support@explainx.ai

get started

Find your pathTake Free Evaluation

learn

pathways — start freeworkshopsbootcampscoursescertificationsmock testsexplainx universitycorporate traininglearn skills & mcp

discover

skillsmcp serversexplainx mcptoolsagentsllmsdesignsdictionaryagi trackerranks

company

aboutvisionmissionteaminstructorscommunityhackathonscareers

content

daily AI newsstate of AI — live resultsblogreleasespromptsgeneratorsresource libraryfor LLMsexplainx.ai kids

solutions

all solutionsdeveloper upskillingmarketing upskillingproduct manager upskillingleadership upskilling

newsletter · weekly

Get AI news, tools, and insights in your inbox.

supportprivacytermsdata rightshow we create contentsubmission guidelines

© 2026 AISOLO Technologies Pvt Ltd

Home/Templates/text/analysis/sql-cohort-exploration-draft
textAnalysisintermediate

SQL cohort exploration draft

CTEs for retention scaffold—tune windows and placeholder table names.

Suggested model: Claude Sonnet 4.6Estimated length: 450 tokens
Illustration of a speech bubble becoming structured prompt cards for text prompt templates

Customize this template

Build your prompt

Generate Your Prompt

Fill in the required details first. Optional controls help you fine-tune the result.

See a completed example

Draft

Input Variables
dialect:bigquery
business_question:30-day retention of workspace cohorts activating MCP integrations
event_grains:workspace_created, integration_enabled, retained_active_daily
allowed_tables_placeholder:dim_workspace, fact_activity_daily — or UNKNOWN (use TODO stubs)
kpi_sentence:rolling 7-day activation rate vs baseline signup week

Questions about this prompt

Best Practices

Critical Best Practices

Lead with role and scope

critical

Say who you are, who the reader is, and what artifact you want in one dense block.

Source: claude

Recommended Best Practices

Spell out constraints

recommended

Length, tone bans, jargon limits, formatting, and what not to hallucinate.

Source: claude

Related Templates

Python Data Analysis Script
text / coding

Keywords

sql cohort analysis promptretention sql ai