arXiv · 2611.38795
SqlToViz: A Contract-Pinned, Portable Pipeline for Recommending Chartsfrom SQL Queries and Result Sets
Abstract
Chart recommenders usually start from a table, a corpus of charts, or a natural-language request. Many applications, however, hold only a SQL query and its result set. We describe SqlToViz, a pipeline that recommends one of ten base chart classes (expanded deterministically to twenty visualizations plus a table fallback) from the query text and the executed result. The pipeline is built around a frozen, versioned feature contract (16 lexical SQL features, 16 table-level data features, 28 per-column features), a small ONNX classifier, hard semantic con- straints that fail closed to a table, and cross-runtime parity fixtures so that Python, TypeScript and .NET implementations compute identical features. We report what has been measured: a leakage-audited synthetic benchmark; a held-out evaluation of 100 real queries against the agreement of LLM annotators (three models and one AI-filled workbook of unknown model, not independent of one another); an external evaluation on nvBench, whose labels are human- authored; a feasibility study of role supervision; and parity, latency and numerical-faithfulness measurements. There is no human validation of the recommendations: the reference of the 100-item evaluation is LLM agreement, which is not human judgement. On the external human-authored nvBench labels the experimental models are not validated and perform poorly on accuracy (0.249 for the shipped constrained model against 0.763 for always pre- dicting bar); only macro-F1 is above the baseline. We make no claim of novelty, of superiority over prior systems, or of agreement with human preferences, and the released models remain experimental candidates.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Juan Manuel Castillo Pinto. 2026-11-28. SqlToViz: A Contract-Pinned, Portable Pipeline for Recommending Chartsfrom SQL Queries and Result Sets. https://arxiv.science/abs/2611.38795
Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite arXiv Science by Indiciae: BibTeX · RIS.