---
title: "Query Database Using Plain English"
url: https://daily.dev/posts/query-database-using-plain-english-yy9luzr7k
source_url: https://www.ardanlabs.com/blog/2026/02/query-database-using-plain-english/
type: article
source: "Ardan Labs"
published: 2026-02-11T23:15:59.603Z
updated: 2026-02-11T23:16:22.273Z
tags: ["llm", "golang", "nlp", "sql", "duckdb"]
reading_time: 8
upvotes: 27
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Query Database Using Plain English

**[Ardan Labs](https://daily.dev/sources/ardlbs)** · 8 min read · 27 upvotes · 0 comments

## Summary

Build a natural language database query system in Go using LLMs. The tutorial demonstrates a two-step architecture: first prompting an LLM to generate SQL from plain English questions, then querying the database and having the LLM format results into natural language answers. Uses Kronk model server (OpenAI-compatible) with the Ministral model, DuckDB for data storage, and includes complete working code with prompt engineering examples for converting user questions into SQL queries and formatting database results.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.ardanlabs.com/blog/2026/02/query-database-using-plain-english/>

---

Tags: [#llm](https://daily.dev/tags/llm), [#golang](https://daily.dev/tags/golang), [#nlp](https://daily.dev/tags/nlp), [#sql](https://daily.dev/tags/sql), [#duckdb](https://daily.dev/tags/duckdb)

[View this post on daily.dev](https://daily.dev/posts/query-database-using-plain-english-yy9luzr7k)
