LabZone Labs · W44 · 26–30 Oct 2026 · Status: In progress

Ask the statistics: which table has my number?

Try the live demo →Questions in English or Slovak; answers and source data are in Slovak.

The problem

STATdata, the public database of the Statistical Office of the Slovak Republic, holds almost 1,000 tables (995 when we checked), each with an eight-character code such as np3106rr. If you want one number, for example the average wage of craft workers in one region, you first have to know which table has it and how to filter it. That is hard for anyone who does not work with the database every day.

What we built

A one-screen assistant over 10 selected STATdata tables. You ask a question in plain Slovak. The assistant picks the table, selects the right values (region, year, indicator), downloads the data through the open API and shows a chart with a source line: table name, code, date of the last update, licence and link. If none of the 10 tables fits, it says so and draws nothing.

Out of scope on purpose: search over all STATdata tables, user accounts and personal question history, and any interpretation of the numbers by the AI model.

How it works

  1. A fixed catalogue of 10 tables (code, name, description, dimensions, “when to use / when not to use”, example questions).
  2. A language model makes only two decisions: which table, and which values to filter.
  3. Code checks the filter (unknown table codes are rejected, missing totals are added, max. 3 rounds per question).
  4. Code downloads the table from the STATdata API (a ZIP with flat JSON rows), filters it and draws the chart.
  5. Code writes the source line. No number passes through the model.

How long it took

6–8 hours in total, within one week (26–30 Oct 2026). The plan was 4 hours of build in two blocks.

Technologies

TypeScript · Qwen 3.6 running locally via Ollama · LLM tool calling with a JSON schema · Chart.js · STATdata REST API

The model runs locally via Ollama, so questions and data don’t go to an external AI model provider, and no paid AI API is used.

Data sources and licence

Open data of the Statistical Office of the Slovak Republic, STATdata, licence CC BY 4.0. 10 tables on wages (by occupation and by industry), registered unemployment, unemployment by age and sex, consumer price inflation, regional GDP per capita, life expectancy, tourism accommodation, age at marriage and electricity production. This is a LabZone experiment over open data; it is not a service of the Statistical Office and was not built with or for them.

What we measured

26 Oct 2026, 20 test questions, Qwen running locally via Ollama, temperature 0.

What we learned

Where this could be used

Who it’s for

Owners and publishers of public data, analysts, and any team whose people keep asking “which table has my number?”.

We store questions without IP addresses for 30 days to evaluate and improve the experiment. We use your IP address only briefly to limit the number of requests and do not store it. Please don't include personal data in your questions.

We'll show this on your data.

We build a working prototype on your data in 2–4 weeks. If you continue, the prototype price is deducted from the first development invoice. If not, you pay only a fixed fee for validating the prototype.

Book a free 15-min auditFree · 15 min · online

Calendar not working? Email us: info@labzone.tech