# Jev for analytics: turn text columns into gold, in plain SQL

DevFeed: [Jev for analytics: turn text columns into gold, in plain SQL](<https://devfeed.tech/articles/jev-for-analytics-turn-text-columns-into-gold-in-plain-sql-78940.md>)

Original publisher: [Read original article](<https://motherduck.com/blog/jev-for-analytics>)

Author: Mehdi Ouazza

Published: 2026-09-29T00:00:00Z

Content type: tutorial

Language: en

Sources: [MotherDuck](<https://devfeed.tech/sources/motherduck.md>)

Topics: [SQL](<https://devfeed.tech/topics/sql.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>), [DuckDB](<https://devfeed.tech/topics/duckdb.md>), [Rockset](<https://devfeed.tech/topics/rockset.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [about](<https://devfeed.tech/tags/about.md>), [account](<https://devfeed.tech/tags/account.md>), [agent](<https://devfeed.tech/tags/agent.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agent](<https://devfeed.tech/tags/ai-agent.md>), [alert](<https://devfeed.tech/tags/alert.md>), [all](<https://devfeed.tech/tags/all.md>), [analytics](<https://devfeed.tech/tags/analytics.md>), [column](<https://devfeed.tech/tags/column.md>), [consumer](<https://devfeed.tech/tags/consumer.md>), [cost](<https://devfeed.tech/tags/cost.md>), [jev](<https://devfeed.tech/tags/jev.md>), [llm](<https://devfeed.tech/tags/llm.md>), [plus](<https://devfeed.tech/tags/plus.md>), [prompt](<https://devfeed.tech/tags/prompt.md>), [sql](<https://devfeed.tech/tags/sql.md>), [text](<https://devfeed.tech/tags/text.md>), [trust](<https://devfeed.tech/tags/trust.md>), [with](<https://devfeed.tech/tags/with.md>)

## AI overview

`prompt_jev()` turns free text into a typed choice from labels you supply, letting repeated classification run once and leaving later analysis to ordinary SQL. In the excerpt's 100,000 CFPB complaints, it classified seven requested-outcome categories in 82.2 seconds; the launch benchmark reports $0.50 per 100,000 rows versus $1.58 for gpt-5-nano and $37.58 for GPT-5.6 Terra. The labels must be constant choices, though a DuckDB variable can hold a taxonomy stored in a table. Its confidence scores can flag uncertain rows for review, but high confidence does not guarantee correctness; a sample comparison also showed disagreement between models around fuzzy category boundaries. Use an LLM to develop categories or generate explanations, and test Jev on a sample before scaling. The excerpt says text is sent to TypeSafe for inference and advises checking data-handling requirements for sensitive data.

## Source excerpt

Turn a free-text column into typed SQL columns with prompt_jev(): 100,000 consumer complaints classified in 82 seconds, at about 1% of a frontier LLM's cost, plus how to check the labels before you trust them.