Text-to-SQL using RLHF + Execution Reward

Convert Natural Language to SQL, strictly validated and safely executed on local SQLite databases.

1. Configuration & Input

How do you want to ask?
Select a Sample Question

The database will be selected automatically.


Select Database

📋 Database Structure

Use these exact names! Table names are Dark, Column names are Light.

ALBUM ( albumid, title, artistid )
ARTIST ( artistid, name )
CUSTOMER ( customerid, firstname, lastname, company, address, city, state, country, postalcode, phone, fax, email, supportrepid )
EMPLOYEE ( employeeid, lastname, firstname, title, reportsto, birthdate, hiredate, address, city, state, country, postalcode, phone, fax, email )
GENRE ( genreid, name )
INVOICE ( invoiceid, customerid, invoicedate, billingaddress, billingcity, billingstate, billingcountry, billingpostalcode, total )
INVOICELINE ( invoicelineid, invoiceid, trackid, unitprice, quantity )
MEDIATYPE ( mediatypeid, name )
PLAYLIST ( playlistid, name )
PLAYLISTTRACK ( playlistid, trackid )
TRACK ( trackid, name, albumid, mediatypeid, genreid, composer, milliseconds, bytes, unitprice )

2. Execution Results

Query Result Table

Query Result Table
1
2
3