ToolsBlog

NaturalSQL

NaturalSQL is a series of large language models fine tuned for Natural Language to SQL generation.

Benchmarks

NaturalSQL-6.7B-v0 surpasses comparable models in performance on the SQL-Eval benchmark, outshining even its peers in size and scope. NaturalSQL even beats models such as Claude and GPT-3.5-Turbo on Text to SQL instructions for novel datasets.

Percentage of Correct SQL Queries on Novel Schemas

SQL Eval Breakdown

NaturalSQL-6.7B-v0 outperforms Text to SQL models double its size in the categories of ratio, joins, and order_by, queries.

SQL Eval Results by Category

Date queries will be a strong area of focus in the next iteration.

SQL-Eval Results by Category

SQL Eval Results by Category

Complex SQL Instructions

NaturalSQL was finetuned on complex questions and shows great results for its size on multi-part questions that entail multiple joins, sub queries, etc. Here is a post comparing NaturalSQL-6.7B against a similar sized model with 5 compound questions.

Example Question

Determine the customer with the largest total order value last month, and list all the products and their quantities they ordered.

sql
1WITH 2 LastMonthOrders AS ( 3 SELECT 4 o.customerid, 5 o.orderid, 6 op.productid, 7 op.quantity, 8 p.productname, 9 op.quantity * p.unitprice AS total_order_value 10 FROM 11 orders o 12 JOIN order_details op ON o.orderid = op.orderid 13 JOIN products p ON op.productid = p.productid 14 WHERE 15 o.orderdate >= date_trunc('month', CURRENT_DATE) - INTERVAL '1 month' 16 AND o.orderdate < date_trunc('month', CURRENT_DATE) 17 ), 18 CustomerTotalOrderValue AS ( 19 SELECT 20 customerid, 21 SUM(total_order_value) AS total_value 22 FROM 23 LastMonthOrders 24 GROUP BY 25 customerid 26 ORDER BY 27 total_value DESC 28 LIMIT 29 1 30 ) 31SELECT 32 c.customerid, 33 c.companyname, 34 lm.productid, 35 lm.productname, 36 lm.quantity 37FROM 38 CustomerTotalOrderValue ctov 39 JOIN LastMonthOrders lm ON ctov.customerid = lm.customerid 40 JOIN customers c ON c.customerid = lm.customerid;
ChatDB

Free, browser-side data tools. No uploads, no accounts.

Data tools

Reader

  • Parquet Reader and Viewer
  • Excel Viewer and Editor
  • SQLite Viewer
  • Gzip CSV Reader
  • CSV Size Analyzer
  • Parquet Schema Reader
  • Parquet Metadata Reader
  • Data Profiler
  • Image Measure
  • Shapefile Viewer
  • GeoJSON Viewer

Editor

  • CSV Viewer and Editor
  • Excel Viewer and Editor
  • CSV Splitter
  • Markdown Editor
  • Image Cropper
  • SVG Editor
  • Screenshot Background Creator
  • Document Scanner
  • Audio Clipper
  • Video Trim & Crop Tool

Converter

  • CSV to Gzip Converter
  • CSV to Parquet Converter
  • Excel to CSV Converter
  • Parquet to CSV Converter
  • JSON to Parquet Converter
  • Parquet to JSON Converter
  • CSV Decompressor
  • CSV to JSON Converter
  • CSV to Markdown Table
  • Image Converter
  • KML to GeoJSON Converter
  • GPX to GeoJSON Converter
  • GeoJSON to KML Converter
  • Shapefile to GeoJSON Converter

Formatter

  • CSV Encoder
  • SQL Formatter
  • JSON Formatter
  • XML Formatter
  • YAML Formatter
  • Dataset README Generator
  • URL Encoder & Decoder
  • Regex Tester

Compressor

  • CSV Compressor
  • CSV to Gzip Converter
  • CSV Decompressor
  • Image Compressor

AI

  • Parquet AI
  • CSV AI
  • Color Palette Generator
  • Extract Image Colors

GIS

  • Lat/Lng Point Finder
  • KML to GeoJSON Converter
  • GPX to GeoJSON Converter
  • GeoJSON to KML Converter
  • Shapefile to GeoJSON Converter
  • Shapefile Viewer
  • GeoJSON Viewer

Image tools

Convert To

  • Convert to JPEG
  • Convert to PNG
  • Convert to WEBP
  • Convert to GIF
  • Convert to BMP
  • Convert to TIFF
  • Convert to ICO
  • Convert to AVIF
  • Convert to FF
  • Convert to HDR
  • Convert to EXR
  • Convert to QOI
  • Convert to TGA
  • Convert to PNM

Edit

  • Coming soon

Compress

  • Compress JPG
  • Compress JPEG
  • Compress PNG
  • Compress WEBP
  • Compress GIF

Company

  • Privacy Policy
  • Terms of Service

© 2026 ChatDB. All rights reserved.

v2.4.1