Client delivery
Updated Nov 2026 by Mangesh Kashid
Let analysts ask the data and check the SQL
At Ellicium SolutionsAt Ellicium Solutions, an Emergys company, I built tools that let analysts query data and assemble reports without starting from scratch., I built tools that let analysts ask questions in plain language, inspect the generated SQL, and draft reports from query results.
Role
Data Scientist
Duration
3-week proof of concept; 7-month production engagement
Reporting and query results
- 70%+ Text-to-SQL query accuracy
- 10 to 30 SQL tables covered
- 20 to 40 minutes Per report, down from 2 to 3 days
I reported these figures for this engagement. Query accuracy covers schemas of 10 to 30 tables. Time per report compares manual assembly with automated drafting.
Start with one analyst question
The analysts knew what they wanted to find out, but getting an answer meant asking a data engineer to write the SQL. I used the proof of conceptThe early prototype let an analyst ask a question in plain language. The production engagement added reviewable SQL, charts and report drafting. to test a narrower idea: let an analyst describe what they need in plain language and have the application generate the query.
Reporting had a different bottleneck. Once the results were available, analysts still had to assemble each report by hand. I started with access to the data; getting the results and turning them into a report were separate jobs.
Rebuild the prototype in Flask
I built the proof of concept in Streamlit, then moved to FlaskI rebuilt the client analytics prototype in Flask, including the views where analysts inspect the SQL and read the results. for production and rebuilt both the backend and frontend. I also built the interface where analysts could read the results and check the SQL behind them.
Retrieve schema context before writing SQL
I built the Text-to-SQLI let analysts at Ellicium Solutions ask questions in plain language and inspect the SQL before using the result. system to look up schema context before asking the model to write a query. It retrieved the relevant tables and joins rather than putting the entire schema into the prompt. The analyst could ask about the data without having to name the tables or spell out how they related.
Keep the generated SQL visible
I showed the generated SQL alongside the result. A result can look plausible even if the query asked something different from what the analyst meant. Keeping the SQL visible meant the analyst had something concrete to inspect, such as which tables the query used or how it joined them.
Draft the report and leave review to the analyst
I used a language model to draft text from the query results and added interactive charts. The analyst could edit and approve the draft, so the model took on some of the assembly without deciding what was ready to share.
Compare time per report
I automated report assembly: analysts started a draft and charts from the query results instead of copying the data into a blank report.
Connect the work without hiding the review
I worked across querying, prediction, and reporting. The connection I can show is how the query results gave the report generator material to draft from. An analyst could check how the results were produced and then decide how to present them.