Nova AI Your Database
Nova AI
Query Streams
Your Database
Ask Nova, get SQL + charts
Meet Nova Database REST APIOne key per partner. No credentials shared.
Build an API AutomationScheduled sync to 6+ platforms
Explore API to SQLQuery APIs with SQL, no code
Explore AI Database MCPClaude, Cursor, ChatGPT & Grok talk to your data
Connect AINova AI by Query Streams converts plain English questions into validated, dialect-specific SQL queries across ten database engines. You type “show me total sales by region for last quarter” and Nova generates the correct SQL with proper JOINs, aggregations, date functions, and dialect syntax for your specific database — PostgreSQL, MySQL, SQL Server, Oracle, Snowflake, BigQuery, or any supported engine. Every query passes through a four-stage validation pipeline before execution: schema discovery, column verification, join-path tracing, and syntax validation. This is what separates a production-ready text-to-SQL system from a general-purpose chatbot that guesses at table names. Below are five real examples showing how Nova translates increasingly complex natural language questions into accurate SQL. Try it free — no credit card required.
Simple Filter: Plain English to WHERE Clause
The most common text-to-SQL pattern. Nova maps “from California” to the correct column and value.
state uses 2-letter abbreviations (CA, not “California”) from column profiling. Want to filter by city or export this?Aggregation: “Total” and “By” Become SUM + GROUP BY
Nova recognizes aggregation intent from words like “total,” “average,” “count,” and grouping from “by category.”
product_id and order_id foreign keys. Want a bar chart or want to drill into a specific category?Date Ranges: “Last Quarter” to Dialect-Specific Date Functions
Natural date language maps to different SQL depending on your database engine. Nova handles this automatically.
DATEPART and DATEADD instead of PostgreSQL’s date_trunc. The same question on Postgres would produce different but equivalent SQL.Complex Queries: Subqueries and Window Functions from One Sentence
Advanced questions generate multi-level SQL with CTEs, subqueries, or window functions — no SQL knowledge needed.
RANK() window function and a subquery filter. The Snowflake-specific uppercase schema references (ANALYTICS.CUSTOMERS) match your warehouse naming.Ambiguous Questions: Nova Asks Before Guessing
When your question could map to multiple tables or columns, Nova asks for clarification instead of hallucinating.
auth.users — 1,240 rows (login accounts with email, last_login, role)public.app_users — 8,920 rows (app profiles with name, plan, org_id)legacy.user_accounts — 450 rows (deprecated, migrated to auth.users)auth.users with app_users for the full picture?
auth.users.id = app_users.auth_user_id. All 1,240 accounts returned with login + profile data combined.What These Examples Show About Natural Language to SQL
Each demo above illustrates a different NL-to-SQL translation pattern that Nova handles automatically. Demo 1 shows the simplest case: mapping a filter phrase (“from California”) to a WHERE clause. What makes this non-trivial is that Nova detected the state column uses two-letter abbreviations, not full state names — a detail it learned from column profiling during schema discovery. A naive text-to-SQL system would generate WHERE state = 'California' and return zero results.
Demo 2 scales up to aggregation. Words like “total,” “average,” and “count” trigger SUM, AVG, and COUNT functions respectively. The phrase “by category” maps to GROUP BY, and “sorted highest first” maps to ORDER BY DESC. Nova also auto-detected that answering this question required joining three tables — products, order_items, and orders — which it did by tracing foreign key relationships in the schema. This is the kind of query that takes 30 seconds to describe in English but several minutes to write correctly in SQL, especially across unfamiliar table structures.
Demo 3 highlights dialect awareness. The phrase “last quarter” is a date concept that maps to completely different SQL depending on your database engine. On SQL Server, it becomes DATEADD(QUARTER, DATEDIFF(QUARTER, 0, GETDATE()) - 1, 0). On PostgreSQL, the same intent produces date_trunc('quarter', current_date - interval '3 months'). On Snowflake, it uses DATEADD('quarter', -1, DATE_TRUNC('quarter', CURRENT_DATE())). Nova generates the correct variant automatically based on your connected database type. This dialect-specific generation is what separates a production text-to-SQL tool from a general-purpose AI chatbot.
Demo 4 shows Nova handling an advanced analytical question that requires a CTE (Common Table Expression), a subquery for the average calculation, and a RANK() window function — all generated from a single English sentence. Demo 5 demonstrates what happens when your question is ambiguous: instead of guessing and potentially querying the wrong table, Nova presents the options and asks you to choose. This clarification step prevents the most common failure mode in AI-generated SQL — hallucinated table or column names that produce errors or incorrect results.
Why Validation Matters More Than Generation
Generating SQL from natural language is only half the problem. The harder half is making sure the generated SQL is actually correct for your specific database. General-purpose AI models like ChatGPT or Claude can write plausible-looking SQL, but they have no knowledge of your actual table names, column types, or relationships. They guess. And guesses fail silently — the query may run but return wrong results because it joined on the wrong column or filtered a column that uses different values than expected.
Nova solves this with a four-stage validation pipeline that runs before every query reaches your database. First, it discovers your real schema — every table, column, data type, and foreign key relationship. Second, it profiles column values to understand things like whether state uses “CA” or “California,” whether status uses 0/1 or “active”/”inactive,” and what the actual enum values are. Third, it traces join paths using real foreign keys rather than guessing at column name similarity. Fourth, it validates the final SQL through syntax parsing via sqlglot and column fuzzy matching with a 60% threshold using rapidfuzz. If a referenced column doesn’t exist or is misspelled, Nova catches it before execution and either corrects it automatically or asks you to clarify.
Supported Databases for Text-to-SQL
Nova’s natural language to SQL engine supports ten database platforms: PostgreSQL, MySQL, SQL Server (Microsoft), MariaDB, SQLite, Oracle, Snowflake, Google BigQuery, DuckDB, and Microsoft Access. It also supports six API connectors — Stripe, Shopify, HubSpot, Google Analytics 4, Google Search Console, and ShipStation — by syncing their data into local DuckDB tables that can be queried with standard SQL. Each database has its own SQL dialect with different syntax for dates, string functions, identifiers, pagination, and NULL handling. Nova generates the correct dialect automatically based on your connected data source, so you never need to think about LIMIT vs TOP, backtick quoting vs square bracket quoting, or NVL vs COALESCE. You can even switch between databases mid-conversation and Nova adjusts its SQL output accordingly.
Frequently Asked Questions
What is natural language to SQL?
How accurate is AI-generated SQL?
Can AI handle complex SQL with JOINs and subqueries?
Does the AI know my database structure?
What databases support natural language queries?
Can I edit the SQL that Nova generates?
Getting Started With Natural Language Database Queries
Setting up natural language to SQL with Nova takes under five minutes. Create a free account at my.querystreams.com, install the Query Streams Agent on any machine with database access, add your data source, and start asking questions. The Agent creates an encrypted outbound-only connection — no firewall changes, VPN tunnels, or inbound ports required. It runs on Windows, macOS, and Linux, self-updates automatically, and supports multiple simultaneous database connections.
AI credits are available through monthly subscriptions or one-time purchases. Nova is powered by advanced AI — Query Streams automatically selects the optimal provider for each query to deliver the best results. Any query Nova generates can be saved to your Query Library and shared with teammates who run it from the Microsoft Excel add-in or Google Sheets add-on — no SQL knowledge required on their end. Learn more about all Nova capabilities on the BI and AI Data Analytics feature page.
Meta Description: Natural language to SQL — type questions in plain English and get validated, dialect-specific SQL for PostgreSQL, MySQL, SQL Server, Snowflake, and 6 more databases. See 5 real examples.
Category: Nova AI
Tags: Natural Language to SQL, Text to SQL, AI SQL Generator, NL to SQL, AI Database Query, Nova AI, Query Streams, PostgreSQL, MySQL, SQL Server, Snowflake, BigQuery, AI Query Builder, Natural Language Database Query, Text to SQL Converter
Author Bio:
The Query Streams Team comprises seasoned database experts, network security professionals, and enterprise networking veterans with over 25 years of combined experience in data management, analytics, and secure software development.

