---
title: "Query Writing Skill - Air Market"
description: "You need something out of a database and either you do not write SQL or the query is more tangled than you want to work out. Describe what you are after and this writes the SQL and runs it, from a si…"
canonical: "https://airmarket.ai/app/query-writing"
---

[Air Market](/) / [Data & Analytics](/category/data) / Query Writing Skill

Skill by [LangChain](/@langchain-ai)

# Query Writing Skill

Ask your database a question in words, not SQL

## What this does

You need something out of a database and either you do not write SQL or the query is more tangled than you want to work out. Describe what you are after and this writes the SQL and runs it, from a simple lookup to joins across tables, totals and nested queries.

### Top 3 things it does for you

- Pull specific records out of a database
- Combine data sitting in several tables
- Filter and total up rows into a report

## Information

**Query Writing Skill at a glance**

|  |  |
| --- | --- |
| Kind | Skill |
| Publisher | [LangChain](/@langchain-ai) |
| Category | [Data & Analytics](/category/data) |
| Works with | Agent Skills - an open standard supported by 40+ agents |
| Size | 2 KB |
| Licence | _Not recorded_ |
| Repository | [langchain-ai/deepagents](https://github.com/langchain-ai/deepagents/tree/1d956fd913a7820f0ba83b28d7c7eba59b1c2e74/examples/text-to-sql-agent/skills/query-writing) |
| GitHub stars | 28,349 (as of Nov 2026) |
| Installs | 1,268, counted by skills.sh (Nov 2026) |

## Security report

**Verified.** AIR scanned this exact version of Query Writing Skill and flagged nothing. AIR's verdict: **safe**.

**What Query Writing Skill's check was run against**

|  |  |
| --- | --- |
| Commit | 1d956fd913a7820f0ba83b28d7c7eba59b1c2e74 |
| Content hash | 13d57c37072464a71fea7730286b47e53ddf58f8c0a94468c064e0fbe2c35f2f |
| Files read | [Browse the files at this exact commit](https://github.com/langchain-ai/deepagents/blob/1d956fd913a7820f0ba83b28d7c7eba59b1c2e74/examples/text-to-sql-agent/skills/query-writing/SKILL.md) |

A scan is named by the exact content it read, not by a version number. A different version is a different artifact, and nothing here applies to a version AIR has not scanned.

[Read the full security report for Query Writing Skill](/security/query-writing)

## About Query Writing Skill

This writes and executes SQL queries, from simple SELECT statements through to multi-table JOINs, aggregations and subqueries.

It applies when you want to query a database, run a SELECT, retrieve or filter records, or generate a report from database tables.

## What's inside

- SKILL.md - instructions

## Questions

### Is Query Writing Skill safe to install?

AIR scanned this exact version of Query Writing Skill and flagged nothing. AIR's verdict: safe. The verdict is named by the content that was read, at commit 1d956fd913a7, so it cannot drift onto a version nobody scanned. The full report is at https://airmarket.ai/security/query-writing.

### How do I install Query Writing Skill?

Open https://airmarket.ai/app/query-writing on Air Market and use the install action: Air Market hands Claude a prompt naming this exact skill, and Claude sets it up. Source, pinned to the exact commit this listing describes: https://github.com/langchain-ai/deepagents/tree/1d956fd913a7820f0ba83b28d7c7eba59b1c2e74/examples/text-to-sql-agent/skills/query-writing. Install from that link, not the branch.

## Related on Air Market

- [More Data & Analytics listings](/category/data)
- [Everything by LangChain](/@langchain-ai)

---

Canonical URL: <https://airmarket.ai/app/query-writing>
