---
title: "Discussion on \"Text-to-SQL, explained: how a question becomes a query, and where it goes wrong\" | Hashnode"
description: "Discussion on \"Text-to-SQL, explained: how a question becomes a query, and where it goes wrong\". Text to SQL, also called natural language to SQL, takes a question such as \"How many orders did we ship last month?\" and turns it into a query a database can run. A language model writes the SQL, but"
url: "https://hashnode.com/posts/text-to-sql-explained-how-a-question-becomes-a-query-and-where-it-goes-wrong/6ae07bd687f3dfa3c6296b03"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Text-to-SQL, explained: how a question becomes a query, and where it goes wrong](https://nlq.hashnode.dev/text-to-sql-explained-how-a-question-becomes-a-query-and-where-it-goes-wrong?utm_source=hashnode&utm_medium=feed)

Text to SQL, also called natural language to SQL, takes a question such as "How many orders did we ship last month?" and turns it into a query a database can run. A language model writes the SQL, but

Oct 27 · 8 min read · nlq.hashnode.dev  
Read the article

-   [#natural-language-processing](https://hashnode.com/tag/natural-language-processing)
-   [#text-to-sql](https://hashnode.com/tag/text-to-sql)
-   [#business-intelligence](https://hashnode.com/tag/business-intelligence)
-   [#data-engineering](https://hashnode.com/tag/data-engineering)

## Written by

[Pankaj Goswami](https://hashnode.com/@nlqueries)

@nlqueries

  
[View profile](https://hashnode.com/@nlqueries)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
