# Query Database Using Plain English

DevFeed: [Query Database Using Plain English](<https://devfeed.tech/articles/query-database-using-plain-english-22283.md>)

Original publisher: [Read original article](<https://www.ardanlabs.com/blog/2026/02/query-database-using-plain-english/>)

Published: 2026-02-11T00:00:00Z

Content type: tutorial

Language: en

Sources: [William Kennedy](<https://devfeed.tech/sources/william-kennedy.md>)

Topics: [Databases](<https://devfeed.tech/topics/databases.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [SQL](<https://devfeed.tech/topics/sql.md>), [Code](<https://devfeed.tech/topics/code.md>), [DuckDB](<https://devfeed.tech/topics/duckdb.md>), [Ollama](<https://devfeed.tech/topics/ollama.md>), [context](<https://devfeed.tech/topics/context.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [API](<https://devfeed.tech/topics/api.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [ardan-labs](<https://devfeed.tech/tags/ardan-labs.md>), [blog](<https://devfeed.tech/tags/blog.md>), [code](<https://devfeed.tech/tags/code.md>), [context](<https://devfeed.tech/tags/context.md>), [database](<https://devfeed.tech/tags/database.md>), [duckdb](<https://devfeed.tech/tags/duckdb.md>), [github](<https://devfeed.tech/tags/github.md>), [go](<https://devfeed.tech/tags/go.md>), [go-programming](<https://devfeed.tech/tags/go-programming.md>), [golang](<https://devfeed.tech/tags/golang.md>), [llms](<https://devfeed.tech/tags/llms.md>), [ollama](<https://devfeed.tech/tags/ollama.md>), [programming](<https://devfeed.tech/tags/programming.md>), [sql](<https://devfeed.tech/tags/sql.md>)

## AI overview

This tutorial shows how to build a system that lets users query a relational database using plain English. It uses an LLM to generate SQL, executes the query against a database, and then uses the query results to generate an answer. The example uses the Austin Bike Share dataset, Kronk Model Server, and DuckDB, while noting that other model servers and SQL databases can be used.

## Source excerpt

Introduction In this post you'll see how you can create a system that allows users to query a relational database using plain English. This allows users not familiar with SQL or business intelligence systems to get insights from data. Setting Up If you want to follow along, you'll need to clone the code from the GitHub repo. This will download the code, and the database file containing the data (bikes.ddb) Note: The data is from the Austin Bike Share dataset.