{
 "schema_version": 1,
 "generated": "2026-10-23",
 "id": "anthropics-knowledge-work-plugins--write-data-queries-with-plugin",
 "repo": "anthropics/knowledge-work-plugins",
 "repo_url": "https://github.com/anthropics/knowledge-work-plugins",
 "repo_slug": "anthropics-knowledge-work-plugins",
 "title": "Write SQL queries for warehouse data",
 "page_title": "How to write SQL queries for warehouse data with Knowledge Work Plugins",
 "summary": "Use the data plugin to draft and refine queries against a connected warehouse.",
 "who": "A data analyst or product manager who needs a query against Snowflake, Databricks, or BigQuery but does not want to write the SQL from scratch.",
 "problem": "Writing a correct query against an unfamiliar warehouse schema takes time and back-and-forth.",
 "outcome": "A SQL query drafted by Claude through the data plugin's write-query command, ready for review before running.",
 "steps": [
  "Run `claude plugin marketplace add anthropics/knowledge-work-plugins`",
  "Run `claude plugin install data@knowledge-work-plugins` (inferred, check the README)",
  "Connect your warehouse, such as Snowflake, Databricks, or BigQuery, through its connector",
  "Run `/data:write-query` and describe the question in plain language"
 ],
 "agent_prompt": "Using the anthropics/knowledge-work-plugins repo, install the data plugin and run /data:write-query for <question about the dataset>. Expected output: a SQL query that answers the question. Verify the query against the table and column names in the connected warehouse before running it.",
 "agents": [
  "claude-code"
 ],
 "difficulty": "Intermediate",
 "time": "30 minutes",
 "basis": "readme",
 "caveat": "The README names the write-query command but does not say which SQL dialects or warehouses are tested, so check the generated query against your warehouse before running it.",
 "category": "Work and operations",
 "tags": [
  "Work and operations"
 ],
 "lang": "python",
 "requirements": [
  "Access to Claude Cowork or Claude Code",
  "Accounts for the tools you want to connect, such as your CRM, warehouse, or ticketing system",
  "Credentials for each connector you enable"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "credentials",
   "notice": "The warehouse connector needs database credentials, so store them in your secret manager and do not commit them to the .mcp.json file."
  }
 ],
 "best": false,
 "score": 0.9,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/anthropics-knowledge-work-plugins/write-data-queries-with-plugin/",
 "md": "https://dedupedai.com/use-cases/anthropics-knowledge-work-plugins/write-data-queries-with-plugin/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/anthropics-knowledge-work-plugins--write-data-queries-with-plugin.json",
 "api_version": "v1"
}
